webserver-framework-frontend/.eslintrc.json

109 lines
2.8 KiB
JSON
Raw Permalink 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",
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,
2024-05-01 15:57:32 +02:00
"sourceType": "module",
"project": "./tsconfig.json"
2022-11-17 13:32:07 +01:00
},
"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, {
2024-05-01 15:57:32 +02:00
"SwitchCase": 1,
"VariableDeclarator": "first",
"FunctionDeclaration": {"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"ObjectExpression": "first",
"ImportDeclaration": "first"
2024-01-15 15:07:49 +01:00
}],
"no-warning-comments": [1, {
"terms": ["todo", "fixme"]
}],
2024-05-01 15:57:32 +02:00
"no-multi-spaces": ["warn", {"ignoreEOLComments": true, "exceptions": {"ImportDeclaration": true}}],
"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",
2024-05-01 15:57:32 +02:00
"no-tabs": "error",
"quotes": ["error" , "single"],
2024-05-01 15:57:32 +02:00
"jsx-quotes": [
"error",
"prefer-single"
],
"key-spacing": [
"warn",
{
"beforeColon": false,
"afterColon": true,
"align": "value"
}
],
"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
}