47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"node": true,
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly",
|
|
"$": "readonly",
|
|
"google": "readonly",
|
|
"exampleGlobalVariable": true
|
|
},
|
|
"plugins": [
|
|
// "jquery"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"semi": ["error", "always"],
|
|
"no-inner-declarations": 0,
|
|
"indent": ["error", 4],
|
|
"eqeqeq": ["warn", "always"],
|
|
"curly": "error",
|
|
"default-case": "error",
|
|
"no-var": "error",
|
|
"no-multi-spaces": "error",
|
|
"no-useless-constructor": "error",
|
|
"prefer-const": "error",
|
|
"prefer-rest-params": "error",
|
|
"prefer-spread": "error",
|
|
"no-console": "off",
|
|
"prefer-template": "warn",
|
|
"quotes": [
|
|
"warn",
|
|
"single",
|
|
{ "avoidEscape": true }
|
|
]
|
|
}
|
|
}
|