This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc
117 lines (111 loc) · 2.32 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
108
109
110
111
112
113
114
115
116
117
---
parser: babel-eslint
plugins:
- babel
- react
- prettier
- flowtype
extends:
- standard
- plugin:react/recommended
- plugin:prettier/recommended
- plugin:flowtype/recommended
env:
es6: true
jest: true
globals:
Event: true
settings:
flowtype:
onlyFilesWithFlowAnnotation: true
react:
version: 16.7.0
flowVersion: 0.91.0
rules:
react/sort-comp:
- error
- order:
- 'static-methods'
- lifecycle
- '/^on.+$/'
- '/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/'
- 'everything-else'
- '/^render.+$/'
- render
react/no-deprecated: error
react/style-prop-object: error
react/self-closing-comp: error
react/require-render-return: error
react/prefer-stateless-function: error
react/no-unused-prop-types: warn
react/no-unused-state: warn
react/no-this-in-sfc: error
react/no-typos: error
react/no-redundant-should-component-update: error
react/no-array-index-key: error
react/no-access-state-in-setstate: error
react/jsx-closing-bracket-location: error
react/jsx-closing-tag-location: error
react/jsx-equals-spacing: error
react/jsx-first-prop-new-line: error
react/jsx-indent:
- error
- 2
react/jsx-indent-props:
- error
- 2
react/jsx-pascal-case: error
react/jsx-sort-props: error
react/jsx-sort-default-props: error
react/jsx-wrap-multilines: error
react/jsx-tag-spacing:
- error
- closingSlash: never
beforeSelfClosing: always
afterOpening: never
beforeClosing: never
react/jsx-boolean-value: error
react/jsx-curly-spacing: error
react/jsx-no-comment-textnodes: warn
react/jsx-curly-brace-presence: error
jsx-quotes:
- error
- prefer-double
sort-keys:
- error
- asc
- caseSensitive: false
natural: true
quote-props:
- error
- as-needed
object-shorthand:
- error
- always
no-var:
- error
no-console:
- warn
- allow:
- warn
- error
no-unused-vars:
- warn
prettier/prettier:
- error
flowtype/delimiter-dangle:
- error
- always-multiline
flowtype/no-weak-types:
- warn
flowtype/semi:
- error
- never
flowtype/type-id-match:
- warn
- ^([A-Z][a-z0-9]*)+Type$
flowtype/sort-keys:
- error
- asc
- caseSensitive: false
natural: true