forked from xuexb/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
83 lines (83 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// http://eslint.org/docs/rules
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"think": false,
"firekylin": false
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"import"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.babel.js"
}
}
},
"rules": {
"strict": 0,
"quotes": [2, "single"],
"max-len": [2, {
"code": 120,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true
}],
"no-underscore-dangle": 0,
"no-unused-vars": 1,
"no-unused-expressions": 0,
"react/jsx-no-undef": 2,
"react/no-find-dom-node": 0,
"new-cap": 0,
"no-shadow": 0,
"no-use-before-define": 0,
"no-case-declarations": 0,
"no-console": 1,
"eol-last": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"no-trailing-spaces": 2,
"nonblock-statement-body-position": 2,
"newline-per-chained-call": [2, { "ignoreChainWithDepth": 3 }],
"space-before-blocks": 2,
"space-in-parens": 2,
"semi-spacing": 2,
"comma-spacing": 2,
"no-tabs": 2,
"eqeqeq": 2,
"no-multi-spaces": 2,
"new-parens": 2,
"no-implicit-globals": 2,
"import/first": 2,
"import/no-duplicates": 2,
"import/extensions": [2, "always", {
"js": "never",
"jsx": "never"
}],
"import/no-unresolved": 2,
"import/order": 2,
"import/no-absolute-path": 2,
"import/newline-after-import": 2,
"import/no-named-default": 2
}
}