eslint-plugin-no-includes

1.0.0 • Public • Published

eslint-plugin-no-includes

We suggest another package eslint-plugin-no-methods with more features.(includes this one)

Disallow using the method includes

version  Build Status  GitHub issues  license

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-includes:

$ npm install eslint-plugin-no-includes --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-includes globally.

Usage

Add no-includes to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "no-includes"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "no-includes/no-includes": ["error", {"ignore": ["_", "lodash", "underscore"]}],
    }
}

Created by yeoman tool.

Package Sidebar

Install

npm i eslint-plugin-no-includes

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

7.23 kB

Total Files

7

Last publish

Collaborators

  • froguard