100 lines
1.6 KiB
JSON
100 lines
1.6 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"jest": true
|
|
},
|
|
"extends": [
|
|
"plugin:react/recommended",
|
|
"standard"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"parser": "@babel/eslint-parser",
|
|
"plugins": [
|
|
"react",
|
|
"react-hooks"
|
|
],
|
|
"rules": {
|
|
"react/react-in-jsx-scope": "off",
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single",
|
|
{
|
|
"avoidEscape": true,
|
|
"allowTemplateLiterals": true
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error"
|
|
]
|
|
}
|
|
],
|
|
"jsx-quotes": [
|
|
"error",
|
|
"prefer-single"
|
|
],
|
|
"space-before-function-paren": [
|
|
"error",
|
|
{
|
|
"anonymous": "always",
|
|
"named": "never",
|
|
"asyncArrow": "always"
|
|
}
|
|
],
|
|
"curly": [
|
|
"error",
|
|
"multi-or-nest",
|
|
"consistent"
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"multiline-ternary": "off",
|
|
"operator-linebreak": [
|
|
"error",
|
|
"after"
|
|
],
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"ignoreRestSiblings": true
|
|
}
|
|
],
|
|
"lines-between-class-members": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"exceptAfterSingleLine": true
|
|
}
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn"
|
|
}
|
|
}
|