-
-
Notifications
You must be signed in to change notification settings - Fork 225
/
.eslintrc
122 lines (122 loc) · 2.25 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
parser: babel-eslint
parserOptions:
ecmaVersion: 2018
extends:
- 'plugin:react/recommended'
- prettier
plugins:
- babel
- jest
- react
- react-hooks
settings:
react:
version: '16.13'
env:
node: true
browser: false
worker: true
es6: true
jest: true
jasmine: true
rules:
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: 'off'
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
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
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