@effect-app/eslint-shared-config 0.0.4 → 0.0.6

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/node_modules/@ben_12/eslint-plugin-dprint/LICENSE +21 -0
  3. package/node_modules/@ben_12/eslint-plugin-dprint/README.md +215 -0
  4. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/disable-conflict-rules.d.ts +110 -0
  5. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/disable-conflict-rules.js +114 -0
  6. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/disable-conflict-rules.js.map +1 -0
  7. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/recommended.d.ts +159 -0
  8. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/recommended.js +60 -0
  9. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/configs/recommended.js.map +1 -0
  10. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/dockerfile-config-schema.json +52 -0
  11. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/dprint.d.ts +8 -0
  12. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/dprint.js +188 -0
  13. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/dprint.js.map +1 -0
  14. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/graphql-config-schema.json +255 -0
  15. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/json-config-schema.json +187 -0
  16. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/malva-config-schema.json +363 -0
  17. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/markdown-config-schema.json +187 -0
  18. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/markup-config-schema.json +534 -0
  19. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/toml-config-schema.json +125 -0
  20. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/typescript-config-schema.json +1898 -0
  21. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/dprint/yaml-config-schema.json +126 -0
  22. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/index.d.ts +1 -0
  23. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/index.js +21 -0
  24. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/index.js.map +1 -0
  25. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/rules/dprint.d.ts +4 -0
  26. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/rules/dprint.js +261 -0
  27. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/rules/dprint.js.map +1 -0
  28. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/difference-iterator.d.ts +49 -0
  29. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/difference-iterator.js +129 -0
  30. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/difference-iterator.js.map +1 -0
  31. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/predicate.d.ts +10 -0
  32. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/predicate.js +20 -0
  33. package/node_modules/@ben_12/eslint-plugin-dprint/dist/lib/util/predicate.js.map +1 -0
  34. package/node_modules/@ben_12/eslint-plugin-dprint/package.json +122 -0
  35. package/package.json +8 -2
  36. package/patches/@ben_12+eslint-plugin-dprint+1.7.5.patch +39 -0
