From 755889e7c1c74b0bd7677fc513d04473689eaf57 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 12 Jun 2020 20:08:49 +0300 Subject: style: configure eslint --- .eslintrc.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .eslintrc.json (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..cab5e1b --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,22 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": [ + "airbnb-typescript/base", + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "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"], + "import/extensions": ["error", { "ts": "never" }], + "arrow-body-style": 0, + "no-underscore-dangle": 0, + "no-cond-assign": 0, + "linebreak-style": 0 + } +} -- cgit v1.2.3 From 7e4ebee9a0e56546d6dce76c5c48d6d13371c689 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 12 Jun 2020 20:20:33 +0300 Subject: style: fix all eslint errors --- .eslintrc.json | 3 +++ 1 file changed, 3 insertions(+) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index cab5e1b..2a3b4a8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,9 +14,12 @@ "arrow-parens": [2, "as-needed"], "comma-dangle": ["error", "never"], "import/extensions": ["error", { "ts": "never" }], + "class-methods-use-this": 0, "arrow-body-style": 0, "no-underscore-dangle": 0, "no-cond-assign": 0, + "no-console": 0, + "no-plusplus": 0, "linebreak-style": 0 } } -- cgit v1.2.3