-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.eslintrc.security.js
More file actions
25 lines (24 loc) · 940 Bytes
/
Copy path.eslintrc.security.js
File metadata and controls
25 lines (24 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = {
extends: ["next/core-web-vitals", "plugin:security/recommended"],
plugins: ["security"],
rules: {
// Security-focused ESLint rules
"security/detect-object-injection": "error",
"security/detect-non-literal-regexp": "error",
"security/detect-unsafe-regex": "error",
"security/detect-buffer-noassert": "error",
"security/detect-child-process": "error",
"security/detect-disable-mustache-escape": "error",
"security/detect-eval-with-expression": "error",
"security/detect-no-csrf-before-method-override": "error",
"security/detect-non-literal-fs-filename": "error",
"security/detect-non-literal-require": "error",
"security/detect-possible-timing-attacks": "error",
"security/detect-pseudoRandomBytes": "error",
// Additional security rules
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
"no-script-url": "error",
},
}