-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 929 Bytes
/
.eslintrc
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
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:import/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"globals": {
"client": true,
"uptime": true
},
"rules": {
"curly": ["error", "multi-line", "consistent"],
"no-unused-vars": ["error", { "args": "none" }],
"prefer-const": ["warn", { "destructuring": "all" }],
"no-constant-condition": ["error", { "checkLoops": false }],
"import/extensions": ["error", "always", { "ts": "never" }],
"no-template-curly-in-string": "error",
"no-use-before-define": "error",
"no-duplicate-case": "error",
"no-throw-literal": "error",
"no-self-compare": "error",
"no-unreachable": "error",
"sort-imports": "error",
"no-console": "error",
"sort-vars": "error",
"no-empty": "error",
"no-undef": "error"
}
}