procyon/.eslintrc
2020-07-24 22:39:52 +02:00

70 lines
1.2 KiB
Text

{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"react",
"react-hooks",
"typescript",
"@typescript-eslint"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"settings": {
"react": {
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
}
},
"rules": {
"max-len": [
"error",
{
"code": 120
}
],
"no-unused-vars": "error",
"object-curly-spacing": [
"error",
"always"
],
"no-multi-spaces": "error",
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/no-empty-interface:": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 2,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-function": 0,
"no-console": [
"error",
{
"allow": [
"info",
"warn",
"error"
]
}
],
"react/jsx-no-bind": "error",
"react/jsx-tag-spacing": [
"error",
{
"beforeSelfClosing": "always"
}
],
"react/prop-types": 0
}
}