.eslintrc.js
880 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
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"rules": {
// "indent": [
// "warn",
// 4
// ],
"linebreak-style": "off",
"quotes": "off",
"semi": [
"off",
"always"
],
"no-console": [
"error", { allow: ["info", "warn", "error"]}
],
"no-unused-vars": [
"warn",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
],
"no-constant-condition": [
"warn"
],
"no-control-regex": "off",
"no-redeclare": "off",
"require-atomic-updates": "off",
"no-prototype-builtins": 'off'
}
};