forked from nightscout/cgm-remote-monitor
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (35 loc) · 745 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (35 loc) · 745 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
30
31
32
33
34
35
36
37
import pluginsecurity from "eslint-plugin-security";
/** @type {ESLint.ConfigData} */
export default [
pluginsecurity.configs.recommended,
{
languageOptions: {
globals: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
jquery: true,
},
},
rules: {
"security/detect-object-injection": 0,
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_|should|expect",
caughtErrorsIgnorePattern: "^_",
},
],
"prefer-template": "error",
},
},
{
files: ["lib/client/*.js"],
rules: {
"security/detect-object-injection": 0,
},
},
];