86 lines
2.0 KiB
JSON
86 lines
2.0 KiB
JSON
{
|
|
"env": {
|
|
"node": true,
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react"
|
|
],
|
|
"rules": {
|
|
"nonblock-statement-body-position": [
|
|
"warn",
|
|
"below"
|
|
],
|
|
"brace-style": [
|
|
"warn",
|
|
"allman"
|
|
],
|
|
"indent": ["warn", 4, {
|
|
"SwitchCase": 1
|
|
}],
|
|
"no-warning-comments": [1, {
|
|
"terms": ["todo", "fixme"]
|
|
}],
|
|
"prefer-arrow-callback": "warn",
|
|
"prefer-const": "warn",
|
|
"prefer-destructuring": "warn",
|
|
"prefer-object-spread": "error",
|
|
"prefer-promise-reject-errors": "warn",
|
|
"prefer-regex-literals": "warn",
|
|
"prefer-rest-params": "warn",
|
|
"prefer-spread": "warn",
|
|
"semi": "error",
|
|
"semi-spacing": "warn",
|
|
"semi-style": [
|
|
"warn",
|
|
"last"
|
|
],
|
|
"object-curly-spacing": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"array-bracket-newline": [
|
|
"warn",
|
|
"consistent"
|
|
],
|
|
"array-bracket-spacing": [
|
|
"warn",
|
|
"always",
|
|
{
|
|
"objectsInArrays": false,
|
|
"arraysInArrays": false
|
|
}
|
|
],
|
|
"comma-spacing": [
|
|
"warn",
|
|
{
|
|
"after": true,
|
|
"before": false
|
|
}
|
|
],
|
|
"comma-style": "warn",
|
|
"no-console": "warn",
|
|
"no-constant-binary-expression": "error",
|
|
"no-trailing-spaces": "warn",
|
|
"quotes": ["error" , "single"],
|
|
"guard-for-in": "warn",
|
|
"yoda": [
|
|
"warn",
|
|
"never"
|
|
],
|
|
"wrap-regex": "error"
|
|
}
|
|
} |