@luxass/eslint-config 4.2.5 → 4.2.7

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 (144) hide show
  1. package/README.md +35 -54
  2. package/dist/index.cjs +166 -479
  3. package/dist/index.d.cts +733 -12
  4. package/dist/index.d.ts +733 -12
  5. package/dist/{configs/index.cjs → index.js} +300 -542
  6. package/package.json +51 -86
  7. package/dist/chunk-4YBQZLPS.mjs +0 -68
  8. package/dist/chunk-4YT54JFZ.mjs +0 -48
  9. package/dist/chunk-5NK24IKQ.mjs +0 -26
  10. package/dist/chunk-6T7MXPCT.mjs +0 -17
  11. package/dist/chunk-7ODEIBF5.mjs +0 -144
  12. package/dist/chunk-AQRBQAKE.mjs +0 -48
  13. package/dist/chunk-DAJA5AV3.mjs +0 -29
  14. package/dist/chunk-DCOLHWHC.mjs +0 -269
  15. package/dist/chunk-DVQQVCGF.mjs +0 -45
  16. package/dist/chunk-EHWA727G.mjs +0 -69
  17. package/dist/chunk-FNOIGW47.mjs +0 -104
  18. package/dist/chunk-KOXCJL3C.mjs +0 -109
  19. package/dist/chunk-MMSZW2UW.mjs +0 -92
  20. package/dist/chunk-MT5P5EKH.mjs +0 -207
  21. package/dist/chunk-O2BXTQHK.mjs +0 -117
  22. package/dist/chunk-QDSV5ONX.mjs +0 -93
  23. package/dist/chunk-QMGT2Z63.mjs +0 -57
  24. package/dist/chunk-RVSUTDCE.mjs +0 -57
  25. package/dist/chunk-SPD4DGYN.mjs +0 -274
  26. package/dist/chunk-UITQW3RA.mjs +0 -293
  27. package/dist/chunk-V57HXOSW.mjs +0 -81
  28. package/dist/chunk-WDSV2EFG.mjs +0 -7
  29. package/dist/chunk-WOBGA3K2.mjs +0 -63
  30. package/dist/chunk-WSQOWO67.mjs +0 -16
  31. package/dist/chunk-XBASVDU6.mjs +0 -215
  32. package/dist/chunk-XPKGXA67.mjs +0 -183
  33. package/dist/chunk-YGZJUKJC.mjs +0 -0
  34. package/dist/chunk-YO3IYQ2L.mjs +0 -220
  35. package/dist/configs/astro.cjs +0 -179
  36. package/dist/configs/astro.d.cts +0 -11
  37. package/dist/configs/astro.d.ts +0 -11
  38. package/dist/configs/astro.mjs +0 -8
  39. package/dist/configs/comments.cjs +0 -63
  40. package/dist/configs/comments.d.cts +0 -15
  41. package/dist/configs/comments.d.ts +0 -15
  42. package/dist/configs/comments.mjs +0 -6
  43. package/dist/configs/formatters.cjs +0 -274
  44. package/dist/configs/formatters.d.cts +0 -11
  45. package/dist/configs/formatters.d.ts +0 -11
  46. package/dist/configs/formatters.mjs +0 -9
  47. package/dist/configs/ignores.cjs +0 -96
  48. package/dist/configs/ignores.d.cts +0 -15
  49. package/dist/configs/ignores.d.ts +0 -15
  50. package/dist/configs/ignores.mjs +0 -7
  51. package/dist/configs/imports.cjs +0 -104
  52. package/dist/configs/imports.d.cts +0 -23
  53. package/dist/configs/imports.d.ts +0 -23
  54. package/dist/configs/imports.mjs +0 -7
  55. package/dist/configs/index.d.cts +0 -20
  56. package/dist/configs/index.d.ts +0 -20
  57. package/dist/configs/index.mjs +0 -104
  58. package/dist/configs/javascript.cjs +0 -324
  59. package/dist/configs/javascript.d.cts +0 -11
  60. package/dist/configs/javascript.d.ts +0 -11
  61. package/dist/configs/javascript.mjs +0 -7
  62. package/dist/configs/jsdoc.cjs +0 -85
  63. package/dist/configs/jsdoc.d.cts +0 -27
  64. package/dist/configs/jsdoc.d.ts +0 -27
  65. package/dist/configs/jsdoc.mjs +0 -7
  66. package/dist/configs/jsonc.cjs +0 -155
  67. package/dist/configs/jsonc.d.cts +0 -11
  68. package/dist/configs/jsonc.d.ts +0 -11
  69. package/dist/configs/jsonc.mjs +0 -8
  70. package/dist/configs/markdown.cjs +0 -164
  71. package/dist/configs/markdown.d.cts +0 -35
  72. package/dist/configs/markdown.d.ts +0 -35
  73. package/dist/configs/markdown.mjs +0 -8
  74. package/dist/configs/nextjs.cjs +0 -180
  75. package/dist/configs/nextjs.d.cts +0 -11
  76. package/dist/configs/nextjs.d.ts +0 -11
  77. package/dist/configs/nextjs.mjs +0 -8
  78. package/dist/configs/node.cjs +0 -60
  79. package/dist/configs/node.d.cts +0 -15
  80. package/dist/configs/node.d.ts +0 -15
  81. package/dist/configs/node.mjs +0 -6
  82. package/dist/configs/perfectionist.cjs +0 -51
  83. package/dist/configs/perfectionist.d.cts +0 -20
  84. package/dist/configs/perfectionist.d.ts +0 -20
  85. package/dist/configs/perfectionist.mjs +0 -6
  86. package/dist/configs/react.cjs +0 -379
  87. package/dist/configs/react.d.cts +0 -11
  88. package/dist/configs/react.d.ts +0 -11
  89. package/dist/configs/react.mjs +0 -8
  90. package/dist/configs/solid.cjs +0 -360
  91. package/dist/configs/solid.d.cts +0 -11
  92. package/dist/configs/solid.d.ts +0 -11
  93. package/dist/configs/solid.mjs +0 -8
  94. package/dist/configs/sort.cjs +0 -240
  95. package/dist/configs/sort.d.cts +0 -26
  96. package/dist/configs/sort.d.ts +0 -26
  97. package/dist/configs/sort.mjs +0 -8
  98. package/dist/configs/stylistic.cjs +0 -98
  99. package/dist/configs/stylistic.d.cts +0 -11
  100. package/dist/configs/stylistic.d.ts +0 -11
  101. package/dist/configs/stylistic.mjs +0 -9
  102. package/dist/configs/tailwindcss.cjs +0 -148
  103. package/dist/configs/tailwindcss.d.cts +0 -11
  104. package/dist/configs/tailwindcss.d.ts +0 -11
  105. package/dist/configs/tailwindcss.mjs +0 -8
  106. package/dist/configs/test.cjs +0 -206
  107. package/dist/configs/test.d.cts +0 -11
  108. package/dist/configs/test.d.ts +0 -11
  109. package/dist/configs/test.mjs +0 -9
  110. package/dist/configs/toml.cjs +0 -131
  111. package/dist/configs/toml.d.cts +0 -11
  112. package/dist/configs/toml.d.ts +0 -11
  113. package/dist/configs/toml.mjs +0 -8
  114. package/dist/configs/typescript.cjs +0 -291
  115. package/dist/configs/typescript.d.cts +0 -11
  116. package/dist/configs/typescript.d.ts +0 -11
  117. package/dist/configs/typescript.mjs +0 -8
  118. package/dist/configs/unicorn.cjs +0 -91
  119. package/dist/configs/unicorn.d.cts +0 -15
  120. package/dist/configs/unicorn.d.ts +0 -15
  121. package/dist/configs/unicorn.mjs +0 -6
  122. package/dist/configs/unocss.cjs +0 -133
  123. package/dist/configs/unocss.d.cts +0 -11
  124. package/dist/configs/unocss.d.ts +0 -11
  125. package/dist/configs/unocss.mjs +0 -8
  126. package/dist/configs/vue.cjs +0 -293
  127. package/dist/configs/vue.d.cts +0 -11
  128. package/dist/configs/vue.d.ts +0 -11
  129. package/dist/configs/vue.mjs +0 -8
  130. package/dist/configs/yaml.cjs +0 -143
  131. package/dist/configs/yaml.d.cts +0 -11
  132. package/dist/configs/yaml.d.ts +0 -11
  133. package/dist/configs/yaml.mjs +0 -8
  134. package/dist/custom-rules/utils.cjs +0 -31
  135. package/dist/custom-rules/utils.d.cts +0 -6
  136. package/dist/custom-rules/utils.d.ts +0 -6
  137. package/dist/custom-rules/utils.mjs +0 -6
  138. package/dist/globs.cjs +0 -158
  139. package/dist/globs.d.cts +0 -28
  140. package/dist/globs.d.ts +0 -28
  141. package/dist/globs.mjs +0 -56
  142. package/dist/index.mjs +0 -284
  143. package/dist/types-HqEzZfQU.d.cts +0 -668
  144. package/dist/types-HqEzZfQU.d.ts +0 -668
