diff options
author | eug-vs <eug-vs@keemail.me> | 2020-12-02 05:26:59 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-12-02 05:26:59 +0300 |
commit | 286c2f962db1087fb0d6ee444c218346056d85b3 (patch) | |
tree | 3faab68f862f15e7c760a2b7549dabda2b046aa1 /.eslintrc.json | |
parent | 7aff5bc9371a02196e84be348499c6550a13e3bf (diff) | |
download | mongo-cronjob-286c2f962db1087fb0d6ee444c218346056d85b3.tar.gz |
chore: install and configure eslint
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 25 |
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 + } +} |