forked from mongo-express/mongo-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (48 loc) · 1.3 KB
/
.eslintrc.js
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
module.exports = {
extends: "airbnb-base",
parserOptions: {
"sourceType": "script",
},
env: {
node: true
},
plugins: [
"import"
],
rules: {
"strict": ["error", "global"],
"global-require":["off"],
"comma-dangle": ["error", "always-multiline"],
"func-names": ["off"],
"new-cap": ["off"],
"consistent-return": ["off"],
"no-lonely-if": ["off"],
"no-console": ["off"],
"vars-on-top": ["off"],
"no-param-reassign": ["off"],
"prefer-arrow-callback": ["off"],
"no-else-return": ["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"],
"key-spacing": ["off"],
"max-len": ["error", 150, 2],
"spaced-comment": ["off"],
"brace-style": ["warn", "1tbs"],
"prefer-template": ["off"],
"padded-blocks": ["off"],
"no-underscore-dangle": ["off"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/test/*.js"]}],
// To be turned on
"no-var": ["off"],
"prefer-const": ["off"],
"object-shorthand": ["off"],
"no-path-concat": ["off"],
"no-shadow": ["off", {allow: ["err", "error"]}],
"camelcase": ["off"],
},
};