Constnium/.eslintrc.json
2022-06-25 19:14:55 +02:00

35 lines
891 B
JSON

{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"semi": ["warn", "always"],
"semi-spacing": "warn",
"keyword-spacing": ["warn", {
"before": true,
"after": true
}],
"no-multi-spaces": ["warn", {
"ignoreEOLComments": true,
"exceptions": {
"VariableDeclarator": true
}
}],
"key-spacing": "warn",
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", "never"],
"space-infix-ops": "warn",
"brace-style": "warn",
"comma-spacing": "warn",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"arrow-spacing": "warn"
}
}