eslint-plugin-rapid7
v7.3.4
Published
Rapid7 specific linting rules for ESLint
Downloads
287
Maintainers
Readme
eslint-plugin-rapid7
Rapid7-specific linting rules for ESLint
Installation
Install ESLint as well as the plugin.
$ npm install eslint eslint-plugin-rapid7 --save-dev
Configuration
Add plugins
section and specify eslint-plugin-rapid7
as a plugin to your .eslintrc
.
{
"plugins": ["rapid7"]
}
Enable the rules that you would like to use.
{
"rules": {
"rapid7/named-import-newline": 1,
"rapid7/sort-object-keys": [2, {"caseSensitive": false}]
}
}
List of supported rules
- named-import-newline: Enforce newlines between named imports from a package (fixable)
- no-trailing-underscore: Enforce no trailing underscore on variable / method names
- sort-object-keys: Enforce object keys sorted alphabetically (fixable)