@brnshkr/config 0.0.1-alpha.8 → 0.0.1-beta.1
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.
- package/README.md +46 -32
- package/conf/tsconfig.json +3 -7
- package/dist/eslint/index.d.mts +1351 -1643
- package/dist/eslint/index.mjs +247 -176
- package/dist/scripts/eslint.mjs +2 -4
- package/dist/scripts/stylelint.mjs +2 -4
- package/dist/shared.mjs +79 -240
- package/dist/stylelint/index.d.mts +3 -3
- package/dist/stylelint/index.mjs +98 -66
- package/package.json +93 -109
package/dist/stylelint/index.mjs
CHANGED
|
@@ -1,17 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { a as resolvePackagesSharedSynchronously, l as objectEntries, n as GLOB_IGNORES, p as packageOrganization, r as isModuleEnabledByDefault, s as STYLELINT_PACKAGES, t as QUOTES } from "../shared.mjs";
|
|
2
|
+
//#region ../src/js/stylelint/utils/module.ts
|
|
3
|
+
const MODULES = {
|
|
4
|
+
baseline: {
|
|
5
|
+
name: "baseline",
|
|
6
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_PLUGIN_USE_BASELINE] }
|
|
7
|
+
},
|
|
8
|
+
defensive: {
|
|
9
|
+
name: "defensive",
|
|
10
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_PLUGIN_DEFENSIVE_CSS] }
|
|
11
|
+
},
|
|
12
|
+
html: {
|
|
13
|
+
name: "html",
|
|
14
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.POSTCSS_HTML, STYLELINT_PACKAGES.STYLELINT_CONFIG_HTML] }
|
|
15
|
+
},
|
|
16
|
+
logical: {
|
|
17
|
+
name: "logical",
|
|
18
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_PLUGIN_LOGICAL_CSS] }
|
|
19
|
+
},
|
|
20
|
+
modules: {
|
|
21
|
+
name: "modules",
|
|
22
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_CONFIG_CSS_MODULES] }
|
|
23
|
+
},
|
|
24
|
+
nesting: {
|
|
25
|
+
name: "nesting",
|
|
26
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_USE_NESTING] }
|
|
27
|
+
},
|
|
28
|
+
order: {
|
|
29
|
+
name: "order",
|
|
30
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_ORDER, STYLELINT_PACKAGES.STYLELINT_CONFIG_RECESS_ORDER] }
|
|
31
|
+
},
|
|
32
|
+
scss: {
|
|
33
|
+
name: "scss",
|
|
34
|
+
packages: {
|
|
35
|
+
requiredAll: [STYLELINT_PACKAGES.STYLELINT_CONFIG_STANDARD_SCSS],
|
|
36
|
+
optional: [STYLELINT_PACKAGES.STYLELINT_PLUGIN_USE_BASELINE]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
strict: {
|
|
40
|
+
name: "strict",
|
|
41
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLELINT_DECLARATION_STRICT_VALUE] }
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
name: "style",
|
|
45
|
+
packages: { requiredAll: [STYLELINT_PACKAGES.STYLISTIC_STYLELINT_CONFIG] }
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const resolvePackages = (moduleInfo, type) => resolvePackagesSharedSynchronously(moduleInfo, type);
|
|
49
|
+
const enabledStates = {};
|
|
50
|
+
const isModuleEnabled = (moduleInfo) => enabledStates[moduleInfo.name] ?? isModuleEnabledByDefault(moduleInfo);
|
|
51
|
+
const setModuleEnabled = (moduleInfo, state) => {
|
|
52
|
+
enabledStates[moduleInfo.name] = state;
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../src/js/stylelint/configs/baseline.ts
|
|
4
56
|
const baseline = () => {
|
|
5
57
|
const { requiredAll: [isStylelintPluginUseBaselineInstalled] } = resolvePackages(MODULES.baseline);
|
|
6
58
|
if (!isStylelintPluginUseBaselineInstalled) return [];
|
|
7
59
|
return [{
|
|
8
|
-
plugins:
|
|
60
|
+
plugins: STYLELINT_PACKAGES.STYLELINT_PLUGIN_USE_BASELINE,
|
|
9
61
|
rules: { "plugin/use-baseline": true }
|
|
10
62
|
}];
|
|
11
63
|
};
|
|
12
|
-
|
|
13
64
|
//#endregion
|
|
14
|
-
//#region src/js/stylelint/configs/css.ts
|
|
65
|
+
//#region ../src/js/stylelint/configs/css.ts
|
|
15
66
|
const css = () => [{
|
|
16
67
|
extends: "stylelint-config-standard",
|
|
17
68
|
reportDescriptionlessDisables: true,
|
|
@@ -67,39 +118,36 @@ const css = () => [{
|
|
|
67
118
|
}]
|
|
68
119
|
}
|
|
69
120
|
}];
|
|
70
|
-
|
|
71
121
|
//#endregion
|
|
72
|
-
//#region src/js/stylelint/configs/defensive.ts
|
|
122
|
+
//#region ../src/js/stylelint/configs/defensive.ts
|
|
73
123
|
const defensive = () => {
|
|
74
124
|
const { requiredAll: [isStylelintPluginDefensiveCssInstalled] } = resolvePackages(MODULES.defensive);
|
|
75
125
|
if (!isStylelintPluginDefensiveCssInstalled) return [];
|
|
76
126
|
return [{
|
|
77
|
-
plugins:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
127
|
+
plugins: STYLELINT_PACKAGES.STYLELINT_PLUGIN_DEFENSIVE_CSS,
|
|
128
|
+
extends: `${STYLELINT_PACKAGES.STYLELINT_PLUGIN_DEFENSIVE_CSS}/configs/strict`,
|
|
129
|
+
rules: { "defensive-css/require-pure-selectors": [true, {
|
|
130
|
+
ignoreElements: [
|
|
131
|
+
"*",
|
|
132
|
+
"html",
|
|
133
|
+
"body"
|
|
134
|
+
],
|
|
135
|
+
ignoreAttributeSelectors: true
|
|
85
136
|
}] }
|
|
86
137
|
}];
|
|
87
138
|
};
|
|
88
|
-
|
|
89
139
|
//#endregion
|
|
90
|
-
//#region src/js/stylelint/types/overrides.ts
|
|
140
|
+
//#region ../src/js/stylelint/types/overrides.ts
|
|
91
141
|
const OVERRIDES = {
|
|
92
142
|
SCSS: "scss",
|
|
93
143
|
SVELTE: "svelte"
|
|
94
144
|
};
|
|
95
|
-
|
|
96
145
|
//#endregion
|
|
97
|
-
//#region src/js/stylelint/utils/config.ts
|
|
146
|
+
//#region ../src/js/stylelint/utils/config.ts
|
|
98
147
|
const buildOverrideName = (override) => [packageOrganization, override].filter(Boolean).join("/");
|
|
99
148
|
const isValidGlobalAdditionalConfigKey = (key) => [
|
|
100
149
|
"extends",
|
|
101
150
|
"plugins",
|
|
102
|
-
"pluginFunctions",
|
|
103
151
|
"ignoreFiles",
|
|
104
152
|
"rules",
|
|
105
153
|
"quiet",
|
|
@@ -132,10 +180,6 @@ const includeConfigs = (config, configsToInclude) => {
|
|
|
132
180
|
for (const configToInclude of configsToInclude) {
|
|
133
181
|
if (configToInclude.extends !== void 0) config.extends = [...new Set([...Array.isArray(config.extends) ? config.extends ?? [] : [config.extends].filter(Boolean), ...Array.isArray(configToInclude.extends) ? configToInclude.extends ?? [] : [configToInclude.extends].filter(Boolean)])];
|
|
134
182
|
if (configToInclude.plugins !== void 0) config.plugins = [...new Set([...Array.isArray(config.plugins) ? config.plugins ?? [] : [config.plugins].filter(Boolean), ...Array.isArray(configToInclude.plugins) ? configToInclude.plugins ?? [] : [configToInclude.plugins].filter(Boolean)])];
|
|
135
|
-
if (configToInclude.pluginFunctions !== void 0) config.pluginFunctions = {
|
|
136
|
-
...config.pluginFunctions,
|
|
137
|
-
...configToInclude.pluginFunctions
|
|
138
|
-
};
|
|
139
183
|
if (configToInclude.ignoreFiles !== void 0) config.ignoreFiles = [...new Set([...Array.isArray(config.ignoreFiles) ? config.ignoreFiles ?? [] : [config.ignoreFiles].filter(Boolean), ...Array.isArray(configToInclude.ignoreFiles) ? configToInclude.ignoreFiles ?? [] : [configToInclude.ignoreFiles].filter(Boolean)])];
|
|
140
184
|
if (configToInclude.rules !== void 0) config.rules = {
|
|
141
185
|
...config.rules,
|
|
@@ -182,14 +226,13 @@ const includeConfigs = (config, configsToInclude) => {
|
|
|
182
226
|
if (configToInclude.validate !== void 0) config.validate = configToInclude.validate;
|
|
183
227
|
}
|
|
184
228
|
};
|
|
185
|
-
|
|
186
229
|
//#endregion
|
|
187
|
-
//#region src/js/stylelint/configs/html.ts
|
|
230
|
+
//#region ../src/js/stylelint/configs/html.ts
|
|
188
231
|
const html = () => {
|
|
189
232
|
const { requiredAll: [isPostcssHtmlInstalled, isStylelintConfigHtmlInstalled] } = resolvePackages(MODULES.html);
|
|
190
233
|
if (!isPostcssHtmlInstalled || !isStylelintConfigHtmlInstalled) return [];
|
|
191
234
|
return [{
|
|
192
|
-
extends:
|
|
235
|
+
extends: STYLELINT_PACKAGES.STYLELINT_CONFIG_HTML,
|
|
193
236
|
overrides: [{
|
|
194
237
|
name: buildOverrideName(OVERRIDES.SVELTE),
|
|
195
238
|
files: ["**/*.svelte"],
|
|
@@ -200,59 +243,50 @@ const html = () => {
|
|
|
200
243
|
}]
|
|
201
244
|
}];
|
|
202
245
|
};
|
|
203
|
-
|
|
204
246
|
//#endregion
|
|
205
|
-
//#region src/js/stylelint/configs/ignores.ts
|
|
247
|
+
//#region ../src/js/stylelint/configs/ignores.ts
|
|
206
248
|
const ignores = () => [{ ignoreFiles: GLOB_IGNORES.map((glob) => glob.replace(/^\*\*/v, process.cwd())) }];
|
|
207
|
-
|
|
208
249
|
//#endregion
|
|
209
|
-
//#region src/js/stylelint/configs/logical.ts
|
|
250
|
+
//#region ../src/js/stylelint/configs/logical.ts
|
|
210
251
|
const logical = () => {
|
|
211
252
|
const { requiredAll: [isStylelintPluginLogicalCssInstalled] } = resolvePackages(MODULES.logical);
|
|
212
253
|
if (!isStylelintPluginLogicalCssInstalled) return [];
|
|
213
254
|
return [{
|
|
214
|
-
plugins:
|
|
215
|
-
|
|
216
|
-
"plugin/use-logical-properties-and-values": true,
|
|
217
|
-
"plugin/use-logical-units": true
|
|
218
|
-
}
|
|
255
|
+
plugins: STYLELINT_PACKAGES.STYLELINT_PLUGIN_LOGICAL_CSS,
|
|
256
|
+
extends: [`${STYLELINT_PACKAGES.STYLELINT_PLUGIN_LOGICAL_CSS}/configs/recommended`]
|
|
219
257
|
}];
|
|
220
258
|
};
|
|
221
|
-
|
|
222
259
|
//#endregion
|
|
223
|
-
//#region src/js/stylelint/configs/modules.ts
|
|
260
|
+
//#region ../src/js/stylelint/configs/modules.ts
|
|
224
261
|
const modules = () => {
|
|
225
262
|
const { requiredAll: [isStylelintConfigCssModulesInstalled] } = resolvePackages(MODULES.modules);
|
|
226
263
|
if (!isStylelintConfigCssModulesInstalled) return [];
|
|
227
|
-
return [{ extends:
|
|
264
|
+
return [{ extends: STYLELINT_PACKAGES.STYLELINT_CONFIG_CSS_MODULES }];
|
|
228
265
|
};
|
|
229
|
-
|
|
230
266
|
//#endregion
|
|
231
|
-
//#region src/js/stylelint/configs/nesting.ts
|
|
267
|
+
//#region ../src/js/stylelint/configs/nesting.ts
|
|
232
268
|
const nesting = () => {
|
|
233
269
|
const { requiredAll: [isStylelintUseNestingInstalled] } = resolvePackages(MODULES.nesting);
|
|
234
270
|
if (!isStylelintUseNestingInstalled) return [];
|
|
235
271
|
return [{
|
|
236
|
-
plugins:
|
|
272
|
+
plugins: STYLELINT_PACKAGES.STYLELINT_USE_NESTING,
|
|
237
273
|
rules: { "csstools/use-nesting": ["always", { syntax: isModuleEnabled(MODULES.scss) ? "scss" : "css" }] }
|
|
238
274
|
}];
|
|
239
275
|
};
|
|
240
|
-
|
|
241
276
|
//#endregion
|
|
242
|
-
//#region src/js/stylelint/configs/order.ts
|
|
277
|
+
//#region ../src/js/stylelint/configs/order.ts
|
|
243
278
|
const order = () => {
|
|
244
279
|
const { requiredAll: [isStylelintConfigRecessOrderInstalled] } = resolvePackages(MODULES.order);
|
|
245
280
|
if (!isStylelintConfigRecessOrderInstalled) return [];
|
|
246
|
-
return [{ extends:
|
|
281
|
+
return [{ extends: STYLELINT_PACKAGES.STYLELINT_CONFIG_RECESS_ORDER }];
|
|
247
282
|
};
|
|
248
|
-
|
|
249
283
|
//#endregion
|
|
250
|
-
//#region src/js/stylelint/configs/scss.ts
|
|
284
|
+
//#region ../src/js/stylelint/configs/scss.ts
|
|
251
285
|
const scss = () => {
|
|
252
|
-
const { requiredAll: [isStylelintConfigStandardScssInstalled] } = resolvePackages(MODULES.scss);
|
|
286
|
+
const { requiredAll: [isStylelintConfigStandardScssInstalled], optional: [isStylelintPluginUseBaselineInstalled] } = resolvePackages(MODULES.scss);
|
|
253
287
|
if (!isStylelintConfigStandardScssInstalled) return [];
|
|
254
288
|
return [{
|
|
255
|
-
extends:
|
|
289
|
+
extends: STYLELINT_PACKAGES.STYLELINT_CONFIG_STANDARD_SCSS,
|
|
256
290
|
rules: {
|
|
257
291
|
"scss/at-each-key-value-single-line": true,
|
|
258
292
|
"scss/at-mixin-argumentless-call-parentheses": "always",
|
|
@@ -291,18 +325,20 @@ const scss = () => {
|
|
|
291
325
|
overrides: [{
|
|
292
326
|
name: buildOverrideName(OVERRIDES.SCSS),
|
|
293
327
|
files: ["**/*.scss"],
|
|
294
|
-
rules: {
|
|
328
|
+
rules: {
|
|
329
|
+
"scss/comment-no-loud": true,
|
|
330
|
+
...isStylelintPluginUseBaselineInstalled ? { "plugin/use-baseline": [true, { ignoreAtRules: ["function"] }] } : void 0
|
|
331
|
+
}
|
|
295
332
|
}]
|
|
296
333
|
}];
|
|
297
334
|
};
|
|
298
|
-
|
|
299
335
|
//#endregion
|
|
300
|
-
//#region src/js/stylelint/configs/strict.ts
|
|
336
|
+
//#region ../src/js/stylelint/configs/strict.ts
|
|
301
337
|
const strict = () => {
|
|
302
338
|
const { requiredAll: [isStylelintDeclarationStrictValueInstalled] } = resolvePackages(MODULES.strict);
|
|
303
339
|
if (!isStylelintDeclarationStrictValueInstalled) return [];
|
|
304
340
|
return [{
|
|
305
|
-
plugins:
|
|
341
|
+
plugins: STYLELINT_PACKAGES.STYLELINT_DECLARATION_STRICT_VALUE,
|
|
306
342
|
rules: { "scale-unlimited/declaration-strict-value": [
|
|
307
343
|
"/color$/",
|
|
308
344
|
"font-size",
|
|
@@ -310,14 +346,13 @@ const strict = () => {
|
|
|
310
346
|
] }
|
|
311
347
|
}];
|
|
312
348
|
};
|
|
313
|
-
|
|
314
349
|
//#endregion
|
|
315
|
-
//#region src/js/stylelint/configs/style.ts
|
|
350
|
+
//#region ../src/js/stylelint/configs/style.ts
|
|
316
351
|
const style = () => {
|
|
317
352
|
const { requiredAll: [isStylisticStylelintConfigInstalled] } = resolvePackages(MODULES.style);
|
|
318
353
|
if (!isStylisticStylelintConfigInstalled) return [];
|
|
319
354
|
return [{
|
|
320
|
-
extends:
|
|
355
|
+
extends: STYLELINT_PACKAGES.STYLISTIC_STYLELINT_CONFIG,
|
|
321
356
|
rules: {
|
|
322
357
|
"@stylistic/at-rule-name-newline-after": "always-multi-line",
|
|
323
358
|
"@stylistic/at-rule-semicolon-space-before": "never",
|
|
@@ -326,23 +361,22 @@ const style = () => {
|
|
|
326
361
|
"@stylistic/declaration-block-semicolon-newline-after": "always",
|
|
327
362
|
"@stylistic/function-comma-newline-before": "never-multi-line",
|
|
328
363
|
"@stylistic/function-comma-space-before": "never-single-line",
|
|
329
|
-
"@stylistic/indentation":
|
|
364
|
+
"@stylistic/indentation": 2,
|
|
330
365
|
"@stylistic/linebreaks": "unix",
|
|
331
|
-
"@stylistic/max-line-length":
|
|
366
|
+
"@stylistic/max-line-length": 120,
|
|
332
367
|
"@stylistic/media-query-list-comma-newline-after": "always",
|
|
333
368
|
"@stylistic/media-query-list-comma-newline-before": "never-multi-line",
|
|
334
369
|
"@stylistic/named-grid-areas-alignment": [true, { alignQuotes: true }],
|
|
335
370
|
"@stylistic/selector-list-comma-newline-before": "never-multi-line",
|
|
336
|
-
"@stylistic/string-quotes":
|
|
371
|
+
"@stylistic/string-quotes": QUOTES,
|
|
337
372
|
"@stylistic/unicode-bom": "never",
|
|
338
373
|
"@stylistic/value-list-comma-newline-before": "never-multi-line",
|
|
339
374
|
"@stylistic/value-list-comma-space-before": "never-single-line"
|
|
340
375
|
}
|
|
341
376
|
}];
|
|
342
377
|
};
|
|
343
|
-
|
|
344
378
|
//#endregion
|
|
345
|
-
//#region src/js/stylelint/configs/index.ts
|
|
379
|
+
//#region ../src/js/stylelint/configs/index.ts
|
|
346
380
|
const configs = {
|
|
347
381
|
baseline,
|
|
348
382
|
css,
|
|
@@ -357,9 +391,8 @@ const configs = {
|
|
|
357
391
|
strict,
|
|
358
392
|
style
|
|
359
393
|
};
|
|
360
|
-
|
|
361
394
|
//#endregion
|
|
362
|
-
//#region src/js/stylelint/index.ts
|
|
395
|
+
//#region ../src/js/stylelint/index.ts
|
|
363
396
|
const getConfig = (optionsAndGlobalConfig, ...additionalConfigs) => {
|
|
364
397
|
const resolvedOptions = {
|
|
365
398
|
baseline: isModuleEnabledByDefault(MODULES.baseline),
|
|
@@ -401,6 +434,5 @@ const getConfig = (optionsAndGlobalConfig, ...additionalConfigs) => {
|
|
|
401
434
|
return config;
|
|
402
435
|
};
|
|
403
436
|
var stylelint_default = getConfig();
|
|
404
|
-
|
|
405
437
|
//#endregion
|
|
406
|
-
export { stylelint_default as default, getConfig };
|
|
438
|
+
export { stylelint_default as default, getConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@brnshkr/config",
|
|
4
|
-
"version": "0.0.1-
|
|
4
|
+
"version": "0.0.1-beta.1",
|
|
5
5
|
"description": "Centralized collection of configuration and tooling used across all @brnshkr projects",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Patrick Rupp",
|
|
@@ -15,20 +15,19 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"scripts": {
|
|
18
|
-
"lint": "bun lint:css && bun lint:js && bun lint:commit",
|
|
19
|
-
"lint:css": "bun ./scripts/stylelint.ts",
|
|
20
|
-
"lint:js": "bun ./scripts/eslint.ts",
|
|
21
|
-
"lint:commit": "bun commitlint --config ./conf/commitlint.config.mjs --edit",
|
|
22
|
-
"inspect:eslint": "bun eslint-config-inspector --config ./conf/eslint.config.ts",
|
|
23
|
-
"inspect:modules": "bun node-modules-inspector",
|
|
24
|
-
"test": "bun vitest --run --testTimeout 120000 --exclude **/fixtures/**",
|
|
25
|
-
"test-update": "bun run test --update",
|
|
26
|
-
"check": "bun tsc && bun lint && bun run test",
|
|
27
|
-
"build": "bun typegen && bun tsdown --config ./conf/tsdown.config.ts",
|
|
28
|
-
"watch": "bun tsdown --config ./conf/tsdown.config.ts --watch",
|
|
29
|
-
"typegen": "bun scripts/typegen.ts",
|
|
30
|
-
"
|
|
31
|
-
"install-hooks": "bun simple-git-hooks"
|
|
18
|
+
"lint": "bun --bun lint:css && bun --bun lint:js && bun --bun lint:commit",
|
|
19
|
+
"lint:css": "bun --bun ./scripts/stylelint.ts",
|
|
20
|
+
"lint:js": "bun --bun ./scripts/eslint.ts",
|
|
21
|
+
"lint:commit": "bun --bun commitlint --config ./conf/commitlint.config.mjs --edit",
|
|
22
|
+
"inspect:eslint": "bun --bun eslint-config-inspector --config ./conf/eslint.config.ts",
|
|
23
|
+
"inspect:modules": "bun --bun node-modules-inspector",
|
|
24
|
+
"test": "bun --bun vitest --run --testTimeout 120000 --exclude **/fixtures/**",
|
|
25
|
+
"test-update": "bun --bun run test --update",
|
|
26
|
+
"check": "bun --bun tsc && bun --bun lint && bun --bun run test",
|
|
27
|
+
"build": "bun --bun typegen && bun --bun tsdown --config ./conf/tsdown.config.ts",
|
|
28
|
+
"watch": "bun --bun tsdown --config ./conf/tsdown.config.ts --watch",
|
|
29
|
+
"typegen": "bun --bun scripts/typegen.ts",
|
|
30
|
+
"install-hooks": "bun --bun simple-git-hooks"
|
|
32
31
|
},
|
|
33
32
|
"exports": {
|
|
34
33
|
"./eslint": "./dist/eslint/index.mjs",
|
|
@@ -44,55 +43,52 @@
|
|
|
44
43
|
"./dist"
|
|
45
44
|
],
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@eslint/js": "^
|
|
46
|
+
"@eslint/js": "^10.0.1",
|
|
48
47
|
"confusing-browser-globals": "^1.0.11",
|
|
49
|
-
"eslint-flat-config-utils": "^3.
|
|
50
|
-
"globals": "^17.
|
|
48
|
+
"eslint-flat-config-utils": "^3.1.0",
|
|
49
|
+
"globals": "^17.5.0",
|
|
51
50
|
"local-pkg": "^1.1.2",
|
|
52
51
|
"stylelint-config-standard": "^40.0.0"
|
|
53
52
|
},
|
|
54
53
|
"peerDependencies": {
|
|
55
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
56
|
-
"@eslint/css": "^
|
|
57
|
-
"@eslint/json": "^1.
|
|
58
|
-
"@eslint/markdown": "^
|
|
59
|
-
"@stylistic/eslint-plugin": "^5.
|
|
60
|
-
"@stylistic/stylelint-config": "^
|
|
61
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"eslint-config-flat-gitignore": "^2.
|
|
54
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
55
|
+
"@eslint/css": "^1.1.0",
|
|
56
|
+
"@eslint/json": "^1.2.0",
|
|
57
|
+
"@eslint/markdown": "^8.0.1",
|
|
58
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
59
|
+
"@stylistic/stylelint-config": "^5.0.0",
|
|
60
|
+
"@vitest/eslint-plugin": "^1.6.15",
|
|
61
|
+
"eslint": "^10.2.0",
|
|
62
|
+
"eslint-config-flat-gitignore": "^2.3.0",
|
|
64
63
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
65
64
|
"eslint-merge-processors": "^2.0.0",
|
|
66
|
-
"eslint-plugin-antfu": "^3.
|
|
67
|
-
"eslint-plugin-import-x": "^4.16.
|
|
68
|
-
"eslint-plugin-jsdoc": "^62.
|
|
69
|
-
"eslint-plugin-jsonc": "^
|
|
70
|
-
"eslint-plugin-n": "^17.
|
|
71
|
-
"eslint-plugin-perfectionist": "^5.
|
|
72
|
-
"eslint-plugin-regexp": "^3.
|
|
73
|
-
"eslint-plugin-svelte": "^3.
|
|
74
|
-
"eslint-plugin-toml": "^1.
|
|
75
|
-
"eslint-plugin-unicorn": "^
|
|
76
|
-
"eslint-plugin-unused-imports": "^4.
|
|
77
|
-
"eslint-plugin-yml": "^3.
|
|
78
|
-
"jsonc-eslint-parser": "^2.4.2",
|
|
65
|
+
"eslint-plugin-antfu": "^3.2.2",
|
|
66
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
67
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
68
|
+
"eslint-plugin-jsonc": "^3.1.2",
|
|
69
|
+
"eslint-plugin-n": "^17.24.0",
|
|
70
|
+
"eslint-plugin-perfectionist": "^5.8.0",
|
|
71
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
72
|
+
"eslint-plugin-svelte": "^3.17.0",
|
|
73
|
+
"eslint-plugin-toml": "^1.3.1",
|
|
74
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
75
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
76
|
+
"eslint-plugin-yml": "^3.3.1",
|
|
79
77
|
"postcss-html": "^1.8.1",
|
|
80
|
-
"stylelint": "^17.
|
|
78
|
+
"stylelint": "^17.7.0",
|
|
81
79
|
"stylelint-config-css-modules": "^4.6.0",
|
|
82
80
|
"stylelint-config-html": "^1.1.0",
|
|
83
|
-
"stylelint-config-recess-order": "^7.
|
|
81
|
+
"stylelint-config-recess-order": "^7.7.0",
|
|
84
82
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
85
|
-
"stylelint-declaration-strict-value": "^1.
|
|
86
|
-
"stylelint-order": "^
|
|
87
|
-
"stylelint-plugin-defensive-css": "^
|
|
88
|
-
"stylelint-plugin-logical-css": "^1.
|
|
89
|
-
"stylelint-plugin-use-baseline": "^1.
|
|
90
|
-
"stylelint-use-nesting": "^6.0.
|
|
91
|
-
"svelte": "^5.
|
|
92
|
-
"
|
|
93
|
-
"typescript": "^
|
|
94
|
-
"typescript-eslint": "^8.54.0",
|
|
95
|
-
"yaml-eslint-parser": "^2.0.0"
|
|
83
|
+
"stylelint-declaration-strict-value": "^1.11.1",
|
|
84
|
+
"stylelint-order": "^8.1.1",
|
|
85
|
+
"stylelint-plugin-defensive-css": "^2.9.0",
|
|
86
|
+
"stylelint-plugin-logical-css": "^2.1.0",
|
|
87
|
+
"stylelint-plugin-use-baseline": "^1.4.1",
|
|
88
|
+
"stylelint-use-nesting": "^6.0.2",
|
|
89
|
+
"svelte": "^5.55.3",
|
|
90
|
+
"typescript": "^6.0.2",
|
|
91
|
+
"typescript-eslint": "^8.58.2"
|
|
96
92
|
},
|
|
97
93
|
"peerDependenciesMeta": {
|
|
98
94
|
"@eslint-community/eslint-plugin-eslint-comments": {
|
|
@@ -161,9 +157,6 @@
|
|
|
161
157
|
"eslint-plugin-yml": {
|
|
162
158
|
"optional": true
|
|
163
159
|
},
|
|
164
|
-
"jsonc-eslint-parser": {
|
|
165
|
-
"optional": true
|
|
166
|
-
},
|
|
167
160
|
"postcss-html": {
|
|
168
161
|
"optional": true
|
|
169
162
|
},
|
|
@@ -203,77 +196,68 @@
|
|
|
203
196
|
"svelte": {
|
|
204
197
|
"optional": true
|
|
205
198
|
},
|
|
206
|
-
"toml-eslint-parser": {
|
|
207
|
-
"optional": true
|
|
208
|
-
},
|
|
209
199
|
"typescript": {
|
|
210
200
|
"optional": true
|
|
211
201
|
},
|
|
212
202
|
"typescript-eslint": {
|
|
213
203
|
"optional": true
|
|
214
|
-
},
|
|
215
|
-
"yaml-eslint-parser": {
|
|
216
|
-
"optional": true
|
|
217
204
|
}
|
|
218
205
|
},
|
|
219
206
|
"devDependencies": {
|
|
220
|
-
"@commitlint/config-conventional": "20.
|
|
221
|
-
"@commitlint/types": "20.
|
|
222
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.
|
|
223
|
-
"@eslint/config-inspector": "1.
|
|
224
|
-
"@eslint/css": "
|
|
225
|
-
"@eslint/json": "1.
|
|
226
|
-
"@eslint/markdown": "
|
|
227
|
-
"@stylistic/eslint-plugin": "5.
|
|
228
|
-
"@stylistic/stylelint-config": "
|
|
207
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
208
|
+
"@commitlint/types": "20.5.0",
|
|
209
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
|
|
210
|
+
"@eslint/config-inspector": "1.5.0",
|
|
211
|
+
"@eslint/css": "1.1.0",
|
|
212
|
+
"@eslint/json": "1.2.0",
|
|
213
|
+
"@eslint/markdown": "8.0.1",
|
|
214
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
215
|
+
"@stylistic/stylelint-config": "5.0.0",
|
|
229
216
|
"@total-typescript/ts-reset": "0.6.1",
|
|
230
|
-
"@types/bun": "1.3.
|
|
217
|
+
"@types/bun": "1.3.12",
|
|
231
218
|
"@types/confusing-browser-globals": "1.0.3",
|
|
232
|
-
"@typescript-eslint/utils": "8.
|
|
233
|
-
"@vitest/eslint-plugin": "1.6.
|
|
234
|
-
"commitlint": "20.
|
|
235
|
-
"conventional-changelog": "7.
|
|
236
|
-
"eslint": "
|
|
237
|
-
"eslint-config-flat-gitignore": "2.
|
|
219
|
+
"@typescript-eslint/utils": "8.58.2",
|
|
220
|
+
"@vitest/eslint-plugin": "1.6.15",
|
|
221
|
+
"commitlint": "20.5.0",
|
|
222
|
+
"conventional-changelog": "7.2.0",
|
|
223
|
+
"eslint": "10.2.0",
|
|
224
|
+
"eslint-config-flat-gitignore": "2.3.0",
|
|
238
225
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
239
226
|
"eslint-merge-processors": "2.0.0",
|
|
240
|
-
"eslint-plugin-antfu": "3.
|
|
241
|
-
"eslint-plugin-import-x": "4.16.
|
|
242
|
-
"eslint-plugin-jsdoc": "62.
|
|
243
|
-
"eslint-plugin-jsonc": "
|
|
244
|
-
"eslint-plugin-n": "17.
|
|
245
|
-
"eslint-plugin-perfectionist": "5.
|
|
246
|
-
"eslint-plugin-regexp": "3.
|
|
247
|
-
"eslint-plugin-svelte": "3.
|
|
248
|
-
"eslint-plugin-toml": "1.
|
|
249
|
-
"eslint-plugin-unicorn": "
|
|
250
|
-
"eslint-plugin-unused-imports": "4.
|
|
251
|
-
"eslint-plugin-yml": "3.
|
|
252
|
-
"eslint-typegen": "2.3.
|
|
227
|
+
"eslint-plugin-antfu": "3.2.2",
|
|
228
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
229
|
+
"eslint-plugin-jsdoc": "62.9.0",
|
|
230
|
+
"eslint-plugin-jsonc": "3.1.2",
|
|
231
|
+
"eslint-plugin-n": "17.24.0",
|
|
232
|
+
"eslint-plugin-perfectionist": "5.8.0",
|
|
233
|
+
"eslint-plugin-regexp": "3.1.0",
|
|
234
|
+
"eslint-plugin-svelte": "3.17.0",
|
|
235
|
+
"eslint-plugin-toml": "1.3.1",
|
|
236
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
237
|
+
"eslint-plugin-unused-imports": "4.4.1",
|
|
238
|
+
"eslint-plugin-yml": "3.3.1",
|
|
239
|
+
"eslint-typegen": "2.3.1",
|
|
253
240
|
"jiti": "2.6.1",
|
|
254
|
-
"
|
|
255
|
-
"node-modules-inspector": "1.3.1",
|
|
241
|
+
"node-modules-inspector": "1.4.2",
|
|
256
242
|
"postcss-html": "1.8.1",
|
|
257
243
|
"simple-git-hooks": "2.13.1",
|
|
258
|
-
"stylelint": "17.
|
|
244
|
+
"stylelint": "17.7.0",
|
|
259
245
|
"stylelint-config-css-modules": "4.6.0",
|
|
260
246
|
"stylelint-config-html": "1.1.0",
|
|
261
|
-
"stylelint-config-recess-order": "7.
|
|
247
|
+
"stylelint-config-recess-order": "7.7.0",
|
|
262
248
|
"stylelint-config-standard-scss": "17.0.0",
|
|
263
|
-
"stylelint-declaration-strict-value": "1.
|
|
264
|
-
"stylelint-order": "
|
|
265
|
-
"stylelint-plugin-defensive-css": "
|
|
266
|
-
"stylelint-plugin-logical-css": "1.
|
|
267
|
-
"stylelint-plugin-use-baseline": "1.
|
|
268
|
-
"stylelint-use-nesting": "6.0.
|
|
269
|
-
"svelte": "5.
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"typescript": "
|
|
274
|
-
"
|
|
275
|
-
"vitest": "4.0.18",
|
|
276
|
-
"yaml-eslint-parser": "2.0.0"
|
|
249
|
+
"stylelint-declaration-strict-value": "1.11.1",
|
|
250
|
+
"stylelint-order": "8.1.1",
|
|
251
|
+
"stylelint-plugin-defensive-css": "2.9.0",
|
|
252
|
+
"stylelint-plugin-logical-css": "2.1.0",
|
|
253
|
+
"stylelint-plugin-use-baseline": "1.4.1",
|
|
254
|
+
"stylelint-use-nesting": "6.0.2",
|
|
255
|
+
"svelte": "5.55.3",
|
|
256
|
+
"tsdown": "0.21.8",
|
|
257
|
+
"type-fest": "5.5.0",
|
|
258
|
+
"typescript": "6.0.2",
|
|
259
|
+
"typescript-eslint": "8.58.2",
|
|
260
|
+
"vitest": "4.1.4"
|
|
277
261
|
},
|
|
278
262
|
"keywords": [
|
|
279
263
|
"dev",
|