forked from wework/env-universal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (50 loc) · 1.34 KB
/
.eslintrc
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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
],
"env": {
"browser": true,
"commonjs": true,
"node": true
},
"globals" : {},
"settings": {
"import/resolver": "node"
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
"rules": {
"no-extra-boolean-cast": 0,
"no-prototype-builtins": 0,
"no-unused-vars": ["error", { "vars": "all", "args": "none", "varsIgnorePattern": "logger" }],
"max-len": [2, {"code": 120, "tabWidth": 2, "ignoreUrls": true}],
"arrow-spacing": 2,
"object-curly-spacing": [2, "always"],
"no-multiple-empty-lines": 0,
"id-length": [2, {"exceptions": ["$", "_", "L", "v", "w", "h", "i", "j"]}],
"array-bracket-spacing": [0, "always"],
"arrow-body-style": 0,
"no-underscore-dangle": 0,
"func-names": 0,
"padded-blocks": 0,
"class-methods-use-this": 0,
# ensure JSDoc comments are valid
"valid-jsdoc": [1, {
"requireReturn": false,
requireParamDescription: false,
requireReturnDescription: false
}],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/no-duplicates": 0,
"import/newline-after-import": 0,
"import/imports-first": 0,
"import/extensions": 0,
},
}