aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-07 21:16:47 +0900
committerGitHub <noreply@github.com>2019-05-07 21:16:47 +0900
commit05ef6a8ca35aaa801c11eb6b4896caa3690058af (patch)
tree2c7708ca91ac2b462cc86aa28612e3d3943496f3 /.eslintrc
parent457d954e08923b4accd28a919c72d0b61db1bb98 (diff)
parent27d0a7f37d24a0ad68a8ccb7dee18fc1d00eea58 (diff)
Merge pull request #578 from ueokande/move-to-typescript
Move to TypeScript
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc18
1 files changed, 13 insertions, 5 deletions
diff --git a/.eslintrc b/.eslintrc
index 0f41e10..7845ca5 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -5,12 +5,17 @@
"browser" : true,
"webextensions": true
},
- "plugins": ["react"],
- "parser": "babel-eslint",
+ "plugins": [
+ "react",
+ "@typescript-eslint"
+ ],
+ "parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
- }
+ },
+ "sourceType": "module",
+ "project": "./tsconfig.json"
},
"extends": [ "eslint:all", "plugin:react/recommended" ],
"rules": {
@@ -30,6 +35,7 @@
"indent": ["error", 2],
"jsx-quotes": ["error", "prefer-single"],
"max-classes-per-file": "off",
+ "max-lines": "off",
"max-params": ["error", 5],
"max-statements": ["error", 15],
"multiline-comment-style": "off",
@@ -42,13 +48,14 @@
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-continue": "off",
"no-empty-function": "off",
+ "no-extra-parens": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-ternary": "off",
"no-undefined": "off",
"no-undef-init": "off",
- "no-unused-vars": ["error", { "varsIgnorePattern": "h" }],
+ "no-unused-vars": "off",
"no-use-before-define": "off",
"no-warning-comments": "off",
"object-curly-newline": ["error", { "consistent": true }],
@@ -71,6 +78,7 @@
"react/jsx-indent": ["error", 2],
"react/prop-types": "off",
- "react/react-in-jsx-scope": "off"
+ "react/react-in-jsx-scope": "off",
+ "@typescript-eslint/no-unused-vars": "error"
}
}