42 lines
852 B
JSON
42 lines
852 B
JSON
|
{
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"es2021": true
|
||
|
},
|
||
|
"extends": [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended"
|
||
|
],
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": "latest",
|
||
|
"sourceType": "module"
|
||
|
},
|
||
|
"plugins": [
|
||
|
"@typescript-eslint"
|
||
|
],
|
||
|
"rules": {
|
||
|
"indent": [
|
||
|
"error",
|
||
|
2
|
||
|
],
|
||
|
"linebreak-style": [
|
||
|
"error",
|
||
|
"unix"
|
||
|
],
|
||
|
"quotes": [
|
||
|
"error",
|
||
|
"single"
|
||
|
],
|
||
|
"semi": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"space-in-parens": ["error", "never"],
|
||
|
"key-spacing": ["error", { "mode": "strict" }],
|
||
|
"comma-spacing": ["error", { "before": false, "after": true }],
|
||
|
"arrow-spacing": ["error", { "before": true, "after": true }],
|
||
|
"space-before-blocks": 2,
|
||
|
"object-curly-spacing": ["error", "always"]
|
||
|
}
|
||
|
}
|