This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc
85 lines (74 loc) · 1.98 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
83
84
85
{
"env": {
"node": true,
"browser": true,
"mocha": true
},
"globals": {
"navigator",
"$serverSide",
"$isiOS",
"$isAndroid",
"$isBrowser"
},
"parser": "babel-eslint",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"jsx": true
},
"rules": {
// Lint Rules
"no-bitwise": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"no-use-before-define": 2,
"no-caller": 2,
"no-new": 0,
"no-undef": 0, // Fix Me
"no-unused-vars": 0, // Fix Me
"strict": 0,
"max-params": [2, 5],
"semi": 0,
"no-cond-assign": 0,
"no-loop-func": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
// Style Rules
"no-with": 1,
"no-eval": 1,
"space-after-keywords": 1,
"curly": [1, "all"],
"space-before-blocks": 1,
"no-empty": 1,
"space-before-function-parentheses": [1, "never"],
"wrap-iife": 1,
"space-in-brackets": [1, "never"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"dot-notation": 1,
"camelcase": 1,
"no-multi-str": 1,
"no-mixed-spaces-and-tabs": 1,
"no-trailing-spaces": 1,
"eol-last" : 1,
"comma-spacing": [1, {"before": false, "after": true}],
"indent": [1, 2],
"quotes": [1, "single"]
}
}