-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy patheslint.config.js
More file actions
40 lines (39 loc) · 1003 Bytes
/
eslint.config.js
File metadata and controls
40 lines (39 loc) · 1003 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
38
39
40
const js = require("@eslint/js");
const globals = require("globals");
const pluginN = require("eslint-plugin-n");
const pluginSecurity = require("eslint-plugin-security");
const prettier = require("eslint-config-prettier");
module.exports = [
js.configs.recommended,
pluginSecurity.configs.recommended,
prettier,
{
plugins: {
n: pluginN,
security: pluginSecurity
},
languageOptions: {
ecmaVersion: 2020,
sourceType: "commonjs",
globals: {
...globals.node,
...globals.jest,
...globals.jasmine
}
},
rules: {
"no-var": "error",
"no-console": "warn",
"no-unused-vars": "warn",
"no-trailing-spaces": "error",
"security/detect-object-injection": "off",
"security/detect-non-literal-require": "off",
"security/detect-non-literal-fs-filename": "off",
"no-process-exit": "off",
"n/no-unpublished-require": "off",
"require-atomic-updates": "off",
"object-curly-spacing": ["warn", "always"],
"no-useless-assignment": "off"
}
}
];