@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 @@
|
|
|
1
|
+
export { regexp } from '../chunk-I47UNAPW.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/configs/storybook.ts
|
|
4
|
+
function storybook(options = {}) {
|
|
5
|
+
const files = options.files ?? ["**/*.stories.{js,jsx,ts,tsx,mdx}"];
|
|
6
|
+
return {
|
|
7
|
+
overrides: [
|
|
8
|
+
{
|
|
9
|
+
files,
|
|
10
|
+
jsPlugins: ["eslint-plugin-storybook"],
|
|
11
|
+
rules: {
|
|
12
|
+
"storybook/no-redundant-story-name": "warn"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.storybook = storybook;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { storybook } from '../chunk-KRBDXNMO.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/constants.ts
|
|
4
|
+
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
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
|
+
|
|
13
|
+
// src/configs/test.ts
|
|
14
|
+
function test(options = {}, enabled = {}) {
|
|
15
|
+
const { testFiles = GLOB_TEST } = options;
|
|
16
|
+
const plugins = [
|
|
17
|
+
...enabled.jest ? ["jest"] : [],
|
|
18
|
+
...enabled.vitest ? ["vitest"] : []
|
|
19
|
+
];
|
|
20
|
+
return {
|
|
21
|
+
...plugins.length > 0 ? { plugins } : {},
|
|
22
|
+
overrides: [
|
|
23
|
+
{
|
|
24
|
+
env: {
|
|
25
|
+
jest: !!enabled.jest,
|
|
26
|
+
vitest: !!enabled.vitest
|
|
27
|
+
},
|
|
28
|
+
files: testFiles,
|
|
29
|
+
rules: {
|
|
30
|
+
...enabled.jest ? { "jest/no-disabled-tests": "warn" } : {},
|
|
31
|
+
...enabled.vitest ? { "vitest/no-focused-tests": "error" } : {}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.test = test;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/configs/tsdoc.ts
|
|
4
|
+
function tsdoc(options) {
|
|
5
|
+
const { severity = "error", type = "recommended", configFile } = options;
|
|
6
|
+
return {
|
|
7
|
+
jsPlugins: [
|
|
8
|
+
{
|
|
9
|
+
name: "tsdoc",
|
|
10
|
+
specifier: "@storm-software/eslint-plugin-tsdoc"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
rules: {
|
|
14
|
+
"tsdoc/syntax": [severity, { type, configFile }]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.tsdoc = tsdoc;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { tsdoc } from '../chunk-ORLPYCNP.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/configs/typescript.ts
|
|
4
|
+
function typescript(options = {}) {
|
|
5
|
+
const { typeAware = true, typeCheck = true } = options;
|
|
6
|
+
return {
|
|
7
|
+
options: {
|
|
8
|
+
typeAware,
|
|
9
|
+
typeCheck
|
|
10
|
+
},
|
|
11
|
+
plugins: ["typescript"],
|
|
12
|
+
rules: {
|
|
13
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
14
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
15
|
+
"@typescript-eslint/no-unused-vars": [
|
|
16
|
+
"error",
|
|
17
|
+
{
|
|
18
|
+
args: "none",
|
|
19
|
+
varsIgnorePattern: "^_"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.typescript = typescript;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { typescript } from '../chunk-GSFW4I7Y.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { unicorn } from '../chunk-RCL4IWEM.js';
|