mirror of https://github.com/Hypfer/Valetudo.git
89 lines
1.6 KiB
JSON
89 lines
1.6 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": [
|
|
"react",
|
|
"@typescript-eslint"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"linkComponents": [
|
|
"Hyperlink",
|
|
{
|
|
"name": "Link",
|
|
"linkAttribute": "to"
|
|
}
|
|
]
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"varsIgnorePattern": "^_",
|
|
"args": "none"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"react/jsx-uses-react": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs"
|
|
],
|
|
"no-trailing-spaces": [
|
|
"error",
|
|
{
|
|
"ignoreComments": true
|
|
}
|
|
],
|
|
"keyword-spacing": "error",
|
|
"eol-last": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-multi-spaces": [
|
|
"error",
|
|
{
|
|
"ignoreEOLComments": true
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"indent": [
|
|
"error",
|
|
4,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"no-empty": "error"
|
|
}
|
|
} |