eslint-plugin-iruhl
v0.2.1
Published
Custom eslint rules for intrenal projects
Maintainers
Readme
eslint-plugin-iruhl
Custom eslint rules for intrenal projects
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-iruhl:
$ npm install eslint-plugin-iruhl --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-iruhl globally.
Usage
Add iruhl to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"iruhl"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"iruhl/rule-name": 2
}
}Supported Rules
- iruhl/sort-prop-types: Enforce propTypes declarations alphabetical sorting
- iruhl/no-props-reassign: Enforce propTypes declarations alphabetical sorting
