-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc
127 lines (124 loc) · 1.57 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
rules:
#
# Coding helpers rules
#
strict:
- 2
- never
max-depth:
- 1
- 5
max-nested-callbacks:
- 1
- 4
#
# Avoid JS bad parts
#
no-use-before-define:
- 1
- nofunc
no-unused-vars:
- 1
-
vars: all
args: none
no-console:
- 1
no-alert:
- 1
no-debugger:
- 1
no-dupe-args:
- 2
no-dupe-keys:
- 2
no-duplicate-case:
- 2
no-func-assign:
- 2
no-inner-declarations:
- 2
no-unreachable:
- 2
no-redeclare:
- 2
no-shadow:
- 2
no-undef:
- 2
no-undefined:
- 0
valid-typeof:
- 2
no-loop-func:
- 1
#
# Punctation rules
#
semi:
- 2
- always
comma-dangle:
- 1
- always-multiline
quotes:
- 1
- single
linebreak-style:
- 2
- unix
no-extra-semi:
- 2
curly:
- 2
#
# Spacing rules
#
indent:
- 1
- 2
-
SwitchCase: 1
VariableDeclarator:
var: 2
let: 2
const: 3
no-irregular-whitespace:
- 2
no-multi-spaces:
- 1
key-spacing:
- 1
-
beforeColon: false
afterColon: true
space-infix-ops:
- 1
object-curly-spacing:
- 1
- always
-
objectsInObjects: true
arraysInObjects: true
space-in-parens:
- 1
- never
eol-last:
- 1
env:
es6: false
node: false
browser: true
globals:
Optiscroll: true
G: true
GS: true
toggleClass: true
_extend: true
_invoke: true
_throttle: true
Scrollbar: true
Utils: true
Events: true
jQuery: true
Zepto: true