@@ -0,0 +1,187 @@
1
+ {
2
+ "type": "object",
3
+ "definitions": {
4
+ "preferSingleLine": {
5
+ "description": "If arrays and objects should collapse to a single line if it would be below the line width.",
6
+ "type": "boolean",
7
+ "oneOf": [
8
+ {
9
+ "description": "",
10
+ "type": "boolean",
11
+ "enum": [
12
+ true
13
+ ]
14
+ },
15
+ {
16
+ "description": "",
17
+ "type": "boolean",
18
+ "enum": [
19
+ false
20
+ ]
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ "properties": {
26
+ "locked": {
27
+ "description": "Whether the configuration is not allowed to be overriden or extended.",
28
+ "type": "boolean"
29
+ },
30
+ "lineWidth": {
31
+ "description": "The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.",
32
+ "type": "number"
33
+ },
34
+ "indentWidth": {
35
+ "description": "The number of characters for an indent.",
36
+ "type": "number"
37
+ },
38
+ "useTabs": {
39
+ "description": "Whether to use tabs (true) or spaces (false).",
40
+ "type": "boolean",
41
+ "oneOf": [
42
+ {
43
+ "description": "",
44
+ "type": "boolean",
45
+ "enum": [
46
+ true
47
+ ]
48
+ },
49
+ {
50
+ "description": "",
51
+ "type": "boolean",
52
+ "enum": [
53
+ false
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "newLineKind": {
59
+ "description": "The kind of newline to use.",
60
+ "type": "string",
61
+ "oneOf": [
62
+ {
63
+ "description": "For each file, uses the newline kind found at the end of the last line.",
64
+ "type": "string",
65
+ "enum": [
66
+ "auto"
67
+ ]
68
+ },
69
+ {
70
+ "description": "Uses carriage return, line feed.",
71
+ "type": "string",
72
+ "enum": [
73
+ "crlf"
74
+ ]
75
+ },
76
+ {
77
+ "description": "Uses line feed.",
78
+ "type": "string",
79
+ "enum": [
80
+ "lf"
81
+ ]
82
+ },
83
+ {
84
+ "description": "Uses the system standard (ex. crlf on Windows).",
85
+ "type": "string",
86
+ "enum": [
87
+ "system"
88
+ ]
89
+ }
90
+ ]
91
+ },
92
+ "commentLine.forceSpaceAfterSlashes": {
93
+ "description": "Forces a space after slashes. For example: `// comment` instead of `//comment`",
94
+ "type": "boolean",
95
+ "oneOf": [
96
+ {
97
+ "description": "",
98
+ "type": "boolean",
99
+ "enum": [
100
+ true
101
+ ]
102
+ },
103
+ {
104
+ "description": "",
105
+ "type": "boolean",
106
+ "enum": [
107
+ false
108
+ ]
109
+ }
110
+ ]
111
+ },
112
+ "preferSingleLine": {
113
+ "$ref": "#/definitions/preferSingleLine"
114
+ },
115
+ "array.preferSingleLine": {
116
+ "$ref": "#/definitions/preferSingleLine"
117
+ },
118
+ "object.preferSingleLine": {
119
+ "$ref": "#/definitions/preferSingleLine"
120
+ },
121
+ "trailingCommas": {
122
+ "description": "Whether to use trailing commas.",
123
+ "type": "string",
124
+ "oneOf": [
125
+ {
126
+ "description": "Always format with trailing commas. Beware: trailing commas can cause many JSON parsers to fail.",
127
+ "type": "string",
128
+ "enum": [
129
+ "always"
130
+ ]
131
+ },
132
+ {
133
+ "description": "Use trailing commas in JSONC files and do not use trailing commas in JSON files.",
134
+ "type": "string",
135
+ "enum": [
136
+ "jsonc"
137
+ ]
138
+ },
139
+ {
140
+ "description": "Keep the trailing comma if it exists.",
141
+ "type": "string",
142
+ "enum": [
143
+ "maintain"
144
+ ]
145
+ },
146
+ {
147
+ "description": "Never format with trailing commas.",
148
+ "type": "string",
149
+ "enum": [
150
+ "never"
151
+ ]
152
+ }
153
+ ]
154
+ },
155
+ "jsonTrailingCommaFiles": {
156
+ "description": "When `trailingCommas` is `jsonc`, treat these files as JSONC and use trailing commas (ex. `[\"tsconfig.json\", \".vscode/settings.json\"]`).",
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string"
160
+ }
161
+ },
162
+ "deno": {
163
+ "description": "Top level configuration that sets the configuration to what is used in Deno.",
164
+ "type": "boolean",
165
+ "oneOf": [
166
+ {
167
+ "description": "",
168
+ "type": "boolean",
169
+ "enum": [
170
+ true
171
+ ]
172
+ },
173
+ {
174
+ "description": "",
175
+ "type": "boolean",
176
+ "enum": [
177
+ false
178
+ ]
179
+ }
180
+ ]
181
+ },
182
+ "ignoreNodeCommentText": {
183
+ "description": "The text to use for an ignore comment (ex. `// dprint-ignore`).",
184
+ "type": "string"
185
+ }
186
+ }
187
+ }
@@ -0,0 +1,363 @@
1
+ {
2
+ "title": "Config",
3
+ "description": "Configuration for dprint-plugin-malva.",
4
+ "type": "object",
5
+ "definitions": {
6
+ "quotes": {
7
+ "description": "Control the quotes of strings.",
8
+ "type": "string",
9
+ "oneOf": [
10
+ {
11
+ "description": "Always use double quotes. Double quotes in strings will be escaped.",
12
+ "type": "string",
13
+ "enum": [
14
+ "alwaysDouble"
15
+ ]
16
+ },
17
+ {
18
+ "description": "Always use single quotes. Single quotes in strings will be escaped.",
19
+ "type": "string",
20
+ "enum": [
21
+ "alwaysSingle"
22
+ ]
23
+ },
24
+ {
25
+ "description": "Use double quotes as possible. However if there're double quotes in strings, quotes will be kept as-is.",
26
+ "type": "string",
27
+ "enum": [
28
+ "preferDouble"
29
+ ]
30
+ },
31
+ {
32
+ "description": "Use single quotes as possible. However if there're single quotes in strings, quotes will be kept as-is.",
33
+ "type": "string",
34
+ "enum": [
35
+ "preferSingle"
36
+ ]
37
+ }
38
+ ]
39
+ },
40
+ "preferSingleLine": {
41
+ "description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
42
+ "type": "boolean"
43
+ }
44
+ },
45
+ "properties": {
46
+ "printWidth": {
47
+ "description": "The line width limitation that Malva should *(but not must)* avoid exceeding. Malva will try its best to keep line width less than this value, but it may exceed for some cases, for example, a very very long single word.",
48
+ "type": "integer",
49
+ "minimum": 0
50
+ },
51
+ "useTabs": {
52
+ "description": "Specify use space or tab for indentation.",
53
+ "type": "boolean"
54
+ },
55
+ "indentWidth": {
56
+ "description": "Size of indentation. When enabled `useTabs`, this option may be disregarded, since only one tab will be inserted when indented once.",
57
+ "type": "integer",
58
+ "minimum": 0
59
+ },
60
+ "lineBreak": {
61
+ "description": "Specify use `\\n` (LF) or `\\r\\n` (CRLF) for line break.",
62
+ "type": "string",
63
+ "enum": [
64
+ "lf",
65
+ "crlf"
66
+ ]
67
+ },
68
+ "hexCase": {
69
+ "description": "Control the case of hex color values.",
70
+ "type": "string",
71
+ "oneOf": [
72
+ {
73
+ "description": "Hex color values will be kept as-is.",
74
+ "type": "string",
75
+ "enum": [
76
+ "ignore"
77
+ ]
78
+ },
79
+ {
80
+ "description": "Hex color values will be converted to lower case.",
81
+ "type": "string",
82
+ "enum": [
83
+ "lower"
84
+ ]
85
+ },
86
+ {
87
+ "description": "Hex color values will be converted to upper case.",
88
+ "type": "string",
89
+ "enum": [
90
+ "upper"
91
+ ]
92
+ }
93
+ ]
94
+ },
95
+ "hexColorLength": {
96
+ "description": "Control the hex color values in short-hand form or long-hand form.",
97
+ "type": [
98
+ "string",
99
+ "null"
100
+ ],
101
+ "oneOf": [
102
+ {
103
+ "description": "Hex color values will be converted to short-hand form.",
104
+ "type": "string",
105
+ "enum": [
106
+ "short"
107
+ ]
108
+ },
109
+ {
110
+ "description": "Hex color values will be converted to long-hand form.",
111
+ "type": "string",
112
+ "enum": [
113
+ "long"
114
+ ]
115
+ },
116
+ {
117
+ "description": "Hex color values will be kept as-is.",
118
+ "type": "object",
119
+ "enum": [
120
+ null
121
+ ]
122
+ }
123
+ ]
124
+ },
125
+ "quotes": {
126
+ "$ref": "#/definitions/quotes"
127
+ },
128
+ "attrSelector.quotes": {
129
+ "$ref": "#/definitions/quotes"
130
+ },
131
+ "operatorLinebreak": {
132
+ "description": "Control whether line break should come before or after operators.",
133
+ "type": "string",
134
+ "oneOf": [
135
+ {
136
+ "description": "Line break will come before operators.",
137
+ "type": "string",
138
+ "enum": [
139
+ "before"
140
+ ]
141
+ },
142
+ {
143
+ "description": "Line break will come after operators.",
144
+ "type": "string",
145
+ "enum": [
146
+ "after"
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ "blockSelectorLinebreak": {
152
+ "description": "Control line break behavior after selector commas.",
153
+ "type": "string",
154
+ "oneOf": [
155
+ {
156
+ "description": "Always insert line break after comma.",
157
+ "type": "string",
158
+ "enum": [
159
+ "always"
160
+ ]
161
+ },
162
+ {
163
+ "description": "If the whole selector can be put on a single line, there won't be line breaks; otherwise, there will be line breaks after each comma.",
164
+ "type": "string",
165
+ "enum": [
166
+ "consistent"
167
+ ]
168
+ },
169
+ {
170
+ "description": "Selector will be put on one line as possible. Once it exceeds `printWidth`, line break will be inserted where the code exceeds `printWidth`.",
171
+ "type": "string",
172
+ "enum": [
173
+ "wrap"
174
+ ]
175
+ }
176
+ ]
177
+ },
178
+ "omitNumberLeadingZero": {
179
+ "description": "Control whether omit leading zero before dot of numbers or not.",
180
+ "type": "boolean"
181
+ },
182
+ "trailingComma": {
183
+ "description": "Control whether trailing comma should be inserted or not.",
184
+ "type": "boolean"
185
+ },
186
+ "formatComments": {
187
+ "description": "Control whether whitespace should be inserted at the beginning and end of comments.",
188
+ "type": "boolean"
189
+ },
190
+ "alignComments": {
191
+ "description": "Control whether to tweak multi-line comments indentation.",
192
+ "type": "boolean"
193
+ },
194
+ "linebreakInPseudoParens": {
195
+ "description": "Control whether line break should be inserted in pseudo class/element parens or not if current line is too long.",
196
+ "type": "boolean"
197
+ },
198
+ "declarationOrder": {
199
+ "description": "Control the strategy of sorting CSS declarations (a.k.a. properties). If it's `null`, it won't sort CSS declarations.",
200
+ "type": [
201
+ "string",
202
+ "null"
203
+ ],
204
+ "oneOf": [
205
+ {
206
+ "description": "Order in a simple alphabetical manner from a - z. This strategy will also sort unknown properties.",
207
+ "type": "string",
208
+ "enum": [
209
+ "alphabetical"
210
+ ]
211
+ },
212
+ {
213
+ "description": "Order from most important, flow affecting properties, to least important properties. Unknown properties won't be sorted.",
214
+ "type": "string",
215
+ "enum": [
216
+ "smacss"
217
+ ]
218
+ },
219
+ {
220
+ "description": "Order properties applying outside the box model, moving inward to intrinsic changes. Unknown properties won't be sorted.",
221
+ "type": "string",
222
+ "enum": [
223
+ "concentric"
224
+ ]
225
+ },
226
+ {
227
+ "description": "Don't sort CSS declarations.",
228
+ "type": "object",
229
+ "enum": [
230
+ null
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ "declarationOrderGroupBy": {
236
+ "description": "Control how declarations are considered as a group when sorting.",
237
+ "type": "string",
238
+ "oneOf": [
239
+ {
240
+ "description": "Non-declaration statements are considered as the boundaries of declaration group.",
241
+ "type": "string",
242
+ "enum": [
243
+ "nonDeclaration"
244
+ ]
245
+ },
246
+ {
247
+ "description": "Non-declaration statements and empty lines (without comments) are considered as the boundaries of declaration group.",
248
+ "type": "string",
249
+ "enum": [
250
+ "nonDeclarationAndEmptyLine"
251
+ ]
252
+ }
253
+ ]
254
+ },
255
+ "singleLineBlockThreshold": {
256
+ "description": "Control the threshold value for putting block on a single line. If the number of statements in a block is less than or equal to this value, the block will be put on a single line as possible, but when the code can't fit on single line, it will still break into multiple lines.",
257
+ "type": [
258
+ "integer",
259
+ "null"
260
+ ],
261
+ "minimum": 0
262
+ },
263
+ "keyframeSelectorNotation": {
264
+ "description": "Control whether to use percentage or keyword (`from` and `to`) notation as keyframe selectors.",
265
+ "type": [
266
+ "string",
267
+ "null"
268
+ ],
269
+ "oneOf": [
270
+ {
271
+ "description": "Use keyword notation. This only affects `0%` and `100%`. For other percentage values, they will be kept as-is.",
272
+ "type": "string",
273
+ "enum": [
274
+ "keyword"
275
+ ]
276
+ },
277
+ {
278
+ "description": "Use percentage notation.",
279
+ "type": "string",
280
+ "enum": [
281
+ "percentage"
282
+ ]
283
+ },
284
+ {
285
+ "description": "Keyframe selector notation will be kept as-is.",
286
+ "type": "object",
287
+ "enum": [
288
+ null
289
+ ]
290
+ }
291
+ ]
292
+ },
293
+ "attrValueQuotes": {
294
+ "description": "Control whether should add quotes to attribute value in selector or not if it's not quoted.",
295
+ "type": "string",
296
+ "oneOf": [
297
+ {
298
+ "description": "Always add quotes.",
299
+ "type": "string",
300
+ "enum": [
301
+ "always"
302
+ ]
303
+ },
304
+ {
305
+ "description": "Don't add quotes to those that're not quoted. For quoted value, quotes won't be removed.",
306
+ "type": "string",
307
+ "enum": [
308
+ "ignore"
309
+ ]
310
+ }
311
+ ]
312
+ },
313
+ "preferSingleLine": {
314
+ "$ref": "#/definitions/preferSingleLine"
315
+ },
316
+ "selectors.preferSingleLine": {
317
+ "$ref": "#/definitions/preferSingleLine"
318
+ },
319
+ "functionArgs.preferSingleLine": {
320
+ "$ref": "#/definitions/preferSingleLine"
321
+ },
322
+ "sassContentAtRule.preferSingleLine": {
323
+ "$ref": "#/definitions/preferSingleLine"
324
+ },
325
+ "sassIncludeAtRule.preferSingleLine": {
326
+ "$ref": "#/definitions/preferSingleLine"
327
+ },
328
+ "sassMap.preferSingleLine": {
329
+ "$ref": "#/definitions/preferSingleLine"
330
+ },
331
+ "sassModuleConfig.preferSingleLine": {
332
+ "$ref": "#/definitions/preferSingleLine"
333
+ },
334
+ "sassParams.preferSingleLine": {
335
+ "$ref": "#/definitions/preferSingleLine"
336
+ },
337
+ "lessImportOptions.preferSingleLine": {
338
+ "$ref": "#/definitions/preferSingleLine"
339
+ },
340
+ "lessMixinArgs.preferSingleLine": {
341
+ "$ref": "#/definitions/preferSingleLine"
342
+ },
343
+ "lessMixinParams.preferSingleLine": {
344
+ "$ref": "#/definitions/preferSingleLine"
345
+ },
346
+ "singleLineTopLevelDeclarations": {
347
+ "description": "Control whether to force to format all top-level declarations on a single line.",
348
+ "type": "boolean"
349
+ },
350
+ "selectorOverrideCommentDirective": {
351
+ "description": "Text directive for overriding selector formatting.",
352
+ "type": "string"
353
+ },
354
+ "ignoreCommentDirective": {
355
+ "description": "Text directive for ignoring formatting specific statement.",
356
+ "type": "string"
357
+ },
358
+ "ignoreFileCommentDirective": {
359
+ "description": "Text directive for ignoring formatting a whole file.",
360
+ "type": "string"
361
+ }
362
+ }
363
+ }