An ESLint Shareable Config with generic static security analysis plugins.
This module checks for basic security issues in your Javascript. It includes plugins recommended by 18F, listed here.
Shareable configs are designed to work with the ESLint extends
feature.
Learn more about Shareable Configs on the official ESLint website.
- Add the package to your
package.json
file:$ npm install --save-dev eslint eslint-config-secure
- Add this eslintConfig and npm script configuration to your
package.json
file:
{
"name": "my-super-package",
"eslintConfig": {
"extends": "secure"
}
"scripts": {
"lint": "./node_modules/.bin/eslint ."
}
}
You can override settings from this config by adding them directly to your .eslintrc
or package.json
file.
MIT. Copyright (c) Jeff Kohrman