aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-08-12 21:01:02 +0900
committerGitHub <noreply@github.com>2020-08-12 21:01:02 +0900
commitbf6762f0c0c47a20b6a3e722711fafc6611793a9 (patch)
tree67bfdcee88c8fb2bc19277e58684dcf5d2d03be4 /.eslintrc
parent6f7f501c699c53eb63ce5576cf2464ecf4cfe162 (diff)
parent7e8c99d43a402b9e025a710a00879d557ac5b071 (diff)
Merge pull request #798 from ueokande/eslint
Improve eslint
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc16
1 files changed, 9 insertions, 7 deletions
diff --git a/.eslintrc b/.eslintrc
index 91d950b..5eb19bb 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -7,9 +7,11 @@
},
"extends": [
+ "eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
- "plugin:prettier/recommended"
+ "plugin:prettier/recommended",
+ "prettier/react"
],
"plugins": [
"@typescript-eslint",
@@ -23,16 +25,16 @@
"jsx": true
}
},
+ "settings": {
+ "react": {
+ "version": "detect"
+ }
+ },
"rules": {
- "@typescript-eslint/ban-types": "off",
- "@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
- "@typescript-eslint/no-extra-non-null-assertion": "off",
- "@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
- "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
- "@typescript-eslint/no-use-before-define": "off"
+ "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
}
}