@storm-software/oxlint 0.0.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.
Files changed (123) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +289 -0
  3. package/dist/chunk-24KYXRHB.js +31 -0
  4. package/dist/chunk-5IA7BNJZ.js +13 -0
  5. package/dist/chunk-5QRE5J4W.js +32 -0
  6. package/dist/chunk-66XRZUEY.js +23 -0
  7. package/dist/chunk-7WK2CHER.js +19 -0
  8. package/dist/chunk-GDFO3QPU.js +14 -0
  9. package/dist/chunk-GGNOJ77I.js +1 -0
  10. package/dist/chunk-GSFW4I7Y.js +24 -0
  11. package/dist/chunk-HZVUO4DQ.js +58 -0
  12. package/dist/chunk-I47UNAPW.js +16 -0
  13. package/dist/chunk-IYISSAYD.js +28 -0
  14. package/dist/chunk-JHRYYA2I.js +8 -0
  15. package/dist/chunk-K4IDUB5S.js +2123 -0
  16. package/dist/chunk-KRBDXNMO.js +17 -0
  17. package/dist/chunk-M3AIJQCS.js +12 -0
  18. package/dist/chunk-NP4DGSOE.js +37 -0
  19. package/dist/chunk-ORLPYCNP.js +17 -0
  20. package/dist/chunk-PRECUC4G.js +17 -0
  21. package/dist/chunk-RCL4IWEM.js +12 -0
  22. package/dist/chunk-SGIBJGAV.js +11 -0
  23. package/dist/chunk-U76ID4TS.js +1 -0
  24. package/dist/chunk-UMR5HNLA.js +25 -0
  25. package/dist/chunk-WQ37FH6C.js +8 -0
  26. package/dist/configs/banner.cjs +34 -0
  27. package/dist/configs/banner.d.cts +246 -0
  28. package/dist/configs/banner.d.ts +246 -0
  29. package/dist/configs/banner.js +1 -0
  30. package/dist/configs/imports.cjs +15 -0
  31. package/dist/configs/imports.d.cts +5 -0
  32. package/dist/configs/imports.d.ts +5 -0
  33. package/dist/configs/imports.js +1 -0
  34. package/dist/configs/javascript.cjs +27 -0
  35. package/dist/configs/javascript.d.cts +5 -0
  36. package/dist/configs/javascript.d.ts +5 -0
  37. package/dist/configs/javascript.js +1 -0
  38. package/dist/configs/jsdoc.cjs +16 -0
  39. package/dist/configs/jsdoc.d.cts +5 -0
  40. package/dist/configs/jsdoc.d.ts +5 -0
  41. package/dist/configs/jsdoc.js +1 -0
  42. package/dist/configs/jsx.cjs +14 -0
  43. package/dist/configs/jsx.d.cts +5 -0
  44. package/dist/configs/jsx.d.ts +5 -0
  45. package/dist/configs/jsx.js +1 -0
  46. package/dist/configs/next.cjs +25 -0
  47. package/dist/configs/next.d.cts +5 -0
  48. package/dist/configs/next.d.ts +5 -0
  49. package/dist/configs/next.js +1 -0
  50. package/dist/configs/node.cjs +13 -0
  51. package/dist/configs/node.d.cts +5 -0
  52. package/dist/configs/node.d.ts +5 -0
  53. package/dist/configs/node.js +1 -0
  54. package/dist/configs/pnpm.cjs +33 -0
  55. package/dist/configs/pnpm.d.cts +5 -0
  56. package/dist/configs/pnpm.d.ts +5 -0
  57. package/dist/configs/pnpm.js +1 -0
  58. package/dist/configs/promise.cjs +10 -0
  59. package/dist/configs/promise.d.cts +5 -0
  60. package/dist/configs/promise.d.ts +5 -0
  61. package/dist/configs/promise.js +1 -0
  62. package/dist/configs/react-perf.cjs +10 -0
  63. package/dist/configs/react-perf.d.cts +5 -0
  64. package/dist/configs/react-perf.d.ts +5 -0
  65. package/dist/configs/react-perf.js +1 -0
  66. package/dist/configs/react.cjs +21 -0
  67. package/dist/configs/react.d.cts +5 -0
  68. package/dist/configs/react.d.ts +5 -0
  69. package/dist/configs/react.js +1 -0
  70. package/dist/configs/regexp.cjs +18 -0
  71. package/dist/configs/regexp.d.cts +5 -0
  72. package/dist/configs/regexp.d.ts +5 -0
  73. package/dist/configs/regexp.js +1 -0
  74. package/dist/configs/storybook.cjs +19 -0
  75. package/dist/configs/storybook.d.cts +5 -0
  76. package/dist/configs/storybook.d.ts +5 -0
  77. package/dist/configs/storybook.js +1 -0
  78. package/dist/configs/test.cjs +38 -0
  79. package/dist/configs/test.d.cts +8 -0
  80. package/dist/configs/test.d.ts +8 -0
  81. package/dist/configs/test.js +2 -0
  82. package/dist/configs/tsdoc.cjs +19 -0
  83. package/dist/configs/tsdoc.d.cts +5 -0
  84. package/dist/configs/tsdoc.d.ts +5 -0
  85. package/dist/configs/tsdoc.js +1 -0
  86. package/dist/configs/typescript.cjs +26 -0
  87. package/dist/configs/typescript.d.cts +5 -0
  88. package/dist/configs/typescript.d.ts +5 -0
  89. package/dist/configs/typescript.js +1 -0
  90. package/dist/configs/unicorn.cjs +14 -0
  91. package/dist/configs/unicorn.d.cts +5 -0
  92. package/dist/configs/unicorn.d.ts +5 -0
  93. package/dist/configs/unicorn.js +1 -0
  94. package/dist/index.cjs +2556 -0
  95. package/dist/index.d.cts +24 -0
  96. package/dist/index.d.ts +24 -0
  97. package/dist/index.js +29 -0
  98. package/dist/preset.cjs +2515 -0
  99. package/dist/preset.d.cts +10 -0
  100. package/dist/preset.d.ts +10 -0
  101. package/dist/preset.js +20 -0
  102. package/dist/typegen.d.ts +2 -0
  103. package/dist/types.cjs +2 -0
  104. package/dist/types.d.cts +124 -0
  105. package/dist/types.d.ts +124 -0
  106. package/dist/types.js +1 -0
  107. package/dist/utils/combine.cjs +39 -0
  108. package/dist/utils/combine.d.cts +5 -0
  109. package/dist/utils/combine.d.ts +5 -0
  110. package/dist/utils/combine.js +1 -0
  111. package/dist/utils/constants.cjs +64 -0
  112. package/dist/utils/constants.d.cts +7 -0
  113. package/dist/utils/constants.d.ts +7 -0
  114. package/dist/utils/constants.js +1 -0
  115. package/dist/utils/format-config.cjs +19 -0
  116. package/dist/utils/format-config.d.cts +5 -0
  117. package/dist/utils/format-config.d.ts +5 -0
  118. package/dist/utils/format-config.js +1 -0
  119. package/dist/utils/index.cjs +118 -0
  120. package/dist/utils/index.d.cts +4 -0
  121. package/dist/utils/index.d.ts +4 -0
  122. package/dist/utils/index.js +4 -0
  123. package/package.json +153 -0
