1
|
extends: eslint:recommended
|
2
|
env:
|
3
|
node: true
|
4
|
browser: true
|
5
|
rules:
|
6
|
block-scoped-var: 2
|
7
|
callback-return: 2
|
8
|
dot-notation: 2
|
9
|
indent: 2
|
10
|
linebreak-style: [2, unix]
|
11
|
new-cap: 2
|
12
|
no-console: [2, allow: [warn, error]]
|
13
|
no-else-return: 2
|
14
|
no-eq-null: 2
|
15
|
no-fallthrough: 2
|
16
|
no-invalid-this: 2
|
17
|
no-return-assign: 2
|
18
|
no-shadow: 1
|
19
|
no-trailing-spaces: 2
|
20
|
no-use-before-define: [2, nofunc]
|
21
|
quotes: [2, single, avoid-escape]
|
22
|
semi: [2, always]
|
23
|
strict: [2, global]
|
24
|
valid-jsdoc: [2, requireReturn: false]
|
25
|
no-control-regex: 0
|
26
|
no-useless-escape: 2
|