nitro-react/.eslintrc.json

68 lines
1.9 KiB
JSON
Raw Permalink Normal View History

2022-04-01 19:33:08 +02:00
{
2022-04-04 02:52:34 +02:00
"root": 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
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
2022-04-02 07:37:27 +02:00
"linebreak-style": [ "off" ],
"quotes": [ "error", "single" ],
"@typescript-eslint/indent": [ "error", 4, { "SwitchCase": 1 } ],
"array-bracket-spacing": [ "error", "always" ],
"brace-style": [ "error", "allman" ],
2022-04-04 02:52:34 +02:00
"template-curly-spacing": [ "error", "always" ],
"no-multi-spaces": [ "error" ],
"jsx-quotes": [ "error" ],
2022-04-04 04:45:47 +02:00
"react/prop-types": [ "off" ],
"react/jsx-curly-spacing": [ "error", { "when": "always", "children": true } ],
2022-04-04 02:52:34 +02:00
"react/jsx-equals-spacing": [ "error" ],
2022-04-04 04:45:47 +02:00
"react/jsx-newline": [ "error", { "prevent": true } ],
"@typescript-eslint/object-curly-spacing": [ "error", "always",
{
"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
}
],
"no-switch-case-fall-through": [ "off" ]
2022-04-01 19:33:08 +02:00
}
}