37 lines
904 B
JSON
37 lines
904 B
JSON
|
{
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"commonjs": true,
|
||
|
"es2021": false,
|
||
|
"node": true
|
||
|
},
|
||
|
"extends": "eslint:recommended",
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": "latest"
|
||
|
},
|
||
|
"rules": {
|
||
|
"no-var": "error",
|
||
|
"semi": ["error", "never"],
|
||
|
"quotes": ["error", "single"],
|
||
|
"indent": ["error", 2],
|
||
|
"arrow-spacing": "error",
|
||
|
"array-bracket-spacing": ["error", "always"],
|
||
|
"array-bracket-newline": ["error", "consistent"],
|
||
|
"object-curly-spacing": ["error", "always"],
|
||
|
"object-curly-newline": ["error", { "consistent": true }],
|
||
|
"space-before-blocks": ["error", "always"]
|
||
|
},
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": ["./assets/**/*.js"],
|
||
|
"env": {
|
||
|
"commonjs": false,
|
||
|
"node": false
|
||
|
},
|
||
|
"parserOptions": {
|
||
|
"sourceType": "module"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|