@@ -0,0 +1,58 @@
1
+ // src/utils/constants.ts
2
+ var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
3
+ var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
4
+ var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
5
+ var GLOB_TEST = [
6
+ `**/__tests__/**/*.${GLOB_SRC_EXT}`,
7
+ `**/*.spec.${GLOB_SRC_EXT}`,
8
+ `**/*.test.${GLOB_SRC_EXT}`,
9
+ `**/*.bench.${GLOB_SRC_EXT}`,
10
+ `**/*.benchmark.${GLOB_SRC_EXT}`
11
+ ];
12
+ var GLOB_EXCLUDE = [
13
+ "**/.git",
14
+ "**/node_modules",
15
+ "**/dist",
16
+ "**/tmp",
17
+ "**/coverage",
18
+ "**/bench",
19
+ "**/__snapshots__",
20
+ "**/__test__",
21
+ "**/__mocks__",
22
+ "**/__generated__",
23
+ "**/.nx",
24
+ "**/.next",
25
+ "**/.storm",
26
+ "**/.wrangler",
27
+ "**/.rolldown",
28
+ "**/.cache",
29
+ "**/.history",
30
+ "**/.idea",
31
+ "**/.vscode",
32
+ "**/.yarn",
33
+ "**/.pnp.*",
34
+ "**/yarn.lock",
35
+ "**/pnpm-lock.yaml",
36
+ "**/package-lock.json",
37
+ "**/bun.lockb",
38
+ "**/*.min.*",
39
+ "**/next-env.d.ts",
40
+ "**/CHANGELOG*.md",
41
+ "**/CONTRIBUTING.md",
42
+ "**/SECURITY.md",
43
+ "**/CODE_OF_CONDUCT.md",
44
+ "**/PULL_REQUEST_TEMPLATE.md",
45
+ "**/LICENSE*",
46
+ ".agents/**/*",
47
+ "**/.agents/**/*",
48
+ ".claude/**/*",
49
+ "**/.claude/**/*",
50
+ ".codex/**/*",
51
+ "**/.codex/**/*",
52
+ ".cursor/**/*",
53
+ "**/.cursor/**/*",
54
+ ".opencode/**/*",
55
+ "**/.opencode/**/*"
56
+ ];
57
+
58
+ export { GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_TEST };
@@ -0,0 +1,16 @@
1
+ // src/configs/regexp.ts
2
+ function regexp() {
3
+ return {
4
+ jsPlugins: [
5
+ {
6
+ name: "regexp",
7
+ specifier: "eslint-plugin-regexp"
8
+ }
9
+ ],
10
+ rules: {
11
+ "regexp/no-dupe-disjunctions": "warn"
12
+ }
13
+ };
14
+ }
15
+
16
+ export { regexp };
@@ -0,0 +1,28 @@
1
+ import { GLOB_TEST } from './chunk-HZVUO4DQ.js';
2
+
3
+ // src/configs/test.ts
4
+ function test(options = {}, enabled = {}) {
5
+ const { testFiles = GLOB_TEST } = options;
6
+ const plugins = [
7
+ ...enabled.jest ? ["jest"] : [],
8
+ ...enabled.vitest ? ["vitest"] : []
9
+ ];
10
+ return {
11
+ ...plugins.length > 0 ? { plugins } : {},
12
+ overrides: [
13
+ {
14
+ env: {
15
+ jest: !!enabled.jest,
16
+ vitest: !!enabled.vitest
17
+ },
18
+ files: testFiles,
19
+ rules: {
20
+ ...enabled.jest ? { "jest/no-disabled-tests": "warn" } : {},
21
+ ...enabled.vitest ? { "vitest/no-focused-tests": "error" } : {}
22
+ }
23
+ }
24
+ ]
25
+ };
26
+ }
27
+
28
+ export { test };
@@ -0,0 +1,8 @@
1
+ // src/configs/react-perf.ts
2
+ function reactPerf() {
3
+ return {
4
+ plugins: ["react-perf"]
5
+ };
6
+ }
7
+
8
+ export { reactPerf };