2022-11-17 13:32:07 +01:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"node": true,
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
2023-07-05 12:41:40 +02:00
|
|
|
"eslint:recommended",
|
2023-04-19 23:32:47 +02:00
|
|
|
"plugin:@typescript-eslint/recommended",
|
2022-11-17 13:32:07 +01:00
|
|
|
"plugin:react/recommended"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"react"
|
|
|
|
],
|
|
|
|
"rules": {
|
2023-07-05 12:41:40 +02:00
|
|
|
"nonblock-statement-body-position": [
|
|
|
|
"warn",
|
|
|
|
"below"
|
2022-11-17 13:32:07 +01:00
|
|
|
],
|
|
|
|
"brace-style": [
|
|
|
|
"warn",
|
2023-07-05 12:41:40 +02:00
|
|
|
"allman"
|
2022-11-17 13:32:07 +01:00
|
|
|
],
|
2023-07-05 13:28:06 +02:00
|
|
|
"indent": "warn",
|
2023-07-16 23:55:41 +02:00
|
|
|
"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",
|
|
|
|
"quotes": ["error" , "single"],
|
|
|
|
"guard-for-in": "warn",
|
|
|
|
"yoda": [
|
|
|
|
"warn",
|
|
|
|
"never"
|
|
|
|
]
|
2022-11-17 13:32:07 +01:00
|
|
|
}
|
2023-07-05 12:41:40 +02:00
|
|
|
}
|