Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'plugin:security/recommended' config to plugin #10

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

pdehaan
Copy link
Contributor

@pdehaan pdehaan commented Feb 10, 2017

Usage:

{
  "env": {
    "es6": true,
    "node": true
  },
  "extends": [
    "eslint:recommended",
    "plugin:security/recommended"
  ],
  "rules": {
    "security/detect-object-injection": "off"
  }
}

@evilpacket
Copy link
Contributor

evilpacket commented Feb 10, 2017

Cool beans. We don't need to be explicit for the other rules? (edit: nm I see that they are in the pr)

@pdehaan
Copy link
Contributor Author

pdehaan commented Feb 10, 2017

All the rules in "plugin:security/recommended" will "warn" by default, I was just showing how you could override rules to off/error in your local ESLint configs since that rule seems to be the noisiest of the bunch.

xoxo,
-peter

@evilpacket evilpacket merged commit 1b95d87 into eslint-community:master Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants