2022-04-01 19:33:08 +02:00
|
|
|
{
|
2022-04-04 02:52:34 +02:00
|
|
|
"root": true,
|
2023-01-03 08:39:03 +01:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": "latest",
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
2022-04-01 19:33:08 +02:00
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"pragma": "React",
|
2022-04-02 07:37:27 +02:00
|
|
|
"version": "18.0.0"
|
2022-04-01 19:33:08 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"plugin:react/recommended",
|
2022-04-02 07:37:27 +02:00
|
|
|
"plugin:react/jsx-runtime",
|
|
|
|
"plugin:react-hooks/recommended"
|
2022-04-01 19:33:08 +02:00
|
|
|
],
|
|
|
|
"plugins": [
|
2023-01-03 08:39:03 +01:00
|
|
|
"@typescript-eslint",
|
|
|
|
"react"
|
2022-04-01 19:33:08 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
2023-01-03 08:39:03 +01:00
|
|
|
"linebreak-style": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"@typescript-eslint/indent": [
|
|
|
|
"error",
|
|
|
|
4,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"array-bracket-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"brace-style": [
|
|
|
|
"error",
|
|
|
|
"allman"
|
|
|
|
],
|
|
|
|
"template-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"no-multi-spaces": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"@typescript-eslint/object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always",
|
2022-04-04 04:45:47 +02:00
|
|
|
{
|
|
|
|
"arraysInObjects": true,
|
|
|
|
"objectsInObjects": false
|
|
|
|
}
|
|
|
|
],
|
2022-04-02 07:37:27 +02:00
|
|
|
"@typescript-eslint/ban-types": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"types": {
|
|
|
|
"String": true,
|
|
|
|
"Boolean": true,
|
|
|
|
"Number": true,
|
|
|
|
"Symbol": true,
|
|
|
|
"{}": false,
|
|
|
|
"Object": false,
|
|
|
|
"object": false,
|
|
|
|
"Function": false
|
|
|
|
},
|
|
|
|
"extendDefaults": true
|
|
|
|
}
|
|
|
|
],
|
2023-01-03 08:39:03 +01:00
|
|
|
"no-switch-case-fall-through": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"jsx-quotes": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"react/prop-types": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"react/jsx-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"when": "always",
|
|
|
|
"children": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"react/jsx-equals-spacing": [
|
|
|
|
"error"
|
|
|
|
],
|
|
|
|
"react/jsx-newline": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"prevent": true
|
|
|
|
}
|
|
|
|
]
|
2022-04-01 19:33:08 +02:00
|
|
|
}
|
|
|
|
}
|