-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 881 Bytes
/
eslint.config.js
File metadata and controls
29 lines (28 loc) · 881 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
26
27
28
29
const securityPlugin = require('eslint-plugin-security');
const js = require('@eslint/js');
const globals = require('globals');
const jestPlugin = require('eslint-plugin-jest');
module.exports = [
js.configs.recommended,
securityPlugin.configs.recommended,
jestPlugin.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
node: "readonly",
chrome: "readonly",
browser: "readonly",
},
ecmaVersion: 12,
sourceType: "module"
},
rules: {
'security/detect-object-injection': 'warn',
'no-eval': 'error',
'no-implied-eval': 'error',
// Disable some noisy rules if needed, but for "hard" security, keep them.
}
}
];