1.0.4 • Published 5 years ago

eslint-plugin-percolate v1.0.4

Weekly downloads
55
License
SEE LICENSE IN /L...
Repository
github
Last release
5 years ago

eslint-plugin-percolate

Percolate's custom Eslint rules

Installation

You'll first need to install ESLint and eslint-plugin-import:

$ npm i eslint eslint-plugin-import --save-dev

Next, install eslint-plugin-percolate:

$ npm install eslint-plugin-percolate --save-dev

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

Usage

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

{
    "plugins": ["percolate"]
}

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

{
    "rules": {
        "percolate/cjs-default": "error",
        "percolate/no-jsx-id-attrs": "error"
    }
}

Supported Rules

  • cjs-default: Verifies that commonJS require(...).default and export default ... are in sync
  • no-jsx-id-attrs: Prevents "id" attribute on DOM elements in JSX
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago