69 lines
1.1 KiB
JSON
69 lines
1.1 KiB
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",
|
|
{
|
|
"objectsInArrays": false,
|
|
"arraysInArrays": false
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|