chore: Use @excalidraw/eslint-config (#3142)

This commit is contained in:
Lipis 2021-03-02 12:29:32 +02:00 committed by GitHub
parent bd63dcbcc5
commit 418589e7ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 36 deletions

View file

@ -1,40 +1,6 @@
{
"extends": ["prettier", "react-app"],
"plugins": ["prettier"],
"extends": ["@excalidraw/eslint-config", "react-app"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"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"
"import/no-anonymous-default-export": "off"
}
}