70 lines
1.1 KiB
JSON
70 lines
1.1 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"jest": true
|
|
},
|
|
"extends": [
|
|
"plugin:react/recommended",
|
|
"standard",
|
|
"prettier"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"parser": "@babel/eslint-parser",
|
|
"plugins": [
|
|
"react",
|
|
"react-hooks",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"prettier/prettier": [
|
|
"error"
|
|
],
|
|
"react/react-in-jsx-scope": "off",
|
|
"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"
|
|
],
|
|
"multiline-ternary": "off",
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"ignoreRestSiblings": true
|
|
}
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn"
|
|
}
|
|
}
|