@newlogic-digital/core 4.0.0-rc.1 → 4.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,377 @@
1
+ {
2
+ "rules": {
3
+ "@stylistic/array-bracket-spacing": [
4
+ "error",
5
+ "never"
6
+ ],
7
+ "@stylistic/arrow-parens": [
8
+ "error",
9
+ "as-needed",
10
+ {
11
+ "requireForBlockBody": true
12
+ }
13
+ ],
14
+ "@stylistic/arrow-spacing": [
15
+ "error",
16
+ {
17
+ "after": true,
18
+ "before": true
19
+ }
20
+ ],
21
+ "@stylistic/block-spacing": [
22
+ "error",
23
+ "always"
24
+ ],
25
+ "@stylistic/brace-style": [
26
+ "error",
27
+ "stroustrup",
28
+ {
29
+ "allowSingleLine": true
30
+ }
31
+ ],
32
+ "@stylistic/comma-dangle": [
33
+ "error",
34
+ "always-multiline"
35
+ ],
36
+ "@stylistic/comma-spacing": [
37
+ "error",
38
+ {
39
+ "after": true,
40
+ "before": false
41
+ }
42
+ ],
43
+ "@stylistic/comma-style": [
44
+ "error",
45
+ "last"
46
+ ],
47
+ "@stylistic/computed-property-spacing": [
48
+ "error",
49
+ "never",
50
+ {
51
+ "enforceForClassMembers": true
52
+ }
53
+ ],
54
+ "@stylistic/dot-location": [
55
+ "error",
56
+ "property"
57
+ ],
58
+ "@stylistic/eol-last": "error",
59
+ "@stylistic/generator-star-spacing": [
60
+ "error",
61
+ {
62
+ "after": true,
63
+ "before": false
64
+ }
65
+ ],
66
+ "@stylistic/indent": [
67
+ "error",
68
+ 2,
69
+ {
70
+ "ArrayExpression": 1,
71
+ "CallExpression": {
72
+ "arguments": 1
73
+ },
74
+ "flatTernaryExpressions": false,
75
+ "FunctionDeclaration": {
76
+ "body": 1,
77
+ "parameters": 1,
78
+ "returnType": 1
79
+ },
80
+ "FunctionExpression": {
81
+ "body": 1,
82
+ "parameters": 1,
83
+ "returnType": 1
84
+ },
85
+ "ignoreComments": false,
86
+ "ignoredNodes": [
87
+ "TSUnionType",
88
+ "TSIntersectionType"
89
+ ],
90
+ "ImportDeclaration": 1,
91
+ "MemberExpression": 1,
92
+ "ObjectExpression": 1,
93
+ "offsetTernaryExpressions": true,
94
+ "outerIIFEBody": 1,
95
+ "SwitchCase": 1,
96
+ "tabLength": 2,
97
+ "VariableDeclarator": 1
98
+ }
99
+ ],
100
+ "@stylistic/indent-binary-ops": [
101
+ "error",
102
+ 2
103
+ ],
104
+ "@stylistic/key-spacing": [
105
+ "error",
106
+ {
107
+ "afterColon": true,
108
+ "beforeColon": false
109
+ }
110
+ ],
111
+ "@stylistic/keyword-spacing": [
112
+ "error",
113
+ {
114
+ "after": true,
115
+ "before": true
116
+ }
117
+ ],
118
+ "@stylistic/lines-between-class-members": [
119
+ "error",
120
+ "always",
121
+ {
122
+ "exceptAfterSingleLine": true
123
+ }
124
+ ],
125
+ "@stylistic/max-statements-per-line": [
126
+ "error",
127
+ {
128
+ "max": 1
129
+ }
130
+ ],
131
+ "@stylistic/member-delimiter-style": [
132
+ "error",
133
+ {
134
+ "multiline": {
135
+ "delimiter": "none",
136
+ "requireLast": false
137
+ },
138
+ "multilineDetection": "brackets",
139
+ "overrides": {
140
+ "interface": {
141
+ "multiline": {
142
+ "delimiter": "none",
143
+ "requireLast": false
144
+ }
145
+ }
146
+ },
147
+ "singleline": {
148
+ "delimiter": "comma"
149
+ }
150
+ }
151
+ ],
152
+ "@stylistic/multiline-ternary": [
153
+ "error",
154
+ "always-multiline"
155
+ ],
156
+ "@stylistic/new-parens": "error",
157
+ "@stylistic/no-extra-parens": [
158
+ "error",
159
+ "functions"
160
+ ],
161
+ "@stylistic/no-floating-decimal": "error",
162
+ "@stylistic/no-mixed-operators": [
163
+ "error",
164
+ {
165
+ "allowSamePrecedence": true,
166
+ "groups": [
167
+ [
168
+ "==",
169
+ "!=",
170
+ "===",
171
+ "!==",
172
+ ">",
173
+ ">=",
174
+ "<",
175
+ "<="
176
+ ],
177
+ [
178
+ "&&",
179
+ "||"
180
+ ],
181
+ [
182
+ "in",
183
+ "instanceof"
184
+ ]
185
+ ]
186
+ }
187
+ ],
188
+ "@stylistic/no-mixed-spaces-and-tabs": "error",
189
+ "@stylistic/no-multi-spaces": "error",
190
+ "@stylistic/no-multiple-empty-lines": [
191
+ "error",
192
+ {
193
+ "max": 1,
194
+ "maxBOF": 0,
195
+ "maxEOF": 0
196
+ }
197
+ ],
198
+ "@stylistic/no-tabs": "error",
199
+ "@stylistic/no-trailing-spaces": "error",
200
+ "@stylistic/no-whitespace-before-property": "error",
201
+ "@stylistic/object-curly-spacing": [
202
+ "error",
203
+ "always"
204
+ ],
205
+ "@stylistic/operator-linebreak": [
206
+ "error",
207
+ "before"
208
+ ],
209
+ "@stylistic/padded-blocks": [
210
+ "error",
211
+ {
212
+ "blocks": "never",
213
+ "classes": "never",
214
+ "switches": "never"
215
+ }
216
+ ],
217
+ "@stylistic/quote-props": [
218
+ "error",
219
+ "consistent-as-needed"
220
+ ],
221
+ "@stylistic/quotes": [
222
+ "error",
223
+ "single",
224
+ {
225
+ "allowTemplateLiterals": "always",
226
+ "avoidEscape": false
227
+ }
228
+ ],
229
+ "@stylistic/rest-spread-spacing": [
230
+ "error",
231
+ "never"
232
+ ],
233
+ "@stylistic/semi": [
234
+ "error",
235
+ "never"
236
+ ],
237
+ "@stylistic/semi-spacing": [
238
+ "error",
239
+ {
240
+ "after": true,
241
+ "before": false
242
+ }
243
+ ],
244
+ "@stylistic/space-before-blocks": [
245
+ "error",
246
+ "always"
247
+ ],
248
+ "@stylistic/space-before-function-paren": [
249
+ "error",
250
+ {
251
+ "anonymous": "always",
252
+ "asyncArrow": "always",
253
+ "named": "never"
254
+ }
255
+ ],
256
+ "@stylistic/space-in-parens": [
257
+ "error",
258
+ "never"
259
+ ],
260
+ "@stylistic/space-infix-ops": "error",
261
+ "@stylistic/space-unary-ops": [
262
+ "error",
263
+ {
264
+ "nonwords": false,
265
+ "words": true
266
+ }
267
+ ],
268
+ "@stylistic/spaced-comment": [
269
+ "error",
270
+ "always",
271
+ {
272
+ "block": {
273
+ "balanced": true,
274
+ "exceptions": [
275
+ "*"
276
+ ],
277
+ "markers": [
278
+ "!"
279
+ ]
280
+ },
281
+ "line": {
282
+ "exceptions": [
283
+ "/",
284
+ "#"
285
+ ],
286
+ "markers": [
287
+ "/"
288
+ ]
289
+ }
290
+ }
291
+ ],
292
+ "@stylistic/template-curly-spacing": "error",
293
+ "@stylistic/template-tag-spacing": [
294
+ "error",
295
+ "never"
296
+ ],
297
+ "@stylistic/type-annotation-spacing": [
298
+ "error",
299
+ {}
300
+ ],
301
+ "@stylistic/type-generic-spacing": "error",
302
+ "@stylistic/type-named-tuple-spacing": "error",
303
+ "@stylistic/wrap-iife": [
304
+ "error",
305
+ "any",
306
+ {
307
+ "functionPrototypeMethods": true
308
+ }
309
+ ],
310
+ "@stylistic/yield-star-spacing": [
311
+ "error",
312
+ {
313
+ "after": true,
314
+ "before": false
315
+ }
316
+ ],
317
+ "@stylistic/jsx-closing-bracket-location": "error",
318
+ "@stylistic/jsx-closing-tag-location": "error",
319
+ "@stylistic/jsx-curly-brace-presence": [
320
+ "error",
321
+ {
322
+ "propElementValues": "always"
323
+ }
324
+ ],
325
+ "@stylistic/jsx-curly-newline": "error",
326
+ "@stylistic/jsx-curly-spacing": [
327
+ "error",
328
+ "never"
329
+ ],
330
+ "@stylistic/jsx-equals-spacing": "error",
331
+ "@stylistic/jsx-first-prop-new-line": "error",
332
+ "@stylistic/jsx-function-call-newline": [
333
+ "error",
334
+ "multiline"
335
+ ],
336
+ "@stylistic/jsx-indent-props": [
337
+ "error",
338
+ 2
339
+ ],
340
+ "@stylistic/jsx-max-props-per-line": [
341
+ "error",
342
+ {
343
+ "maximum": 1,
344
+ "when": "multiline"
345
+ }
346
+ ],
347
+ "@stylistic/jsx-one-expression-per-line": [
348
+ "error",
349
+ {
350
+ "allow": "single-child"
351
+ }
352
+ ],
353
+ "@stylistic/jsx-quotes": "error",
354
+ "@stylistic/jsx-tag-spacing": [
355
+ "error",
356
+ {
357
+ "afterOpening": "never",
358
+ "beforeClosing": "never",
359
+ "beforeSelfClosing": "always",
360
+ "closingSlash": "never"
361
+ }
362
+ ],
363
+ "@stylistic/jsx-wrap-multilines": [
364
+ "error",
365
+ {
366
+ "arrow": "parens-new-line",
367
+ "assignment": "parens-new-line",
368
+ "condition": "parens-new-line",
369
+ "declaration": "parens-new-line",
370
+ "logical": "parens-new-line",
371
+ "prop": "parens-new-line",
372
+ "propertyValue": "parens-new-line",
373
+ "return": "parens-new-line"
374
+ }
375
+ ]
376
+ }
377
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "4.0.0-rc.1",
4
+ "version": "4.0.0-rc.2",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",
@@ -38,6 +38,7 @@
38
38
  "latte",
39
39
  "types",
40
40
  "index.js",
41
+ "eslint-stylistic.json",
41
42
  "src"
42
43
  ],
43
44
  "exports": {
@@ -0,0 +1,8 @@
1
+ import stylistic from '@stylistic/eslint-plugin'
2
+ import fs from 'node:fs'
3
+
4
+ fs.writeFileSync('../eslint-stylistic.json', JSON.stringify({
5
+ rules: {
6
+ ...stylistic.configs.recommended.rules,
7
+ },
8
+ }, null, 2))