Secure - ESLint Shareable Config




_An ESLint
Shareable Config with generic static security analysis plugins._
What is this?
This module checks for basic security issues in your Javascript. It includes plugins recommended by 18F,
listed here.
Usage
Shareable configs are designed to work with the ESLint
extends feature.
Learn more about
Shareable Configs on the official ESLint website.
1. Add the package to your
package.json file:
``
$ npm install --save-dev eslint eslint-config-secure
`
2. 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.
License
MIT. Copyright (c)
Jeff Kohrman