nitro-react/.eslintrc.json

122 lines
2.7 KiB
JSON
Raw Normal View History

2022-04-01 19:33:08 +02:00
{
2022-04-04 02:52:34 +02:00
"root": true,
"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": [
"@typescript-eslint",
"react"
2022-04-01 19:33:08 +02:00
],
"rules": {
"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
}
],
"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
}
2024-04-12 02:58:34 +02:00
],
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"shorthandFirst": true,
"shorthandLast": false,
"ignoreCase": true,
"noSortAlphabetically": false,
"reservedFirst": true
}
]
2022-04-01 19:33:08 +02:00
}
}