-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (51 loc) · 1.09 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
{
//使用ESLint推荐扩展
"extends":"airbnb",
//指定解析器parser
"parser": "babel-eslint",
//环境
"env": {
"browser": true,
"node":true,
"commonjs":true,
"es6":true
},
//全局变量
"globals": {
"Babel": true,
"React": true
},
//解析参数
"parserOptions":{
"ecmaVersion": 6,//执行ecmascript版本
//"sourceType": "module",//源码所在位置
"ecmaFeatures": {
"jsx": true
//"impliedStrict":true //启用严格模式
}
},
//插件
"plugins":[
"react"
],
"settings": {
},
//规则
"rules": {
"global-require": "off",
"import/no-unresolved": "off",
"no-underscore-dangle": "off",
"no-new-func": "off",
"no-param-reassign": "off",
"react/prefer-stateless-function": "off",
"react/no-multi-comp": "off",
"react/jsx-no-bind": "off",
"react/jsx-indent": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-filename-extension": "off",
"no-restricted-syntax": "off",
"linebreak-style":"off",
"object-curly-newline":"off",
"guard-for-in":"off"
}
}