diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-12 20:08:49 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-12 20:08:49 +0300 |
commit | 755889e7c1c74b0bd7677fc513d04473689eaf57 (patch) | |
tree | 9d2cae8d264223999128323cb422e404d1ae5791 /.eslintrc.json | |
parent | 0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff) | |
download | which-api-755889e7c1c74b0bd7677fc513d04473689eaf57.tar.gz |
style: configure eslint
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 22 |
1 files changed, 22 insertions, 0 deletions
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 + } +} |