-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
82 lines (74 loc) · 1.75 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
// change to eslint-config-airbnb/base for a config without react rules
"extends": "eslint-config-airbnb/base", // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/.eslintrc
// Allow the following global variables
"env": {
"browser": true, // browser global variables
"node": true, // Node.js global variables and Node.js scoping.
"mocha": true // adds all of the Mocha testing global variables.
},
"rules": {
/**
* ES6
*/
"prefer-const": 0,
/**
* Variables
*/
"no-shadow": [2, {
"builtinGlobals": true
}],
"no-unused-vars": [2, {
"vars": "all",
"args": "after-used"
}],
"no-use-before-define": [2, "nofunc"],
/**
* Possible errors
*/
"comma-dangle": [2, "never"],
"no-inner-declarations": [2, "both"],
/**
* Best practices
*/
"consistent-return": 0,
"curly": 2,
"dot-notation": [2, {
"allowKeywords": true,
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"eqeqeq": [2, "allow-null"],
"no-eq-null": 0,
"no-redeclare": [2, {
"builtinGlobals": true
}],
"wrap-iife": [2, "inside"],
/**
* Style
*/
"indent": [2, 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"SwitchCase": 1
}],
"func-names": 0,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-extra-parens": [2, "functions"],
"one-var": 0,
"space-before-function-paren": [2, "never"],
/**
* Node Style
*/
"node/no-missing-import": 2,
"node/no-missing-require": 2,
"node/no-unpublished-import": 2,
"node/no-unpublished-require": 2,
"node/shebang": 2
},
"plugins": ["node"]
}