nitro-react/.eslintrc.json

56 lines
1.5 KiB
JSON
Raw Normal View History

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" ],
"react/prop-types": [ "off" ],
"object-curly-spacing": [ "error", "always" ],
"@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
}
}