forked from mongo-express/mongo-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
68 lines (62 loc) · 1.56 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
extends:
- airbnb-base
- plugin:unicorn/all
parser: '@babel/eslint-parser'
parserOptions:
requireConfigFile: false
sourceType: module
env:
node: true
es6: true
plugins:
- import
- lodash
rules:
strict: [error, global]
global-require: off
func-names: off
new-cap: off
consistent-return: off
no-console: off
vars-on-top: off
no-param-reassign: off
prefer-arrow-callback: off
no-nested-ternary: off
no-restricted-syntax: off
no-mixed-operators: off
no-plusplus: off
guard-for-in: off
no-continue: off
no-multi-spaces: off
max-len: [error, 150, 2]
prefer-template: off
no-underscore-dangle: off
import/extensions: [error, always]
import/no-extraneous-dependencies:
- error
- devDependencies:
- '**/test/**/*.js'
- '**/scripts/*.js'
- '**/webpack.config.js'
lodash/callback-binding: error
lodash/collection-method-value: error
lodash/collection-return: error
lodash/no-double-unwrap: error
lodash/no-extra-args: error
lodash/no-unbound-this: error
lodash/unwrap: error
unicorn/filename-case: off
unicorn/no-array-callback-reference: off
unicorn/no-array-method-this-argument: off
unicorn/no-keyword-prefix: off
unicorn/no-null: off
unicorn/no-unsafe-regex: off
unicorn/numeric-separators-style: off
unicorn/prefer-at: off # missing at function in Node v14
unicorn/prefer-export-from: off
unicorn/prefer-string-replace-all: off # missing replaceAll function in Node v14
unicorn/prevent-abbreviations: off
# To be turned on
no-shadow:
- off
- allow: [err, error]