aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-12 20:21:30 +0300
committerGitHub <noreply@github.com>2020-06-12 20:21:30 +0300
commit1860396a1286936374ab88937da3e0b6b9b1a36d (patch)
treeeb905fa1307833c1ab856c387be2fa533ed2ea34 /.eslintrc.json
parent0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff)
parent7e4ebee9a0e56546d6dce76c5c48d6d13371c689 (diff)
downloadwhich-api-1860396a1286936374ab88937da3e0b6b9b1a36d.tar.gz
Merge pull request #6 from eug-vs/eslint
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..2a3b4a8
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,25 @@
+{
+ "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" }],
+ "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
+ }
+}