New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-more

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-more

Extra rules for Eslint

0.1.0
Source
npm
Version published
Weekly downloads
14K
-4.32%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-more - extra rules for Eslint

Eslint is a very great tool and it already has tons of rules. Eslint allows us to reduce amount of time required for code review. But, of course, eslint cannot cover all the issues. So, we do in the following way, if during code review we see, that we comment on thing that is possible to check automatically, then we create new eslint rule.

Some of this rules will go to upstream after proving them in our codebase.

Installation

Install ESLint either locally or globally.

$ npm install eslint

If you installed ESLint globally, you have to install this plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-more

Configuration

Add plugins section and specify ESLint-plugin-more as a plugin.

{
  "plugins": [
    "more"
  ]
}

Finally, enable all of the rules that you would like to use. For example:

  "rules": {
    "more/no-void-map": 2,
    "more/no-c-like-loops": 2,    
    "more/prefer-includes": 2,
    "more/no-then": 2,
    "more/no-window": 2,
    "more/no-numeric-endings-for-variables": 2,
    "more/force-native-methods": 2,
    "more/no-duplicated-chains": 2,
    "more/classbody-starts-with-newline": [2, 'never']
  }

Supported rules

Author

WebbyLab (https://webbylab.com)

Keywords

eslint

FAQs

Package last updated on 16 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts