Skip to content
Permalink
Newer
Older
100644 181 lines (174 sloc) 4.15 KB
October 10, 2016 14:59
1
{
2
env: {
3
node: true,
October 10, 2016 14:59
4
browser: true,
5
},
6
7
globals: {
8
jQuery: true,
9
FastScroller: true,
10
N3: true,
11
ldf: true,
12
},
13
14
rules: {
15
// Possible Errors
16
comma-dangle: [2, "always-multiline"],
17
no-cond-assign: 0,
18
no-console: 2,
19
no-constant-condition: 0,
20
no-debugger: 2,
21
no-dupe-args: 2,
22
no-dupe-keys: 2,
23
no-duplicate-case: 2,
24
no-empty: 2,
25
no-empty-character-class: 2,
26
no-ex-assign: 0,
27
no-extra-boolean-cast: 2,
28
no-extra-parens: 0,
29
no-extra-semi: 2,
30
no-func-assign: 2,
31
no-inner-declarations: 0,
32
no-invalid-regexp: 2,
33
no-irregular-whitespace: 2,
34
no-negated-in-lhs: 2,
35
no-obj-calls: 2,
36
no-regex-spaces: 2,
37
no-sparse-arrays: 2,
38
no-unreachable: 2,
39
use-isnan: 2,
40
valid-jsdoc: 0,
41
valid-typeof: 2,
42
no-unexpected-multiline: 2,
43
44
// Best Practices
45
accessor-pairs: 2,
46
block-scoped-var: 2,
47
complexity: 0,
48
consistent-return: 0,
49
curly: [2, "multi-or-nest"],
50
default-case: 0,
51
dot-notation: 2,
52
dot-location: [2, "property"],
53
eqeqeq: 2,
54
guard-for-in: 0,
55
no-alert: 0,
56
no-caller: 2,
57
no-div-regex: 2,
58
no-else-return: 0,
59
no-labels: 2,
60
no-eq-null: 2,
61
no-eval: 2,
62
no-extend-native: 2,
63
no-extra-bind: 2,
64
no-fallthrough: 2,
65
no-floating-decimal: 2,
66
no-implicit-coercion: 0,
67
no-implied-eval: 2,
68
no-invalid-this: 2,
69
no-iterator: 2,
70
no-lone-blocks: 2,
71
no-loop-func: 0,
72
no-multi-spaces: 0,
73
no-multi-str: 2,
74
no-native-reassign: 2,
75
no-new-func: 2,
76
no-new-wrappers: 2,
77
no-new: 2,
78
no-octal-escape: 2,
79
no-octal: 2,
80
no-param-reassign: 0,
81
no-process-env: 2,
82
no-proto: 2,
83
no-redeclare: 2,
84
no-return-assign: 0,
85
no-script-url: 2,
86
no-self-compare: 2,
87
no-sequences: 0, // allow the comma operator
88
no-throw-literal: 2,
89
no-unused-expressions: 0,
90
no-useless-call: 2,
91
no-void: 2,
92
no-warning-comments: 0,
93
no-with: 2,
94
radix: 2,
95
vars-on-top: 0,
96
wrap-iife: [2, "inside"],
97
yoda: 2,
98
99
// Strict Mode
100
strict: [2, "never"],
101
102
// Variables
103
init-declarations: 0,
104
no-catch-shadow: 0,
105
no-delete-var: 2,
106
no-label-var: 2,
107
no-shadow-restricted-names: 2,
108
no-shadow: 0,
109
no-undef-init: 2,
110
no-undef: 2,
111
no-undefined: 0,
112
no-unused-vars: [ 2, { args: "none" }],
113
no-use-before-define: [2, "nofunc"],
114
115
// Node.js
116
callback-return: 0,
117
handle-callback-err: 2,
118
no-mixed-requires: 0,
119
no-new-require: 2,
120
no-path-concat: 2,
121
no-process-exit: 0,
122
no-restricted-modules: 2,
123
no-sync: 0,
124
125
// Stylistic Issues
126
array-bracket-spacing: 2,
127
block-spacing: 2,
128
brace-style: [2, "stroustrup", { allowSingleLine: true }],
129
camelcase: 0,
130
comma-spacing: 2,
131
comma-style: 2,
132
computed-property-spacing: 2,
133
consistent-this: 0,
134
eol-last: 2,
135
func-names: 0,
136
func-style: [2, "declaration"],
137
id-length: 0,
138
id-match: 2,
139
indent: [2, 2, { VariableDeclarator: 2 }],
140
key-spacing: 0,
141
lines-around-comment: 2,
142
linebreak-style: 2,
143
max-nested-callbacks: [2, 3],
October 10, 2016 14:59
144
new-cap: 2,
145
new-parens: 2,
146
newline-after-var: 0,
147
no-array-constructor: 2,
148
no-continue: 2,
149
no-inline-comments: 0,
150
no-lonely-if: 2,
151
no-mixed-spaces-and-tabs: 2,
152
no-multiple-empty-lines: 0,
153
no-nested-ternary: 0,
154
no-new-object: 2,
155
no-spaced-func: 2,
156
no-ternary: 0,
157
no-trailing-spaces: 2,
158
no-underscore-dangle: 0,
159
no-unneeded-ternary: 2,
160
object-curly-spacing: [2, "always"],
161
object-curly-newline: 0,
162
object-property-newline: 0,
163
one-var: 0,
164
operator-assignment: 2,
165
operator-linebreak: [2, "after", { overrides: { ":": "ignore" } }],
166
padded-blocks: [2, "never"],
167
quote-props: [2, "consistent-as-needed"],
168
quotes: [2, "single", "avoid-escape"],
169
semi-spacing: 2,
170
semi: 2,
171
sort-vars: 0,
172
keyword-spacing: 2,
173
space-before-blocks: 2,
174
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}],
175
space-in-parens: 2,
176
space-infix-ops: 2,
177
space-unary-ops: 2,
178
spaced-comment: [2, "always", { block: { markers: ["!"] } }],
179
wrap-regex: 0,
180
},
181
}