Repository navigation
Expand file tree
/
Copy path.eslintrc.yaml
More file actions
177 lines (174 loc) · 3.42 KB
/
Copy path.eslintrc.yaml
File metadata and controls
177 lines (174 loc) · 3.42 KB
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
env:
browser: true
es6: true
node: true
extends:
- standard
- plugin:ramda/recommended
- plugin:react/recommended
globals:
__CABLE_URI__: false
__DEV__: false
__IGNOTA_NEWSLETTER_LIST_ID__: false
__SERVER_SIDE__: false
__STRUCTUR_URI__: false
__TRYSTERO_URI__: false
__WHOMST_URI__: false
parser: babel-eslint
parserOptions:
ecmaFeatures:
impliedStrict: true
jsx: true
ecmaVersion: 10
sourceType: module
plugins:
- babel
- import
- node
- promise
- ramda
- react
- react-hooks
- standard
settings:
react:
version: '16.7'
rules:
babel/new-cap:
- warn
- capIsNew: false
newIsCap: true
babel/no-invalid-this: warn
babel/object-curly-spacing:
- warn
- always
babel/quotes:
- warn
- single
- allowTemplateLiterals: true
avoidEscape: true
babel/semi:
- error
- never
babel/no-unused-expressions:
- error
- allowShortCircuit: true
allowTernary: true
react/display-name: off
react/jsx-closing-bracket-location:
- warn
- after-props
react/jsx-curly-spacing:
- warn
- children: true
spacing:
objectLiterals: never
when: always
react/jsx-filename-extension:
- error
- extensions:
- .js
react/jsx-fragments: warn
react/jsx-indent:
- error
- 2
- checkAttributes: true
react/jsx-sort-props:
- warn
- callbacksLast: true
ignoreCase: true
reservedFirst: false
shorthandFirst: true
react/jsx-tag-spacing:
- warn
- closingSlash: never
beforeSelfClosing: always
afterOpening: never
react/no-deprecated: warn
react/no-find-dom-node: off
react/prop-types: off
react/require-render-return: off
react-hooks/rules-of-hooks: error
camelcase:
- warn
- allow:
- ^UNSAFE_
ignoreDestructuring: false
properties: always
comma-dangle:
- warn
- arrays: always-multiline
exports: always-multiline
functions: always-multiline
imports: always-multiline
objects: always-multiline
eol-last: off
generator-star-spacing:
- warn
- after: true
before: false
method: before
indent:
- error
- 2
- ArrayExpression: first
CallExpression:
arguments: first
FunctionDeclaration:
body: 1
parameters: first
FunctionExpression:
parameters: first
body: 1
MemberExpression: 1
ObjectExpression: first
outerIIFEBody: 1
SwitchCase: 1
VariableDeclarator:
const: 3
let: 2
var: 2
jsx-quotes:
- warn
- prefer-single
new-cap: off
no-cond-assign: off
no-fallthrough: off
no-invalid-this: off
no-multiple-empty-lines: off
no-return-assign: off
no-template-curly-in-string: error
no-trailing-spaces: off
no-undef: error
no-unused-expressions: off
no-unused-vars:
- error
- args: all
argsIgnorePattern: ^_
varsIgnorePattern: ^_.+
no-use-before-define:
- error
- classes: false
functions: false
variables: true
no-useless-catch: warn
object-curly-spacing: off
quotes: off
semi: off
sort-imports:
- warn
- ignoreCase: true
sort-keys:
- warn
- asc
- caseSensitive: false
natural: true
space-infix-ops: warn
space-before-function-paren:
- warn
- anonymous: never
asyncArrow: always
named: never
template-curly-spacing:
- warn
- always