webserver-framework-frontend/.eslintrc.json

86 lines
2.0 KiB
JSON
Raw Normal View History

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
],
2024-01-15 15:07:49 +01:00
"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",
2024-01-15 15:07:49 +01:00
"no-constant-binary-expression": "error",
"no-trailing-spaces": "warn",
"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
}