-
Notifications
You must be signed in to change notification settings - Fork 41
/
.eslintrc.json
123 lines (116 loc) · 2.87 KB
/
.eslintrc.json
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"parser": "babel-eslint",
"plugins": ["prettier"],
"extends": ["airbnb", "plugin:flowtype/recommended", "plugin:prettier/recommended"],
"env": {
"browser": true
},
"rules": {
"prettier/prettier": [2],
"flowtype/space-before-type-colon": [2, "never"],
"flowtype/space-after-type-colon": [2, "always"],
"func-names": [0],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"semi": [2, "always"],
"no-extra-semi": [2],
"space-before-function-paren": [0],
"arrow-body-style": [2, "as-needed"],
"no-else-return": [0],
"no-nested-ternary": [0],
"space-infix-ops": [0],
"max-len": [
2,
{
"code": 80,
"tabWidth": 2,
"ignoreComments": true
}
],
"global-require": [1],
"curly": [1, "multi"],
"one-var": [0],
"valid-jsdoc": [0],
"arrow-parens": [0],
"default-case": [1],
"comma-dangle": [
2,
{
"arrays": "always",
"objects": "always",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"array-bracket-spacing": [2, "always"],
"import/no-extraneous-dependencies": [0],
"import/no-duplicates": [2],
"no-bitwise": [0],
"no-confusing-arrow": [0],
"no-console": [0],
"no-duplicate-imports": [0],
"no-mixed-operators": [0],
"no-param-reassign": [2, { "props": false }],
"no-unused-vars": [1],
"no-unused-expressions": [0],
"no-unsafe-negation": [0],
"no-undef": [1],
"no-void": [0],
"no-shadow": [0],
"no-use-before-define": [1],
"react/default-props-match-prop-types": [
2,
{
"allowRequiredDefaults": true
}
],
"react/require-default-props": [0],
"react/prop-types": [1],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-filename-extension": [0],
"react/jsx-no-bind": [2],
"react/prefer-es6-class": [2],
"react/prefer-stateless-function": [2],
"react/sort-comp": [
2,
{
"order": [
"props",
"defaultProps",
"static-variables",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
],
"react/jsx-props-no-spreading": [0],
"react/static-property-placement": [0],
"jsx-a11y/href-no-hash": [0],
"jsx-a11y/anchor-has-content": [0],
"jsx-a11y/no-redundant-roles": [0],
"jsx-a11y/img-has-alt": [0],
"jsx-a11y/no-static-element-interactions": [1],
"jsx-a11y/label-has-for": [0]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
},
"globals": {
"Generator": true,
"React$Element": true,
"React$Component": true,
"React$Node": true,
"__PREFIX_LINKS__": true
}
}