120 lines
2.0 KiB
JSON
120 lines
2.0 KiB
JSON
|
{
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"commonjs": true,
|
||
|
"es2021": true,
|
||
|
"node": true
|
||
|
},
|
||
|
"extends": "eslint:recommended",
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": 12
|
||
|
},
|
||
|
"rules": {
|
||
|
"no-multiple-empty-lines": [
|
||
|
"error",
|
||
|
{
|
||
|
"max": 1,
|
||
|
"maxEOF": 0,
|
||
|
"maxBOF": 0
|
||
|
}
|
||
|
],
|
||
|
"object-curly-spacing": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"space-infix-ops": [
|
||
|
"error",
|
||
|
{
|
||
|
"int32Hint": false
|
||
|
}
|
||
|
],
|
||
|
"space-before-blocks": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"space-before-function-paren": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"indent": [
|
||
|
"error",
|
||
|
2
|
||
|
],
|
||
|
"linebreak-style": [
|
||
|
"error",
|
||
|
"unix"
|
||
|
],
|
||
|
"quotes": [
|
||
|
"error",
|
||
|
"single"
|
||
|
],
|
||
|
"semi": [
|
||
|
"error",
|
||
|
"never"
|
||
|
]
|
||
|
},
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": [
|
||
|
"*.ts"
|
||
|
],
|
||
|
"extends": [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended"
|
||
|
],
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": 12,
|
||
|
"sourceType": "module"
|
||
|
},
|
||
|
"plugins": [
|
||
|
"@typescript-eslint"
|
||
|
],
|
||
|
"rules": {
|
||
|
"no-multiple-empty-lines": [
|
||
|
"error",
|
||
|
{
|
||
|
"max": 1,
|
||
|
"maxEOF": 0,
|
||
|
"maxBOF": 0
|
||
|
}
|
||
|
],
|
||
|
"object-curly-spacing": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"space-infix-ops": [
|
||
|
"error",
|
||
|
{
|
||
|
"int32Hint": false
|
||
|
}
|
||
|
],
|
||
|
"space-before-blocks": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"space-before-function-paren": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"indent": [
|
||
|
"error",
|
||
|
2
|
||
|
],
|
||
|
"linebreak-style": [
|
||
|
"error",
|
||
|
"unix"
|
||
|
],
|
||
|
"quotes": [
|
||
|
"error",
|
||
|
"single"
|
||
|
],
|
||
|
"semi": [
|
||
|
"error",
|
||
|
"never"
|
||
|
],
|
||
|
"@typescript-eslint/no-non-null-assertion": "off"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|