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",
|
2024-04-06 11:55:26 +02:00
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended"
|
2022-11-17 13:32:07 +01:00
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2024-04-06 11:55:26 +02:00
|
|
|
"react",
|
|
|
|
"react-hooks"
|
2022-11-17 13:32:07 +01:00
|
|
|
],
|
|
|
|
"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
|
|
|
],
|
2024-01-15 15:07:49 +01:00
|
|
|
"indent": ["warn", 4, {
|
|
|
|
"SwitchCase": 1
|
|
|
|
}],
|
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",
|
2024-01-15 15:07:49 +01:00
|
|
|
"no-constant-binary-expression": "error",
|
|
|
|
"no-trailing-spaces": "warn",
|
2023-07-16 23:55:41 +02:00
|
|
|
"quotes": ["error" , "single"],
|
|
|
|
"guard-for-in": "warn",
|
|
|
|
"yoda": [
|
|
|
|
"warn",
|
|
|
|
"never"
|
2024-01-15 15:07:49 +01:00
|
|
|
],
|
|
|
|
"wrap-regex": "error"
|
2022-11-17 13:32:07 +01:00
|
|
|
}
|
2023-07-05 12:41:40 +02:00
|
|
|
}
|