extract eslint rules from package.json (#1480)

pull/1481/head
Youssef Meskini 5 years ago committed by GitHub
parent fa8354e306
commit 28f4ee5783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
}
]
}
}

@ -57,45 +57,6 @@
"engines": {
"node": ">=12.0.0"
},
"eslintConfig": {
"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"
}
]
}
},
"homepage": ".",
"husky": {
"hooks": {

Loading…
Cancel
Save