-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.yml
60 lines (53 loc) · 1.04 KB
/
.eslintrc.yml
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
env:
es6: true
node: true
mocha: true
browser: true
# parser: babel-eslint # Es5 解析器
extends:
- airbnb
#- eslint:recommended
parserOptions:
allowImportExportEverywhere: true
ecmaVersion: 8
ecmaFeatures:
jsx: true
globalReturn: true
impliedStrict: true
experimentalObjectRestSpread: true
sourceType: module
#plugins:
# - react
rules:
arrow-parens:
- warn
- as-needed
brace-style: off
comma-dangle:
- error
- only-multiline
consistent-return: off # 总返回value
eol-last: off
import/no-unresolved: off
global-require: off
# 自定义模块警告
linebreak-style: off
no-bitwise: off # 禁用位运算
no-console: off
no-plusplus: off
no-underscore-dangle: off
no-unused-vars: warn
no-trailing-spaces: off # 禁止多余空格
no-unused-expressions: off # a && b
max-len: off # 禁止单行超出100字节
quotes:
- error
- single
spaced-comment: off
semi: off
globals:
module: false
window: false
document: false
avalon: true
localStorage: true