@@ -1,360 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/configs/solid.ts
31
- var solid_exports = {};
32
- __export(solid_exports, {
33
- solid: () => solid
34
- });
35
- module.exports = __toCommonJS(solid_exports);
36
-
37
- // src/globs.ts
38
- var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
39
- var GLOB_SRC = `**/*.${GLOB_SRC_EXT}`;
40
- var GLOB_JSX = "**/*.?([cm])jsx";
41
- var GLOB_TSX = "**/*.?([cm])tsx";
42
- var GLOB_MARKDOWN = "**/*.md";
43
- var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
44
- var GLOB_TESTS = [
45
- `**/__tests__/**/*.${GLOB_SRC_EXT}`,
46
- `**/*.spec.${GLOB_SRC_EXT}`,
47
- `**/*.test.${GLOB_SRC_EXT}`,
48
- `**/*.bench.${GLOB_SRC_EXT}`,
49
- `**/*.benchmark.${GLOB_SRC_EXT}`
50
- ];
51
- var GLOB_NEXTJS_ROUTES = [
52
- `**/app/**/page.${GLOB_SRC_EXT}`,
53
- `**/app/**/layout.${GLOB_SRC_EXT}`,
54
- `**/app/**/error.${GLOB_SRC_EXT}`,
55
- `**/app/**/template.${GLOB_SRC_EXT}`,
56
- `**/app/**/not-found.${GLOB_SRC_EXT}`,
57
- `**/app/**/loading.${GLOB_SRC_EXT}`,
58
- `**/app/**/robots.${GLOB_SRC_EXT}`,
59
- `**/app/**/sitemap.${GLOB_SRC_EXT}`,
60
- `**/pages/**/*.${GLOB_SRC_EXT}`
61
- ];
62
-
63
- // src/utils.ts
64
- var import_node_process = __toESM(require("process"), 1);
65
- var import_local_pkg = require("local-pkg");
66
- async function interop(m) {
67
- const resolved = await m;
68
- return resolved.default || resolved;
69
- }
70
- async function ensure(packages) {
71
- if (import_node_process.default.env.CI || import_node_process.default.stdout.isTTY === false) {
72
- return;
73
- }
74
- ;
75
- const nonExistingPackages = packages.filter((i) => !(0, import_local_pkg.isPackageExists)(i));
76
- if (nonExistingPackages.length === 0) {
77
- return;
78
- }
79
- ;
80
- const { default: prompts } = await import("prompts");
81
- const { result } = await prompts([
82
- {
83
- name: "result",
84
- message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?`,
85
- type: "confirm"
86
- }
87
- ]);
88
- if (result) {
89
- await import("@antfu/install-pkg").then((i) => i.installPackage(nonExistingPackages, {
90
- dev: true
91
- }));
92
- }
93
- ;
94
- }
95
-
96
- // src/configs/solid.ts
97
- async function solid(options = {}) {
98
- const {
99
- a11y = false,
100
- files = [GLOB_JSX, GLOB_TSX],
101
- overrides = {},
102
- typescript = true
103
- } = options;
104
- await ensure([
105
- "eslint-plugin-solid"
106
- ]);
107
- const [
108
- pluginSolid
109
- ] = await Promise.all([
110
- interop(import("eslint-plugin-solid"))
111
- ]);
112
- return [
113
- {
114
- name: "luxass:solid:setup",
115
- plugins: {
116
- solid: pluginSolid
117
- }
118
- },
119
- {
120
- name: "luxass:solid:rules",
121
- files,
122
- languageOptions: {
123
- parserOptions: {
124
- ecmaFeatures: {
125
- jsx: true
126
- }
127
- },
128
- sourceType: "module"
129
- },
130
- rules: {
131
- ...a11y ? {
132
- // recommended rules for jsx-a11y
133
- "jsx-a11y/alt-text": "error",
134
- "jsx-a11y/anchor-ambiguous-text": "off",
135
- "jsx-a11y/anchor-has-content": "error",
136
- "jsx-a11y/anchor-is-valid": "error",
137
- "jsx-a11y/aria-activedescendant-has-tabindex": "error",
138
- "jsx-a11y/aria-props": "error",
139
- "jsx-a11y/aria-proptypes": "error",
140
- "jsx-a11y/aria-role": "error",
141
- "jsx-a11y/aria-unsupported-elements": "error",
142
- "jsx-a11y/autocomplete-valid": "error",
143
- "jsx-a11y/click-events-have-key-events": "error",
144
- "jsx-a11y/control-has-associated-label": [
145
- "off",
146
- {
147
- ignoreElements: [
148
- "audio",
149
- "canvas",
150
- "embed",
151
- "input",
152
- "textarea",
153
- "tr",
154
- "video"
155
- ],
156
- ignoreRoles: [
157
- "grid",
158
- "listbox",
159
- "menu",
160
- "menubar",
161
- "radiogroup",
162
- "row",
163
- "tablist",
164
- "toolbar",
165
- "tree",
166
- "treegrid"
167
- ],
168
- includeRoles: [
169
- "alert",
170
- "dialog"
171
- ]
172
- }
173
- ],
174
- "jsx-a11y/heading-has-content": "error",
175
- "jsx-a11y/html-has-lang": "error",
176
- "jsx-a11y/iframe-has-title": "error",
177
- "jsx-a11y/img-redundant-alt": "error",
178
- "jsx-a11y/interactive-supports-focus": [
179
- "error",
180
- {
181
- tabbable: [
182
- "button",
183
- "checkbox",
184
- "link",
185
- "searchbox",
186
- "spinbutton",
187
- "switch",
188
- "textbox"
189
- ]
190
- }
191
- ],
192
- "jsx-a11y/label-has-associated-control": "error",
193
- "jsx-a11y/label-has-for": "off",
194
- "jsx-a11y/media-has-caption": "error",
195
- "jsx-a11y/mouse-events-have-key-events": "error",
196
- "jsx-a11y/no-access-key": "error",
197
- "jsx-a11y/no-autofocus": "error",
198
- "jsx-a11y/no-distracting-elements": "error",
199
- "jsx-a11y/no-interactive-element-to-noninteractive-role": [
200
- "error",
201
- {
202
- canvas: [
203
- "img"
204
- ],
205
- tr: [
206
- "none",
207
- "presentation"
208
- ]
209
- }
210
- ],
211
- "jsx-a11y/no-noninteractive-element-interactions": [
212
- "error",
213
- {
214
- alert: [
215
- "onKeyUp",
216
- "onKeyDown",
217
- "onKeyPress"
218
- ],
219
- body: [
220
- "onError",
221
- "onLoad"
222
- ],
223
- dialog: [
224
- "onKeyUp",
225
- "onKeyDown",
226
- "onKeyPress"
227
- ],
228
- handlers: [
229
- "onClick",
230
- "onError",
231
- "onLoad",
232
- "onMouseDown",
233
- "onMouseUp",
234
- "onKeyPress",
235
- "onKeyDown",
236
- "onKeyUp"
237
- ],
238
- iframe: [
239
- "onError",
240
- "onLoad"
241
- ],
242
- img: [
243
- "onError",
244
- "onLoad"
245
- ]
246
- }
247
- ],
248
- "jsx-a11y/no-noninteractive-element-to-interactive-role": [
249
- "error",
250
- {
251
- fieldset: [
252
- "radiogroup",
253
- "presentation"
254
- ],
255
- li: [
256
- "menuitem",
257
- "option",
258
- "row",
259
- "tab",
260
- "treeitem"
261
- ],
262
- ol: [
263
- "listbox",
264
- "menu",
265
- "menubar",
266
- "radiogroup",
267
- "tablist",
268
- "tree",
269
- "treegrid"
270
- ],
271
- table: [
272
- "grid"
273
- ],
274
- td: [
275
- "gridcell"
276
- ],
277
- ul: [
278
- "listbox",
279
- "menu",
280
- "menubar",
281
- "radiogroup",
282
- "tablist",
283
- "tree",
284
- "treegrid"
285
- ]
286
- }
287
- ],
288
- "jsx-a11y/no-noninteractive-tabindex": [
289
- "error",
290
- {
291
- allowExpressionValues: true,
292
- roles: [
293
- "tabpanel"
294
- ],
295
- tags: []
296
- }
297
- ],
298
- "jsx-a11y/no-redundant-roles": "error",
299
- "jsx-a11y/no-static-element-interactions": [
300
- "error",
301
- {
302
- allowExpressionValues: true,
303
- handlers: [
304
- "onClick",
305
- "onMouseDown",
306
- "onMouseUp",
307
- "onKeyPress",
308
- "onKeyDown",
309
- "onKeyUp"
310
- ]
311
- }
312
- ],
313
- "jsx-a11y/role-has-required-aria-props": "error",
314
- "jsx-a11y/role-supports-aria-props": "error",
315
- "jsx-a11y/scope": "error",
316
- "jsx-a11y/tabindex-no-positive": "error"
317
- } : {},
318
- // solid recommended rules
319
- // reactivity
320
- "solid/components-return-once": 1,
321
- "solid/event-handlers": 1,
322
- // these rules are mostly style suggestions
323
- "solid/imports": 1,
324
- // identifier usage is important
325
- "solid/jsx-no-duplicate-props": 2,
326
- "solid/jsx-no-script-url": 2,
327
- "solid/jsx-no-undef": 2,
328
- "solid/jsx-uses-vars": 2,
329
- "solid/no-array-handlers": 0,
330
- "solid/no-destructure": 2,
331
- // security problems
332
- "solid/no-innerhtml": 2,
333
- // only necessary for resource-constrained environments
334
- "solid/no-proxy-apis": 0,
335
- "solid/no-react-deps": 1,
336
- "solid/no-react-specific-props": 1,
337
- "solid/no-unknown-namespaces": 2,
338
- // deprecated
339
- "solid/prefer-classlist": 0,
340
- "solid/prefer-for": 2,
341
- // handled by Solid compiler, opt-in style suggestion
342
- "solid/prefer-show": 0,
343
- "solid/reactivity": 1,
344
- "solid/self-closing-comp": 1,
345
- "solid/style-prop": 1,
346
- ...typescript ? {
347
- "solid/jsx-no-undef": [2, { typescriptEnabled: true }],
348
- // namespaces taken care of by TS
349
- "solid/no-unknown-namespaces": 0
350
- } : {},
351
- // overrides
352
- ...overrides
353
- }
354
- }
355
- ];
356
- }
357
- // Annotate the CommonJS export names for ESM import in node:
358
- 0 && (module.exports = {
359
- solid
360
- });
@@ -1,11 +0,0 @@
1
- export { o as SolidOptions, m as solid } from '../types-HqEzZfQU.cjs';
2
- import 'eslint-config-flat-gitignore';
3
- import '@antfu/eslint-define-config';
4
- import '@eslint-types/jsdoc/types';
5
- import '@eslint-types/typescript-eslint/types';
6
- import '@eslint-types/unicorn/types';
7
- import 'eslint-plugin-antfu';
8
- import '@stylistic/eslint-plugin';
9
- import 'eslint';
10
- import '@typescript-eslint/parser';
11
- import 'eslint-processor-vue-blocks';
@@ -1,11 +0,0 @@
1
- export { o as SolidOptions, m as solid } from '../types-HqEzZfQU.js';
2
- import 'eslint-config-flat-gitignore';
3
- import '@antfu/eslint-define-config';
4
- import '@eslint-types/jsdoc/types';
5
- import '@eslint-types/typescript-eslint/types';
6
- import '@eslint-types/unicorn/types';
7
- import 'eslint-plugin-antfu';
8
- import '@stylistic/eslint-plugin';
9
- import 'eslint';
10
- import '@typescript-eslint/parser';
11
- import 'eslint-processor-vue-blocks';
@@ -1,8 +0,0 @@
1
- import {
2
- solid
3
- } from "../chunk-SPD4DGYN.mjs";
4
- import "../chunk-4YBQZLPS.mjs";
5
- import "../chunk-KOXCJL3C.mjs";
6
- export {
7
- solid
8
- };
@@ -1,240 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/configs/sort.ts
21
- var sort_exports = {};
22
- __export(sort_exports, {
23
- sortPackageJson: () => sortPackageJson,
24
- sortTsconfig: () => sortTsconfig
25
- });
26
- module.exports = __toCommonJS(sort_exports);
27
- function sortPackageJson() {
28
- return [
29
- {
30
- name: "luxass:sort-package-json",
31
- files: ["**/package.json"],
32
- rules: {
33
- "jsonc/sort-array-values": [
34
- "error",
35
- {
36
- order: { type: "asc" },
37
- pathPattern: "^files$"
38
- }
39
- ],
40
- "jsonc/sort-keys": [
41
- "error",
42
- {
43
- order: [
44
- "name",
45
- "displayName",
46
- "version",
47
- "description",
48
- "type",
49
- "private",
50
- "author",
51
- "publisher",
52
- "packageManager",
53
- "license",
54
- "funding",
55
- "homepage",
56
- "repository",
57
- "bugs",
58
- "keywords",
59
- "categories",
60
- "sideEffects",
61
- "exports",
62
- "main",
63
- "module",
64
- "unpkg",
65
- "jsdelivr",
66
- "types",
67
- "typesVersions",
68
- "bin",
69
- "icon",
70
- "files",
71
- "engines",
72
- "activationEvents",
73
- "contributes",
74
- "scripts",
75
- "peerDependencies",
76
- "peerDependenciesMeta",
77
- "dependencies",
78
- "optionalDependencies",
79
- "devDependencies",
80
- "pnpm",
81
- "overrides",
82
- "resolutions",
83
- "husky",
84
- "simple-git-hooks",
85
- "lint-staged",
86
- "eslintConfig"
87
- ],
88
- pathPattern: "^$"
89
- },
90
- {
91
- order: { type: "asc" },
92
- pathPattern: "^(?:dev|peer|optional|bundled)?[Dd]ependencies$"
93
- },
94
- {
95
- order: { type: "asc" },
96
- pathPattern: "^resolutions$"
97
- },
98
- {
99
- order: { type: "asc" },
100
- pathPattern: "^pnpm.overrides$"
101
- },
102
- {
103
- order: ["types", "import", "require", "default"],
104
- pathPattern: "^exports.*$"
105
- }
106
- ]
107
- }
108
- }
109
- ];
110
- }
111
- function sortTsconfig() {
112
- return [
113
- {
114
- name: "luxass:sort-tsconfig",
115
- files: ["**/tsconfig.json", "**/tsconfig.*.json"],
116
- rules: {
117
- "jsonc/sort-keys": [
118
- "error",
119
- {
120
- order: [
121
- "extends",
122
- "compilerOptions",
123
- "references",
124
- "files",
125
- "include",
126
- "exclude"
127
- ],
128
- pathPattern: "^$"
129
- },
130
- {
131
- order: [
132
- /* Projects */
133
- "incremental",
134
- "composite",
135
- "tsBuildInfoFile",
136
- "disableSourceOfProjectReferenceRedirect",
137
- "disableSolutionSearching",
138
- "disableReferencedProjectLoad",
139
- /* Language and Environment */
140
- "target",
141
- "jsx",
142
- "jsxFactory",
143
- "jsxFragmentFactory",
144
- "jsxImportSource",
145
- "lib",
146
- "moduleDetection",
147
- "noLib",
148
- "reactNamespace",
149
- "useDefineForClassFields",
150
- "emitDecoratorMetadata",
151
- "experimentalDecorators",
152
- /* Modules */
153
- "baseUrl",
154
- "rootDir",
155
- "rootDirs",
156
- "customConditions",
157
- "module",
158
- "moduleResolution",
159
- "moduleSuffixes",
160
- "noResolve",
161
- "paths",
162
- "resolveJsonModule",
163
- "resolvePackageJsonExports",
164
- "resolvePackageJsonImports",
165
- "typeRoots",
166
- "types",
167
- "allowArbitraryExtensions",
168
- "allowImportingTsExtensions",
169
- "allowUmdGlobalAccess",
170
- /* JavaScript Support */
171
- "allowJs",
172
- "checkJs",
173
- "maxNodeModuleJsDepth",
174
- /* Type Checking */
175
- "strict",
176
- "strictBindCallApply",
177
- "strictFunctionTypes",
178
- "strictNullChecks",
179
- "strictPropertyInitialization",
180
- "allowUnreachableCode",
181
- "allowUnusedLabels",
182
- "alwaysStrict",
183
- "exactOptionalPropertyTypes",
184
- "noFallthroughCasesInSwitch",
185
- "noImplicitAny",
186
- "noImplicitOverride",
187
- "noImplicitReturns",
188
- "noImplicitThis",
189
- "noPropertyAccessFromIndexSignature",
190
- "noUncheckedIndexedAccess",
191
- "noUnusedLocals",
192
- "noUnusedParameters",
193
- "useUnknownInCatchVariables",
194
- /* Emit */
195
- "declaration",
196
- "declarationDir",
197
- "declarationMap",
198
- "downlevelIteration",
199
- "emitBOM",
200
- "emitDeclarationOnly",
201
- "importHelpers",
202
- "importsNotUsedAsValues",
203
- "inlineSourceMap",
204
- "inlineSources",
205
- "mapRoot",
206
- "newLine",
207
- "noEmit",
208
- "noEmitHelpers",
209
- "noEmitOnError",
210
- "outDir",
211
- "outFile",
212
- "preserveConstEnums",
213
- "preserveValueImports",
214
- "removeComments",
215
- "sourceMap",
216
- "sourceRoot",
217
- "stripInternal",
218
- /* Interop Constraints */
219
- "allowSyntheticDefaultImports",
220
- "esModuleInterop",
221
- "forceConsistentCasingInFileNames",
222
- "isolatedModules",
223
- "preserveSymlinks",
224
- "verbatimModuleSyntax",
225
- /* Completeness */
226
- "skipDefaultLibCheck",
227
- "skipLibCheck"
228
- ],
229
- pathPattern: "^compilerOptions$"
230
- }
231
- ]
232
- }
233
- }
234
- ];
235
- }
236
- // Annotate the CommonJS export names for ESM import in node:
237
- 0 && (module.exports = {
238
- sortPackageJson,
239
- sortTsconfig
240
- });
@@ -1,26 +0,0 @@
1
- import { p as FlatConfigItem } from '../types-HqEzZfQU.cjs';
2
- import 'eslint-config-flat-gitignore';
3
- import '@antfu/eslint-define-config';
4
- import '@eslint-types/jsdoc/types';
5
- import '@eslint-types/typescript-eslint/types';
6
- import '@eslint-types/unicorn/types';
7
- import 'eslint-plugin-antfu';
8
- import '@stylistic/eslint-plugin';
9
- import 'eslint';
10
- import '@typescript-eslint/parser';
11
- import 'eslint-processor-vue-blocks';
12
-
13
- /**
14
- * Sort package.json
15
- *
16
- * Requires `jsonc` config
17
- */
18
- declare function sortPackageJson(): FlatConfigItem[];
19
- /**
20
- * Sort tsconfig.json
21
- *
22
- * Requires `jsonc` config
23
- */
24
- declare function sortTsconfig(): FlatConfigItem[];
25
-
26
- export { sortPackageJson, sortTsconfig };
@@ -1,26 +0,0 @@
1
- import { p as FlatConfigItem } from '../types-HqEzZfQU.js';
2
- import 'eslint-config-flat-gitignore';
3
- import '@antfu/eslint-define-config';
4
- import '@eslint-types/jsdoc/types';
5
- import '@eslint-types/typescript-eslint/types';
6
- import '@eslint-types/unicorn/types';
7
- import 'eslint-plugin-antfu';
8
- import '@stylistic/eslint-plugin';
9
- import 'eslint';
10
- import '@typescript-eslint/parser';
11
- import 'eslint-processor-vue-blocks';
12
-
13
- /**
14
- * Sort package.json
15
- *
16
- * Requires `jsonc` config
17
- */
18
- declare function sortPackageJson(): FlatConfigItem[];
19
- /**
20
- * Sort tsconfig.json
21
- *
22
- * Requires `jsonc` config
23
- */
24
- declare function sortTsconfig(): FlatConfigItem[];
25
-
26
- export { sortPackageJson, sortTsconfig };
@@ -1,8 +0,0 @@
1
- import {
2
- sortPackageJson,
3
- sortTsconfig
4
- } from "../chunk-XBASVDU6.mjs";
5
- export {
6
- sortPackageJson,
7
- sortTsconfig
8
- };