aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-04-18 21:17:50 +0300
committerGitHub <noreply@github.com>2020-04-18 21:17:50 +0300
commit1d1df03b64d31a9606e494d086eb7ae3bee92681 (patch)
tree5bea19d0bc6afc0440f71fb8df962e29fbb568e2 /.eslintrc.json
parentad42e742c04c8302c2bcaf67c07ef215bba04f3b (diff)
parenta31244374f5609e89d8ff22e4111ab04d94886a2 (diff)
downloadreact-benzin-1d1df03b64d31a9606e494d086eb7ae3bee92681.tar.gz
Merge pull request #12 from eug-vs/codestyle
Configure ESlint properly
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json15
1 files changed, 13 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index ac05a7f..c86a906 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,12 +1,23 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
- "react-app",
+ "airbnb-typescript",
"plugin:@typescript-eslint/recommended"
],
+ "parserOptions": {
+ "project": "./tsconfig.json"
+ },
"ignorePatterns": "dist/",
"rules": {
"jsx-quotes": ["error", "prefer-double"],
- "quotes": ["error", "single"]
+ "quotes": ["error", "single"],
+ "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ],
+ "max-len": ["error", { "code": 120 }],
+ "arrow-parens": [2, "as-needed"],
+ "arrow-body-style": 0,
+ "no-cond-assign": 0,
+ "react/prop-types": 0,
+ "react/no-children-prop": 0,
+ "react/no-danger": 0
}
}