aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorilyayudovin <46264063+ilyayudovin@users.noreply.github.com>2020-06-06 20:06:16 +0300
committerGitHub <noreply@github.com>2020-06-06 20:06:16 +0300
commit7b932411d847a85f42015eb39d55b457675c714e (patch)
tree2a4e2bc89116105ae269e83b30c966fab0f0c19f /.eslintrc.json
parentbdf533b43a6b9fab5420c86716c9611ce857d761 (diff)
parentc1a8bfa68cd9e93bdee795ef292b1ddeb1f238c3 (diff)
downloadwhich-ui-7b932411d847a85f42015eb39d55b457675c714e.tar.gz
Merge pull request #7 from ilyayudovin/eslint
Configure eslint
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..0789840
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,25 @@
+{
+ "parser": "@typescript-eslint/parser",
+ "extends": [
+ "airbnb-typescript",
+ "plugin:@typescript-eslint/recommended"
+ ],
+ "parserOptions": {
+ "project": "./tsconfig.json"
+ },
+ "ignorePatterns": "dist/",
+ "rules": {
+ "jsx-quotes": ["error", "prefer-double"],
+ "quotes": ["error", "single"],
+ "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ],
+ "max-len": ["error", { "code": 120 }],
+ "arrow-parens": [2, "as-needed"],
+ "comma-dangle": ["error", "never"],
+ "arrow-body-style": 0,
+ "no-cond-assign": 0,
+ "linebreak-style": 0,
+ "react/prop-types": 0,
+ "react/no-children-prop": 0,
+ "react/no-danger": 0
+ }
+} \ No newline at end of file