Skip to content

Instantly share code, notes, and snippets.

@mccabe615
Created March 31, 2017 18:33
Show Gist options
  • Save mccabe615/ea9c4d1ff8fbadfb4811a38169a69ea6 to your computer and use it in GitHub Desktop.
Save mccabe615/ea9c4d1ff8fbadfb4811a38169a69ea6 to your computer and use it in GitHub Desktop.
eslint security config
{
"plugins": ["security"],
"env": {
"node": true,
"es6": true
},
"rules": {
'security/detect-unsafe-regex': 1,
'security/detect-non-literal-regexp': 1,
'security/detect-non-literal-require': 1,
'security/detect-non-literal-fs-filename': 1,
'security/detect-eval-with-expression': 1,
'security/detect-pseudoRandomBytes': 1,
'security/detect-possible-timing-attacks': 1,
'security/detect-no-csrf-before-method-override': 1,
'security/detect-buffer-noassert': 1,
'security/detect-child-process': 1,
'security/detect-disable-mustache-escape': 1,
'security/detect-object-injection': 1,
'security/detect-new-buffer': 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment