forked from headzoo/react-moment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
107 lines (107 loc) · 2.34 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"extends": ["eslint:recommended", "plugin:react/recommended", "airbnb"],
"env": {
"browser": true,
"mocha": true,
"node": true,
"jest": true,
"jasmine": true
},
"parser": "babel-eslint",
"rules": {
"max-len": [
1,
{
"code": 120,
"ignoreComments": true,
"ignoreUrls": true,
"ignorePattern": "^import\\s.+"
}
],
"no-unreachable": 0,
"arrow-body-style": 0,
"object-curly-newline": 0,
"no-trailing-spaces": 0,
"react/no-find-dom-node": 0,
"react/no-multi-comp": 0,
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"react/no-array-index-key": 0,
"jsx-a11y/href-no-hash": 0,
"jsx-quotes": [
2,
"prefer-double"
],
"key-spacing": [
2,
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": false,
"afterColon": true,
"align": "value"
}
}
],
"no-multi-spaces": [
0,
{
"exceptions": {
"VariableDeclarator": true
}
}
],
"react/prefer-stateless-function": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"no-var": 2,
"vars-on-top": 0,
"comma-dangle": 0,
"new-cap": 0,
"no-console": 0,
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"valid-jsdoc": 0,
"import/no-extraneous-dependencies": ["off"],
"jsx-a11y/no-static-element-interactions": 0,
"import/prefer-default-export": "off",
"import/extensions": ["warn", "always", {
"js": "never", "jsx": "never"
}],
"react/no-unused-prop-types": [2, { "skipShapeProps": true }],
"class-methods-use-this": 0,
"jsx-a11y/tabindex-no-positive": 0,
"strict": 0,
"no-param-reassign": 0,
"no-mixed-operators": "off"
},
"plugins": [
"react",
"jsx-a11y"
],
"settings": {
"import/resolver": {
"babel-module": { }
},
"import/extensions": [".js", ".jsx"],
"react": {
"version": "15.3.2"
// React version, default to the latest React stable release
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}