-
-
Notifications
You must be signed in to change notification settings - Fork 222
/
.eslintrc
141 lines (141 loc) · 2.67 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
parser: babel-eslint
parserOptions:
ecmaVersion: 2018
extends:
# - 'plugin:flowtype/recommended'
- 'plugin:react/recommended'
- prettier
plugins:
- babel
- flowtype
- jest
- react
- react-hooks
settings:
flowtype:
onlyFilesWithFlowAnnotation: true
react:
version: '16.7'
flowVersion: '0.91'
env:
node: true
browser: false
worker: true
es6: true
jest: true
jasmine: true
rules:
# flowtype/no-weak-types: 'off'
# flowtype/generic-spacing: 'off'
# flowtype/space-after-type-colon: 'off'
flowtype/require-exact-type:
- error
- never
react-hooks/rules-of-hooks: error
react/react-in-jsx-scope: 'off'
react/no-children-prop: 'off'
react/prop-types: 'off'
react/display-name: 'off'
react/jsx-key: 'off'
react/no-unknown-property: 'off'
no-console: 'off'
no-cond-assign: warn
no-unused-vars: warn
prefer-template: 'off'
no-nested-ternary: warn
no-unneeded-ternary: warn
no-underscore-dangle: off
prefer-const: warn
no-unused-labels: 'off'
no-extra-bind: error
no-case-declarations: error
no-useless-call: error
prefer-arrow-callback:
- error
- allowNamedFunctions: true
object-shorthand:
- off
no-extra-parens: 'off'
multiline-ternary: 'off'
arrow-body-style:
- error
- as-needed
no-var: error
no-duplicate-imports: 'off'
quotes:
- error
- single
- allowTemplateLiterals: true
avoidEscape: true
# max-len:
# - warn
# - code: 80
# tabWidth: 2
key-spacing:
- warn
- beforeColon: false
afterColon: true
mode: strict
comma-spacing:
- error
- before: false
after: true
block-spacing:
- error
- never
object-curly-spacing:
- warn
- never
semi-spacing:
- error
- before: false
after: true
indent: off
newline-per-chained-call:
- error
keyword-spacing:
- error
space-unary-ops:
- error
- words: true
nonwords: false
no-whitespace-before-property: error
# generator-star-spacing:
# - error
# - before: false
# after: true
arrow-spacing:
- error
- before: true
after: true
space-before-function-paren:
- off
rest-spread-spacing:
- error
- never
no-alert: error
no-bitwise: 0
no-caller: error
no-global-assign: error
no-eval: error
no-implied-eval: error
no-proto: error
no-iterator: error
no-lone-blocks: 'off'
no-self-compare: error
no-self-assign:
- error
- props: true
no-invalid-regexp:
- error
- allowConstructorFlags:
- u
- 'y'
no-with: error
no-new-func: error
prefer-rest-params: error
prefer-spread: error
no-extra-semi: off
semi:
- error
- never