Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
ecmaFeatures:
2
  modules: true
3
  jsx: true
4
 
5
env:
6
  amd: true
7
  browser: true
8
  es6: true
9
  jquery: true
10
  node: true
11
 
12
# http://eslint.org/docs/rules/
13
rules:
14
  # Possible Errors
15
  no-cond-assign: 2
16
  no-console: [2, {allow: [warn, error]}]
17
  no-constant-condition: 2
18
  no-control-regex: 2
19
  no-debugger: 2
20
  no-dupe-args: 2
21
  no-dupe-keys: 2
22
  no-duplicate-case: 2
23
  no-empty: 2
24
  no-empty-character-class: 2
25
  no-ex-assign: 2
26
  no-extra-boolean-cast: 2
27
  no-extra-parens: [2, functions]
28
  no-extra-semi: 2
29
  no-func-assign: 2
30
  no-inner-declarations: [2, functions]
31
  no-invalid-regexp: 2
32
  no-irregular-whitespace: 2
33
  no-negated-in-lhs: 2
34
  no-obj-calls: 2
35
  no-regex-spaces: 2
36
  no-sparse-arrays: 2
37
  no-unexpected-multiline: 2
38
  no-unreachable: 2
39
  use-isnan: 2
40
  valid-jsdoc: 0
41
  valid-typeof: 2
42
 
43
  # Best Practices
44
  accessor-pairs: 2
45
  array-callback-return: 0
46
  block-scoped-var: 0
47
  complexity: [2, 10]
48
  consistent-return: 0
49
  curly: [2, all]
50
  default-case: 2
51
  dot-location: 0
52
  dot-notation: 2
53
  eqeqeq: 2
54
  guard-for-in: 2
55
  no-alert: 2
56
  no-caller: 2
57
  no-case-declarations: 2
58
  no-div-regex: 2
59
  no-else-return: 2
60
  no-empty-pattern: 2
61
  no-eq-null: 2
62
  no-eval: 2
63
  no-extend-native: 2
64
  no-extra-bind: 2
65
  no-fallthrough: 2
66
  no-floating-decimal: 2
67
  no-implicit-coercion: 0
68
  no-implied-eval: 2
69
  no-invalid-this: 0
70
  no-iterator: 2
71
  no-labels: 2
72
  no-lone-blocks: 2
73
  no-loop-func: 2
74
  no-magic-number: 0
75
  no-multi-spaces: 2
76
  no-multi-str: 2
77
  no-native-reassign: 2
78
  no-new-func: 2
79
  no-new-wrappers: 2
80
  no-new: 2
81
  no-octal-escape: 2
82
  no-octal: 2
83
  no-proto: 2
84
  no-redeclare: 2
85
  no-return-assign: 2
86
  no-script-url: 2
87
  no-self-compare: 2
88
  no-sequences: 2
89
  no-throw-literal: 0
90
  no-unused-expressions: 2
91
  no-useless-call: 2
92
  no-useless-concat: 2
93
  no-void: 2
94
  no-warning-comments: 0
95
  no-with: 2
96
  radix: 2
97
  vars-on-top: 0
98
  wrap-iife: 2
99
  yoda: [1, never]
100
 
101
  # Strict
102
  strict: 0
103
 
104
  # Variables
105
  init-declarations: 0
106
  no-catch-shadow: 2
107
  no-delete-var: 2
108
  no-label-var: 2
109
  no-shadow-restricted-names: 2
110
  no-shadow: 2
111
  no-undef-init: 2
112
  no-undef: 2
113
  no-undefined: 0
114
  no-unused-vars: 2
115
  no-use-before-define: 2
116
 
117
  # Node.js and CommonJS
118
  callback-return: 2
119
  global-require: 2
120
  handle-callback-err: 2
121
  no-mixed-requires: 0
122
  no-new-require: 0
123
  no-path-concat: 2
124
  no-process-exit: 2
125
  no-restricted-modules: 0
126
  no-sync: 0
127
 
128
  # Stylistic Issues
129
  array-bracket-spacing: [2, never]
130
  block-spacing: 0
131
  brace-style: [2, 1tbs]
132
  camelcase: 2
133
  comma-dangle: [2, only-multiline]
134
  comma-spacing: 2
135
  comma-style: [2, last]
136
  computed-property-spacing: [2, never]
137
  consistent-this: [2, me]
138
  eol-last: 2
139
  func-call-spacing: 0
140
  func-names: [2, never]
141
  func-style: 0
142
  id-length: 0
143
  id-match: 0
144
  indent: [2, tab]
145
  jsx-quotes: 0
146
  key-spacing: 2
147
  keyword-spacing: 2
148
  linebreak-style: 0
149
  lines-around-comment: 0
150
  max-depth: 0
151
  max-len: 0
152
  max-lines: 0
153
  max-nested-callbacks: 0
154
  max-params: 0
155
  max-statements-per-line: 0
156
  max-statements: [2, 30]
157
  multiline-ternary: 0
158
  new-cap: 0
159
  new-parens: 2
160
  newline-after-var: 0
161
  newline-before-return: 0
162
  newline-per-chained-call: 0
163
  no-array-constructor: 0
164
  no-bitwise: 0
165
  no-continue: 0
166
  no-inline-comments: 0
167
  no-lonely-if: 2
168
  no-mixed-operators: 0
169
  no-mixed-spaces-and-tabs: 2
170
  no-multiple-empty-lines: [2, {max: 2}]
171
  no-negated-condition: 0
172
  no-nested-ternary: 0
173
  no-new-object: 0
174
  no-plusplus: 0
175
  no-restricted-syntax: 0
176
  no-spaced-func: 0
177
  no-ternary: 0
178
  no-trailing-spaces: 2
179
  no-underscore-dangle: 0
180
  no-unneeded-ternary: 0
181
  no-whitespace-before-property: 2
182
  object-curly-newline: 0
183
  object-curly-spacing: [2, never]
184
  object-property-newline: 0
185
  one-var-declaration-per-line: 2
186
  one-var: [2, {initialized: never}]
187
  operator-assignment: 0
188
  operator-linebreak: 0
189
  padded-blocks: 0
190
  quote-props: [2, as-needed]
191
  quotes: [2, single, {avoidEscape: true}]
192
  require-jsdoc: 0
193
  semi-spacing: 2
194
  semi: [2, always]
195
  sort-keys: 0
196
  sort-vars: 0
197
  space-before-blocks: [2, always]
198
  space-before-function-paren: [2, never]
199
  space-in-parens: [2, never]
200
  space-infix-ops: 2
201
  space-unary-ops: [2, {words: true, nonwords: false}]
202
  spaced-comment: [2, always]
203
  unicode-bom: 0
204
  wrap-regex: 2
205
 
206
  # ECMAScript 6
207
  arrow-body-style: 0
208
  arrow-parens: 0
209
  arrow-spacing: 0
210
  constructor-super: 0
211
  generator-star-spacing: 0
212
  no-arrow-condition: 0
213
  no-class-assign: 0
214
  no-const-assign: 0
215
  no-dupe-class-members: 0
216
  no-this-before-super: 0
217
  no-var: 0
218
  object-shorthand: 0
219
  prefer-arrow-callback: 0
220
  prefer-const: 0
221
  prefer-reflect: 0
222
  prefer-spread: 0
223
  prefer-template: 0
224
  require-yield: 0