69 lines
1.4 KiB
JSON
69 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"node": true,
|
|
"commonjs": true,
|
|
"es6": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017
|
|
},
|
|
"rules": {
|
|
// first argument: 0 - silent, 1 - warning, 2 - error
|
|
"no-console": 0,
|
|
"no-empty": 0,
|
|
"strict": [
|
|
2,
|
|
"safe"
|
|
],
|
|
"no-debugger": 2,
|
|
"brace-style": [
|
|
2,
|
|
"1tbs",
|
|
{
|
|
"allowSingleLine": true
|
|
}
|
|
],
|
|
// "no-trailing-spaces": 2,
|
|
"keyword-spacing": 2,
|
|
"spaced-comment": [
|
|
2,
|
|
"always"
|
|
],
|
|
"vars-on-top": 2,
|
|
"no-undef": 2,
|
|
"no-undefined": 2,
|
|
"comma-dangle": [
|
|
2,
|
|
"never"
|
|
],
|
|
"quotes": [
|
|
2,
|
|
"single"
|
|
],
|
|
"semi": [
|
|
2,
|
|
"always"
|
|
],
|
|
"guard-for-in": 2,
|
|
"no-eval": 2,
|
|
"no-with": 2,
|
|
"valid-typeof": 2,
|
|
"no-continue": 1,
|
|
"no-extra-semi": 1,
|
|
"no-unreachable": 1,
|
|
"no-unused-expressions": 1,
|
|
// "no-magic-numbers": 1,
|
|
"no-irregular-whitespace": 0,
|
|
"no-unused-vars": [
|
|
1,
|
|
{
|
|
"argsIgnorePattern": "next"
|
|
}
|
|
]
|
|
}
|
|
} |