From e46a591c1a16f6c1cb6c21548faf2bf6599cc923 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 Apr 2020 19:57:17 +0300 Subject: feat: update linting config --- .eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index ac05a7f..0d36de5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,12 @@ { "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"], -- cgit v1.2.3 From 9941754be106accd5ea8ce4b6f8229dd6f4afc9b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 Apr 2020 20:23:32 +0300 Subject: feat: update linting rules --- .eslintrc.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index 0d36de5..c5c45a7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,6 +10,10 @@ "ignorePatterns": "dist/", "rules": { "jsx-quotes": ["error", "prefer-double"], - "quotes": ["error", "single"] + "quotes": ["error", "single"], + "react/prop-types": 0, + "arrow-body-style": 0, + "arrow-parens": [2, "as-needed"], + "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ] } } -- cgit v1.2.3 From 9272b0af3d7b2fba4738a341a1f2776243e0e515 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 Apr 2020 20:44:55 +0300 Subject: style: manually fix some errors --- .eslintrc.json | 2 ++ 1 file changed, 2 insertions(+) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index c5c45a7..a755820 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,9 @@ "jsx-quotes": ["error", "prefer-double"], "quotes": ["error", "single"], "react/prop-types": 0, + "react/no-children-prop": 0, "arrow-body-style": 0, + "no-cond-assign": 0, "arrow-parens": [2, "as-needed"], "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ] } -- cgit v1.2.3 From 8e4a483fb7d1ebdfc950c1cc456ae2d4bd558147 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 Apr 2020 20:52:31 +0300 Subject: style: fix remaining errors --- .eslintrc.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index a755820..5e44a20 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,9 +13,11 @@ "quotes": ["error", "single"], "react/prop-types": 0, "react/no-children-prop": 0, + "react/no-danger": 0, "arrow-body-style": 0, "no-cond-assign": 0, "arrow-parens": [2, "as-needed"], - "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ] + "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ], + "max-len": ["error", { "code": 120 }] } } -- cgit v1.2.3 From f4f8689631d247f0be93c2f32791c9ba02ecb64e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 18 Apr 2020 21:01:34 +0300 Subject: style: fix index.tsx --- .eslintrc.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index 5e44a20..c86a906 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,13 +11,13 @@ "rules": { "jsx-quotes": ["error", "prefer-double"], "quotes": ["error", "single"], - "react/prop-types": 0, - "react/no-children-prop": 0, - "react/no-danger": 0, + "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, - "arrow-parens": [2, "as-needed"], - "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ], - "max-len": ["error", { "code": 120 }] + "react/prop-types": 0, + "react/no-children-prop": 0, + "react/no-danger": 0 } } -- cgit v1.2.3