2020-04-23 18:35:05 +02:00
|
|
|
{
|
2020-11-06 21:06:30 +01:00
|
|
|
"extends": ["prettier", "react-app"],
|
2020-04-23 18:35:05 +02:00
|
|
|
"plugins": ["prettier"],
|
|
|
|
"rules": {
|
2021-02-14 10:23:05 +01:00
|
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
2020-04-23 18:35:05 +02:00
|
|
|
"curly": "warn",
|
2020-11-06 21:06:30 +01:00
|
|
|
"dot-notation": "warn",
|
|
|
|
"import/no-anonymous-default-export": "off",
|
2020-04-23 18:35:05 +02:00
|
|
|
"no-console": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"allow": ["warn", "error", "info"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-else-return": "warn",
|
2020-11-06 21:06:30 +01:00
|
|
|
"no-lonely-if": "warn",
|
|
|
|
"no-restricted-syntax": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"message": "Use 't(...)' instead of literal text in JSX",
|
|
|
|
"selector": "JSXText[value=/\\w/]"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-unneeded-ternary": "warn",
|
|
|
|
"no-unused-expressions": "warn",
|
2020-04-23 18:35:05 +02:00
|
|
|
"no-useless-return": "warn",
|
2020-11-29 17:32:51 +01:00
|
|
|
"no-var": "warn",
|
|
|
|
"object-shorthand": "warn",
|
2020-11-06 21:06:30 +01:00
|
|
|
"one-var": ["warn", "never"],
|
|
|
|
"prefer-arrow-callback": "warn",
|
2020-04-23 18:35:05 +02:00
|
|
|
"prefer-const": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"destructuring": "all"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"prefer-template": "warn",
|
2020-11-06 21:06:30 +01:00
|
|
|
"prettier/prettier": "warn"
|
2020-04-23 18:35:05 +02:00
|
|
|
}
|
|
|
|
}
|