eslint-config-security-browser
v0.0.3
Published
A collection of eslint rules that favour security best practices when coding for the browser
Downloads
44
Readme
Eslint config security (browser)
A collection of rules and plugins aimed at highlighting potential security threats in client side JavaScript codebases.
Installation
yarn add -D eslint-config-security-browser
# or
npm i -D eslint-config-security-browser
Make sure that you also install the peerdeps:
yarn add -D eslint-plugin-no-unsanitized eslint-plugin-prototype-pollution-security-rules eslint-plugin-scanjs-rules
# or
npm i -D eslint-plugin-no-unsanitized eslint-plugin-prototype-pollution-security-rules eslint-plugin-scanjs-rules
Finally add the eslint-config-security-browser
to your Eslint config:
// ...
extends: [
'eslint-config-security-browser'
],
plugins: [
// ...
Credits
This config is based off Jakob Wilkin's Linting For Bugs & Vulnerabilities article and demo and made available to anyone on npm.
License
MIT