@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.
- package/LICENSE +201 -0
- package/README.md +289 -0
- package/dist/chunk-24KYXRHB.js +31 -0
- package/dist/chunk-5IA7BNJZ.js +13 -0
- package/dist/chunk-5QRE5J4W.js +32 -0
- package/dist/chunk-66XRZUEY.js +23 -0
- package/dist/chunk-7WK2CHER.js +19 -0
- package/dist/chunk-GDFO3QPU.js +14 -0
- package/dist/chunk-GGNOJ77I.js +1 -0
- package/dist/chunk-GSFW4I7Y.js +24 -0
- package/dist/chunk-HZVUO4DQ.js +58 -0
- package/dist/chunk-I47UNAPW.js +16 -0
- package/dist/chunk-IYISSAYD.js +28 -0
- package/dist/chunk-JHRYYA2I.js +8 -0
- package/dist/chunk-K4IDUB5S.js +2123 -0
- package/dist/chunk-KRBDXNMO.js +17 -0
- package/dist/chunk-M3AIJQCS.js +12 -0
- package/dist/chunk-NP4DGSOE.js +37 -0
- package/dist/chunk-ORLPYCNP.js +17 -0
- package/dist/chunk-PRECUC4G.js +17 -0
- package/dist/chunk-RCL4IWEM.js +12 -0
- package/dist/chunk-SGIBJGAV.js +11 -0
- package/dist/chunk-U76ID4TS.js +1 -0
- package/dist/chunk-UMR5HNLA.js +25 -0
- package/dist/chunk-WQ37FH6C.js +8 -0
- package/dist/configs/banner.cjs +34 -0
- package/dist/configs/banner.d.cts +246 -0
- package/dist/configs/banner.d.ts +246 -0
- package/dist/configs/banner.js +1 -0
- package/dist/configs/imports.cjs +15 -0
- package/dist/configs/imports.d.cts +5 -0
- package/dist/configs/imports.d.ts +5 -0
- package/dist/configs/imports.js +1 -0
- package/dist/configs/javascript.cjs +27 -0
- package/dist/configs/javascript.d.cts +5 -0
- package/dist/configs/javascript.d.ts +5 -0
- package/dist/configs/javascript.js +1 -0
- package/dist/configs/jsdoc.cjs +16 -0
- package/dist/configs/jsdoc.d.cts +5 -0
- package/dist/configs/jsdoc.d.ts +5 -0
- package/dist/configs/jsdoc.js +1 -0
- package/dist/configs/jsx.cjs +14 -0
- package/dist/configs/jsx.d.cts +5 -0
- package/dist/configs/jsx.d.ts +5 -0
- package/dist/configs/jsx.js +1 -0
- package/dist/configs/next.cjs +25 -0
- package/dist/configs/next.d.cts +5 -0
- package/dist/configs/next.d.ts +5 -0
- package/dist/configs/next.js +1 -0
- package/dist/configs/node.cjs +13 -0
- package/dist/configs/node.d.cts +5 -0
- package/dist/configs/node.d.ts +5 -0
- package/dist/configs/node.js +1 -0
- package/dist/configs/pnpm.cjs +33 -0
- package/dist/configs/pnpm.d.cts +5 -0
- package/dist/configs/pnpm.d.ts +5 -0
- package/dist/configs/pnpm.js +1 -0
- package/dist/configs/promise.cjs +10 -0
- package/dist/configs/promise.d.cts +5 -0
- package/dist/configs/promise.d.ts +5 -0
- package/dist/configs/promise.js +1 -0
- package/dist/configs/react-perf.cjs +10 -0
- package/dist/configs/react-perf.d.cts +5 -0
- package/dist/configs/react-perf.d.ts +5 -0
- package/dist/configs/react-perf.js +1 -0
- package/dist/configs/react.cjs +21 -0
- package/dist/configs/react.d.cts +5 -0
- package/dist/configs/react.d.ts +5 -0
- package/dist/configs/react.js +1 -0
- package/dist/configs/regexp.cjs +18 -0
- package/dist/configs/regexp.d.cts +5 -0
- package/dist/configs/regexp.d.ts +5 -0
- package/dist/configs/regexp.js +1 -0
- package/dist/configs/storybook.cjs +19 -0
- package/dist/configs/storybook.d.cts +5 -0
- package/dist/configs/storybook.d.ts +5 -0
- package/dist/configs/storybook.js +1 -0
- package/dist/configs/test.cjs +38 -0
- package/dist/configs/test.d.cts +8 -0
- package/dist/configs/test.d.ts +8 -0
- package/dist/configs/test.js +2 -0
- package/dist/configs/tsdoc.cjs +19 -0
- package/dist/configs/tsdoc.d.cts +5 -0
- package/dist/configs/tsdoc.d.ts +5 -0
- package/dist/configs/tsdoc.js +1 -0
- package/dist/configs/typescript.cjs +26 -0
- package/dist/configs/typescript.d.cts +5 -0
- package/dist/configs/typescript.d.ts +5 -0
- package/dist/configs/typescript.js +1 -0
- package/dist/configs/unicorn.cjs +14 -0
- package/dist/configs/unicorn.d.cts +5 -0
- package/dist/configs/unicorn.d.ts +5 -0
- package/dist/configs/unicorn.js +1 -0
- package/dist/index.cjs +2556 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +29 -0
- package/dist/preset.cjs +2515 -0
- package/dist/preset.d.cts +10 -0
- package/dist/preset.d.ts +10 -0
- package/dist/preset.js +20 -0
- package/dist/typegen.d.ts +2 -0
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +124 -0
- package/dist/types.d.ts +124 -0
- package/dist/types.js +1 -0
- package/dist/utils/combine.cjs +39 -0
- package/dist/utils/combine.d.cts +5 -0
- package/dist/utils/combine.d.ts +5 -0
- package/dist/utils/combine.js +1 -0
- package/dist/utils/constants.cjs +64 -0
- package/dist/utils/constants.d.cts +7 -0
- package/dist/utils/constants.d.ts +7 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/format-config.cjs +19 -0
- package/dist/utils/format-config.d.cts +5 -0
- package/dist/utils/format-config.d.ts +5 -0
- package/dist/utils/format-config.js +1 -0
- package/dist/utils/index.cjs +118 -0
- package/dist/utils/index.d.cts +4 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +4 -0
- 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,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 };
|