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
.
Enable the rules that you would like to use.
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)