eslint-config-secure
v0.2.1
Published
A shareable ESLint config with code security plugins
Downloads
43
Maintainers
Readme
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.
- 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.
License
MIT. Copyright (c) Jeff Kohrman