Rename .eslintrc to .eslintrc.json (#1481)

So it will be auto formatted on commits
This commit is contained in:
Lipis 2020-04-23 20:17:47 +03:00 committed by GitHub
parent 28f4ee5783
commit 0220341966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
.eslintrc.json Normal file
View file

@ -0,0 +1,30 @@
{
"extends": ["prettier", "react-app"],
"plugins": ["prettier"],
"rules": {
"curly": "warn",
"no-console": [
"warn",
{
"allow": ["warn", "error", "info"]
}
],
"no-else-return": "warn",
"no-useless-return": "warn",
"prefer-const": [
"warn",
{
"destructuring": "all"
}
],
"prefer-template": "warn",
"prettier/prettier": "warn",
"no-restricted-syntax": [
"warn",
{
"selector": "JSXText[value=/\\w/]",
"message": "Use 't(...)' instead of literal text in JSX"
}
]
}
}