chore: Use @excalidraw/eslint-config (#3142)
parent
bd63dcbcc5
commit
418589e7ad
@ -1,40 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": ["prettier", "react-app"],
|
"extends": ["@excalidraw/eslint-config", "react-app"],
|
||||||
"plugins": ["prettier"],
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-unused-vars": "warn",
|
"import/no-anonymous-default-export": "off"
|
||||||
"curly": "warn",
|
|
||||||
"dot-notation": "warn",
|
|
||||||
"import/no-anonymous-default-export": "off",
|
|
||||||
"no-console": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"allow": ["warn", "error", "info"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no-else-return": "warn",
|
|
||||||
"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",
|
|
||||||
"no-useless-return": "warn",
|
|
||||||
"no-var": "warn",
|
|
||||||
"object-shorthand": "warn",
|
|
||||||
"one-var": ["warn", "never"],
|
|
||||||
"prefer-arrow-callback": "warn",
|
|
||||||
"prefer-const": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"destructuring": "all"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"prefer-template": "warn",
|
|
||||||
"prettier/prettier": "warn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue