ESLint shareable Configs for McAfee JavaScript Secure Coding Recommentations
$ npm install --save-dev eslint eslint-config-mcafee
Once the eslint-config-mcafee
package is installed, you can use it by specifying
mcafee
in the extends section of your ESLint configuration.
{
extends: 'mcafee',
rules: {
// Additional rules and overrides...
}
}
- It is strongly recommended with
eslint:recommended
like below
{
extends: ['eslint:recommended', 'mcafee'],
rules: {
// Additional rules and overrides...
}
}