@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,10 @@
|
|
|
1
|
+
import { OptionsConfig, Awaitable, TypedConfigItem } from './types.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get the Oxlint configuration for a Storm workspace.
|
|
5
|
+
*/
|
|
6
|
+
declare function getStormConfig(options?: OptionsConfig, ...userConfigs: Awaitable<TypedConfigItem>[]): Promise<TypedConfigItem>;
|
|
7
|
+
declare const getConfig: typeof getStormConfig;
|
|
8
|
+
declare const defineConfig: typeof getStormConfig;
|
|
9
|
+
|
|
10
|
+
export { getStormConfig as default, defineConfig, getConfig, getStormConfig };
|
package/dist/preset.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OptionsConfig, Awaitable, TypedConfigItem } from './types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get the Oxlint configuration for a Storm workspace.
|
|
5
|
+
*/
|
|
6
|
+
declare function getStormConfig(options?: OptionsConfig, ...userConfigs: Awaitable<TypedConfigItem>[]): Promise<TypedConfigItem>;
|
|
7
|
+
declare const getConfig: typeof getStormConfig;
|
|
8
|
+
declare const defineConfig: typeof getStormConfig;
|
|
9
|
+
|
|
10
|
+
export { getStormConfig as default, defineConfig, getConfig, getStormConfig };
|
package/dist/preset.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { preset_default as default, defineConfig, getConfig, getStormConfig } from './chunk-K4IDUB5S.js';
|
|
2
|
+
import './chunk-IYISSAYD.js';
|
|
3
|
+
import './chunk-ORLPYCNP.js';
|
|
4
|
+
import './chunk-GSFW4I7Y.js';
|
|
5
|
+
import './chunk-RCL4IWEM.js';
|
|
6
|
+
import './chunk-NP4DGSOE.js';
|
|
7
|
+
import './chunk-HZVUO4DQ.js';
|
|
8
|
+
import './chunk-66XRZUEY.js';
|
|
9
|
+
import './chunk-SGIBJGAV.js';
|
|
10
|
+
import './chunk-24KYXRHB.js';
|
|
11
|
+
import './chunk-WQ37FH6C.js';
|
|
12
|
+
import './chunk-JHRYYA2I.js';
|
|
13
|
+
import './chunk-7WK2CHER.js';
|
|
14
|
+
import './chunk-I47UNAPW.js';
|
|
15
|
+
import './chunk-KRBDXNMO.js';
|
|
16
|
+
import './chunk-5QRE5J4W.js';
|
|
17
|
+
import './chunk-5IA7BNJZ.js';
|
|
18
|
+
import './chunk-UMR5HNLA.js';
|
|
19
|
+
import './chunk-GDFO3QPU.js';
|
|
20
|
+
import './chunk-M3AIJQCS.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/typegen.ts.
|
|
2
|
+
export type ConfigNames = 'storm/disables' | 'storm/ignores' | 'storm/imports' | 'storm/javascript' | 'storm/jsdoc' | 'storm/jsx' | 'storm/next' | 'storm/node' | 'storm/promise' | 'storm/react' | 'storm/react-perf' | 'storm/regexp' | 'storm/storybook' | 'storm/test' | 'storm/typescript' | 'storm/unicorn';
|
package/dist/types.cjs
ADDED
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/typegen.ts.
|
|
2
|
+
type ConfigNames = 'storm/disables' | 'storm/ignores' | 'storm/imports' | 'storm/javascript' | 'storm/jsdoc' | 'storm/jsx' | 'storm/next' | 'storm/node' | 'storm/promise' | 'storm/react' | 'storm/react-perf' | 'storm/regexp' | 'storm/storybook' | 'storm/test' | 'storm/typescript' | 'storm/unicorn';
|
|
3
|
+
|
|
4
|
+
type Awaitable<T> = T | Promise<T>;
|
|
5
|
+
|
|
6
|
+
type LintLevel = "off" | "warn" | "error" | "deny" | 0 | 1 | 2;
|
|
7
|
+
type BuiltinPluginName = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
8
|
+
interface JsPluginWithAlias {
|
|
9
|
+
name: string;
|
|
10
|
+
specifier: string;
|
|
11
|
+
}
|
|
12
|
+
type JsPlugin = string | JsPluginWithAlias;
|
|
13
|
+
type RuleValue = LintLevel | [LintLevel, ...unknown[]];
|
|
14
|
+
interface OptionsFiles {
|
|
15
|
+
/**
|
|
16
|
+
* Override the `files` option to provide custom globs.
|
|
17
|
+
*/
|
|
18
|
+
files?: string[];
|
|
19
|
+
}
|
|
20
|
+
interface TypedConfigOverride extends OptionsFiles {
|
|
21
|
+
env?: Record<string, boolean>;
|
|
22
|
+
globals?: Record<string, "readonly" | "writable" | "off" | boolean>;
|
|
23
|
+
plugins?: BuiltinPluginName[];
|
|
24
|
+
jsPlugins?: JsPlugin[];
|
|
25
|
+
rules?: Record<string, RuleValue>;
|
|
26
|
+
settings?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
interface TypedConfigItem {
|
|
29
|
+
$schema?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
categories?: Partial<Record<"correctness" | "nursery" | "pedantic" | "perf" | "restriction" | "style" | "suspicious", LintLevel>>;
|
|
32
|
+
env?: Record<string, boolean>;
|
|
33
|
+
extends?: string[];
|
|
34
|
+
globals?: Record<string, "readonly" | "writable" | "off" | boolean>;
|
|
35
|
+
ignorePatterns?: string[];
|
|
36
|
+
jsPlugins?: JsPlugin[];
|
|
37
|
+
options?: {
|
|
38
|
+
denyWarnings?: boolean;
|
|
39
|
+
maxWarnings?: number;
|
|
40
|
+
reportUnusedDisableDirectives?: LintLevel;
|
|
41
|
+
respectEslintDisableDirectives?: boolean;
|
|
42
|
+
typeAware?: boolean;
|
|
43
|
+
typeCheck?: boolean;
|
|
44
|
+
};
|
|
45
|
+
overrides?: TypedConfigOverride[];
|
|
46
|
+
plugins?: BuiltinPluginName[];
|
|
47
|
+
rules?: Record<string, RuleValue>;
|
|
48
|
+
settings?: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
interface OptionsNext {
|
|
51
|
+
coreWebVitals?: boolean;
|
|
52
|
+
rootDir?: string | string[];
|
|
53
|
+
}
|
|
54
|
+
interface OptionsReact {
|
|
55
|
+
version?: string;
|
|
56
|
+
}
|
|
57
|
+
interface OptionsTypeScript {
|
|
58
|
+
typeAware?: boolean;
|
|
59
|
+
typeCheck?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface OptionsTest {
|
|
62
|
+
testFiles?: string[];
|
|
63
|
+
}
|
|
64
|
+
interface OptionsStorybook {
|
|
65
|
+
files?: string[];
|
|
66
|
+
}
|
|
67
|
+
interface OptionsPNPM {
|
|
68
|
+
ignore?: string[];
|
|
69
|
+
}
|
|
70
|
+
interface OptionsTSDoc {
|
|
71
|
+
/**
|
|
72
|
+
* The TSDoc ESLint rule severity.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue "error"
|
|
75
|
+
*/
|
|
76
|
+
severity?: "error" | "warn" | "off";
|
|
77
|
+
/**
|
|
78
|
+
* The type of Storm Software TSDoc configuration to use.
|
|
79
|
+
*
|
|
80
|
+
* @defaultValue "recommended"
|
|
81
|
+
*/
|
|
82
|
+
type?: "base" | "typedoc" | "api-extractor" | "core" | "callouts" | "recommended";
|
|
83
|
+
/**
|
|
84
|
+
* The path to a TSDoc config file.
|
|
85
|
+
*/
|
|
86
|
+
configFile?: string;
|
|
87
|
+
}
|
|
88
|
+
interface OptionsBanner {
|
|
89
|
+
name: string;
|
|
90
|
+
license?: string;
|
|
91
|
+
organization?: string;
|
|
92
|
+
licensing?: string;
|
|
93
|
+
repository?: string;
|
|
94
|
+
docs?: string;
|
|
95
|
+
homepage?: string;
|
|
96
|
+
commentStyle?: "block" | "line" | string;
|
|
97
|
+
newlines?: number;
|
|
98
|
+
lineEndings?: "unix" | "windows";
|
|
99
|
+
}
|
|
100
|
+
interface OptionsConfig extends TypedConfigItem {
|
|
101
|
+
banner?: boolean | OptionsBanner;
|
|
102
|
+
gitignore?: boolean;
|
|
103
|
+
ignores?: string[];
|
|
104
|
+
javascript?: boolean;
|
|
105
|
+
typescript?: boolean | OptionsTypeScript;
|
|
106
|
+
imports?: boolean;
|
|
107
|
+
jsx?: boolean;
|
|
108
|
+
react?: boolean | OptionsReact;
|
|
109
|
+
"react-perf"?: boolean;
|
|
110
|
+
next?: boolean | OptionsNext;
|
|
111
|
+
jsdoc?: boolean;
|
|
112
|
+
node?: boolean;
|
|
113
|
+
pnpm?: boolean | OptionsPNPM;
|
|
114
|
+
promise?: boolean;
|
|
115
|
+
unicorn?: boolean;
|
|
116
|
+
test?: boolean | OptionsTest;
|
|
117
|
+
vitest?: boolean;
|
|
118
|
+
jest?: boolean;
|
|
119
|
+
regexp?: boolean;
|
|
120
|
+
storybook?: boolean | OptionsStorybook;
|
|
121
|
+
tsdoc?: boolean | OptionsTSDoc;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type { Awaitable, BuiltinPluginName, ConfigNames, JsPlugin, JsPluginWithAlias, LintLevel, OptionsBanner, OptionsConfig, OptionsFiles, OptionsNext, OptionsPNPM, OptionsReact, OptionsStorybook, OptionsTSDoc, OptionsTest, OptionsTypeScript, RuleValue, TypedConfigItem, TypedConfigOverride };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/typegen.ts.
|
|
2
|
+
type ConfigNames = 'storm/disables' | 'storm/ignores' | 'storm/imports' | 'storm/javascript' | 'storm/jsdoc' | 'storm/jsx' | 'storm/next' | 'storm/node' | 'storm/promise' | 'storm/react' | 'storm/react-perf' | 'storm/regexp' | 'storm/storybook' | 'storm/test' | 'storm/typescript' | 'storm/unicorn';
|
|
3
|
+
|
|
4
|
+
type Awaitable<T> = T | Promise<T>;
|
|
5
|
+
|
|
6
|
+
type LintLevel = "off" | "warn" | "error" | "deny" | 0 | 1 | 2;
|
|
7
|
+
type BuiltinPluginName = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
8
|
+
interface JsPluginWithAlias {
|
|
9
|
+
name: string;
|
|
10
|
+
specifier: string;
|
|
11
|
+
}
|
|
12
|
+
type JsPlugin = string | JsPluginWithAlias;
|
|
13
|
+
type RuleValue = LintLevel | [LintLevel, ...unknown[]];
|
|
14
|
+
interface OptionsFiles {
|
|
15
|
+
/**
|
|
16
|
+
* Override the `files` option to provide custom globs.
|
|
17
|
+
*/
|
|
18
|
+
files?: string[];
|
|
19
|
+
}
|
|
20
|
+
interface TypedConfigOverride extends OptionsFiles {
|
|
21
|
+
env?: Record<string, boolean>;
|
|
22
|
+
globals?: Record<string, "readonly" | "writable" | "off" | boolean>;
|
|
23
|
+
plugins?: BuiltinPluginName[];
|
|
24
|
+
jsPlugins?: JsPlugin[];
|
|
25
|
+
rules?: Record<string, RuleValue>;
|
|
26
|
+
settings?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
interface TypedConfigItem {
|
|
29
|
+
$schema?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
categories?: Partial<Record<"correctness" | "nursery" | "pedantic" | "perf" | "restriction" | "style" | "suspicious", LintLevel>>;
|
|
32
|
+
env?: Record<string, boolean>;
|
|
33
|
+
extends?: string[];
|
|
34
|
+
globals?: Record<string, "readonly" | "writable" | "off" | boolean>;
|
|
35
|
+
ignorePatterns?: string[];
|
|
36
|
+
jsPlugins?: JsPlugin[];
|
|
37
|
+
options?: {
|
|
38
|
+
denyWarnings?: boolean;
|
|
39
|
+
maxWarnings?: number;
|
|
40
|
+
reportUnusedDisableDirectives?: LintLevel;
|
|
41
|
+
respectEslintDisableDirectives?: boolean;
|
|
42
|
+
typeAware?: boolean;
|
|
43
|
+
typeCheck?: boolean;
|
|
44
|
+
};
|
|
45
|
+
overrides?: TypedConfigOverride[];
|
|
46
|
+
plugins?: BuiltinPluginName[];
|
|
47
|
+
rules?: Record<string, RuleValue>;
|
|
48
|
+
settings?: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
interface OptionsNext {
|
|
51
|
+
coreWebVitals?: boolean;
|
|
52
|
+
rootDir?: string | string[];
|
|
53
|
+
}
|
|
54
|
+
interface OptionsReact {
|
|
55
|
+
version?: string;
|
|
56
|
+
}
|
|
57
|
+
interface OptionsTypeScript {
|
|
58
|
+
typeAware?: boolean;
|
|
59
|
+
typeCheck?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface OptionsTest {
|
|
62
|
+
testFiles?: string[];
|
|
63
|
+
}
|
|
64
|
+
interface OptionsStorybook {
|
|
65
|
+
files?: string[];
|
|
66
|
+
}
|
|
67
|
+
interface OptionsPNPM {
|
|
68
|
+
ignore?: string[];
|
|
69
|
+
}
|
|
70
|
+
interface OptionsTSDoc {
|
|
71
|
+
/**
|
|
72
|
+
* The TSDoc ESLint rule severity.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue "error"
|
|
75
|
+
*/
|
|
76
|
+
severity?: "error" | "warn" | "off";
|
|
77
|
+
/**
|
|
78
|
+
* The type of Storm Software TSDoc configuration to use.
|
|
79
|
+
*
|
|
80
|
+
* @defaultValue "recommended"
|
|
81
|
+
*/
|
|
82
|
+
type?: "base" | "typedoc" | "api-extractor" | "core" | "callouts" | "recommended";
|
|
83
|
+
/**
|
|
84
|
+
* The path to a TSDoc config file.
|
|
85
|
+
*/
|
|
86
|
+
configFile?: string;
|
|
87
|
+
}
|
|
88
|
+
interface OptionsBanner {
|
|
89
|
+
name: string;
|
|
90
|
+
license?: string;
|
|
91
|
+
organization?: string;
|
|
92
|
+
licensing?: string;
|
|
93
|
+
repository?: string;
|
|
94
|
+
docs?: string;
|
|
95
|
+
homepage?: string;
|
|
96
|
+
commentStyle?: "block" | "line" | string;
|
|
97
|
+
newlines?: number;
|
|
98
|
+
lineEndings?: "unix" | "windows";
|
|
99
|
+
}
|
|
100
|
+
interface OptionsConfig extends TypedConfigItem {
|
|
101
|
+
banner?: boolean | OptionsBanner;
|
|
102
|
+
gitignore?: boolean;
|
|
103
|
+
ignores?: string[];
|
|
104
|
+
javascript?: boolean;
|
|
105
|
+
typescript?: boolean | OptionsTypeScript;
|
|
106
|
+
imports?: boolean;
|
|
107
|
+
jsx?: boolean;
|
|
108
|
+
react?: boolean | OptionsReact;
|
|
109
|
+
"react-perf"?: boolean;
|
|
110
|
+
next?: boolean | OptionsNext;
|
|
111
|
+
jsdoc?: boolean;
|
|
112
|
+
node?: boolean;
|
|
113
|
+
pnpm?: boolean | OptionsPNPM;
|
|
114
|
+
promise?: boolean;
|
|
115
|
+
unicorn?: boolean;
|
|
116
|
+
test?: boolean | OptionsTest;
|
|
117
|
+
vitest?: boolean;
|
|
118
|
+
jest?: boolean;
|
|
119
|
+
regexp?: boolean;
|
|
120
|
+
storybook?: boolean | OptionsStorybook;
|
|
121
|
+
tsdoc?: boolean | OptionsTSDoc;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type { Awaitable, BuiltinPluginName, ConfigNames, JsPlugin, JsPluginWithAlias, LintLevel, OptionsBanner, OptionsConfig, OptionsFiles, OptionsNext, OptionsPNPM, OptionsReact, OptionsStorybook, OptionsTSDoc, OptionsTest, OptionsTypeScript, RuleValue, TypedConfigItem, TypedConfigOverride };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './chunk-GGNOJ77I.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/combine.ts
|
|
4
|
+
function isObject(value) {
|
|
5
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
6
|
+
}
|
|
7
|
+
function deepMerge(target, source) {
|
|
8
|
+
const out = { ...target };
|
|
9
|
+
for (const [key, value] of Object.entries(source)) {
|
|
10
|
+
if (value == null) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
const current = out[key];
|
|
14
|
+
if (Array.isArray(value) && Array.isArray(current)) {
|
|
15
|
+
out[key] = [...current, ...value];
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
if (isObject(value) && isObject(current)) {
|
|
19
|
+
out[key] = deepMerge(
|
|
20
|
+
current,
|
|
21
|
+
value
|
|
22
|
+
);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
out[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
29
|
+
async function combine(...configs) {
|
|
30
|
+
const resolved = await Promise.all(configs);
|
|
31
|
+
return resolved.filter(Boolean).reduce((acc, current) => {
|
|
32
|
+
return deepMerge(
|
|
33
|
+
acc,
|
|
34
|
+
current
|
|
35
|
+
);
|
|
36
|
+
}, {});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.combine = combine;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { combine } from '../chunk-NP4DGSOE.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/constants.ts
|
|
4
|
+
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
5
|
+
var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
|
|
6
|
+
var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
|
|
7
|
+
var GLOB_TEST = [
|
|
8
|
+
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
9
|
+
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
10
|
+
`**/*.test.${GLOB_SRC_EXT}`,
|
|
11
|
+
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
12
|
+
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
13
|
+
];
|
|
14
|
+
var GLOB_EXCLUDE = [
|
|
15
|
+
"**/.git",
|
|
16
|
+
"**/node_modules",
|
|
17
|
+
"**/dist",
|
|
18
|
+
"**/tmp",
|
|
19
|
+
"**/coverage",
|
|
20
|
+
"**/bench",
|
|
21
|
+
"**/__snapshots__",
|
|
22
|
+
"**/__test__",
|
|
23
|
+
"**/__mocks__",
|
|
24
|
+
"**/__generated__",
|
|
25
|
+
"**/.nx",
|
|
26
|
+
"**/.next",
|
|
27
|
+
"**/.storm",
|
|
28
|
+
"**/.wrangler",
|
|
29
|
+
"**/.rolldown",
|
|
30
|
+
"**/.cache",
|
|
31
|
+
"**/.history",
|
|
32
|
+
"**/.idea",
|
|
33
|
+
"**/.vscode",
|
|
34
|
+
"**/.yarn",
|
|
35
|
+
"**/.pnp.*",
|
|
36
|
+
"**/yarn.lock",
|
|
37
|
+
"**/pnpm-lock.yaml",
|
|
38
|
+
"**/package-lock.json",
|
|
39
|
+
"**/bun.lockb",
|
|
40
|
+
"**/*.min.*",
|
|
41
|
+
"**/next-env.d.ts",
|
|
42
|
+
"**/CHANGELOG*.md",
|
|
43
|
+
"**/CONTRIBUTING.md",
|
|
44
|
+
"**/SECURITY.md",
|
|
45
|
+
"**/CODE_OF_CONDUCT.md",
|
|
46
|
+
"**/PULL_REQUEST_TEMPLATE.md",
|
|
47
|
+
"**/LICENSE*",
|
|
48
|
+
".agents/**/*",
|
|
49
|
+
"**/.agents/**/*",
|
|
50
|
+
".claude/**/*",
|
|
51
|
+
"**/.claude/**/*",
|
|
52
|
+
".codex/**/*",
|
|
53
|
+
"**/.codex/**/*",
|
|
54
|
+
".cursor/**/*",
|
|
55
|
+
"**/.cursor/**/*",
|
|
56
|
+
".opencode/**/*",
|
|
57
|
+
"**/.opencode/**/*"
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
exports.GLOB_EXCLUDE = GLOB_EXCLUDE;
|
|
61
|
+
exports.GLOB_SRC = GLOB_SRC;
|
|
62
|
+
exports.GLOB_SRC_EXT = GLOB_SRC_EXT;
|
|
63
|
+
exports.GLOB_SRC_FILE = GLOB_SRC_FILE;
|
|
64
|
+
exports.GLOB_TEST = GLOB_TEST;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
+
declare const GLOB_SRC_FILE = "*.?([cm])[jt]s?(x)";
|
|
3
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
4
|
+
declare const GLOB_TEST: string[];
|
|
5
|
+
declare const GLOB_EXCLUDE: string[];
|
|
6
|
+
|
|
7
|
+
export { GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_TEST };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
2
|
+
declare const GLOB_SRC_FILE = "*.?([cm])[jt]s?(x)";
|
|
3
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
4
|
+
declare const GLOB_TEST: string[];
|
|
5
|
+
declare const GLOB_EXCLUDE: string[];
|
|
6
|
+
|
|
7
|
+
export { GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_TEST };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_TEST } from '../chunk-HZVUO4DQ.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/format-config.ts
|
|
4
|
+
function formatConfig(name, config = []) {
|
|
5
|
+
return config.map((item, index) => {
|
|
6
|
+
if (!item) {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
if (item.name) {
|
|
10
|
+
return item;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
...item,
|
|
14
|
+
name: `storm/${name}#${index + 1}`
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.formatConfig = formatConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { formatConfig } from '../chunk-PRECUC4G.js';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/combine.ts
|
|
4
|
+
function isObject(value) {
|
|
5
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
6
|
+
}
|
|
7
|
+
function deepMerge(target, source) {
|
|
8
|
+
const out = { ...target };
|
|
9
|
+
for (const [key, value] of Object.entries(source)) {
|
|
10
|
+
if (value == null) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
const current = out[key];
|
|
14
|
+
if (Array.isArray(value) && Array.isArray(current)) {
|
|
15
|
+
out[key] = [...current, ...value];
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
if (isObject(value) && isObject(current)) {
|
|
19
|
+
out[key] = deepMerge(
|
|
20
|
+
current,
|
|
21
|
+
value
|
|
22
|
+
);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
out[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
29
|
+
async function combine(...configs) {
|
|
30
|
+
const resolved = await Promise.all(configs);
|
|
31
|
+
return resolved.filter(Boolean).reduce((acc, current) => {
|
|
32
|
+
return deepMerge(
|
|
33
|
+
acc,
|
|
34
|
+
current
|
|
35
|
+
);
|
|
36
|
+
}, {});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/utils/constants.ts
|
|
40
|
+
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
41
|
+
var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
|
|
42
|
+
var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
|
|
43
|
+
var GLOB_TEST = [
|
|
44
|
+
`**/__tests__/**/*.${GLOB_SRC_EXT}`,
|
|
45
|
+
`**/*.spec.${GLOB_SRC_EXT}`,
|
|
46
|
+
`**/*.test.${GLOB_SRC_EXT}`,
|
|
47
|
+
`**/*.bench.${GLOB_SRC_EXT}`,
|
|
48
|
+
`**/*.benchmark.${GLOB_SRC_EXT}`
|
|
49
|
+
];
|
|
50
|
+
var GLOB_EXCLUDE = [
|
|
51
|
+
"**/.git",
|
|
52
|
+
"**/node_modules",
|
|
53
|
+
"**/dist",
|
|
54
|
+
"**/tmp",
|
|
55
|
+
"**/coverage",
|
|
56
|
+
"**/bench",
|
|
57
|
+
"**/__snapshots__",
|
|
58
|
+
"**/__test__",
|
|
59
|
+
"**/__mocks__",
|
|
60
|
+
"**/__generated__",
|
|
61
|
+
"**/.nx",
|
|
62
|
+
"**/.next",
|
|
63
|
+
"**/.storm",
|
|
64
|
+
"**/.wrangler",
|
|
65
|
+
"**/.rolldown",
|
|
66
|
+
"**/.cache",
|
|
67
|
+
"**/.history",
|
|
68
|
+
"**/.idea",
|
|
69
|
+
"**/.vscode",
|
|
70
|
+
"**/.yarn",
|
|
71
|
+
"**/.pnp.*",
|
|
72
|
+
"**/yarn.lock",
|
|
73
|
+
"**/pnpm-lock.yaml",
|
|
74
|
+
"**/package-lock.json",
|
|
75
|
+
"**/bun.lockb",
|
|
76
|
+
"**/*.min.*",
|
|
77
|
+
"**/next-env.d.ts",
|
|
78
|
+
"**/CHANGELOG*.md",
|
|
79
|
+
"**/CONTRIBUTING.md",
|
|
80
|
+
"**/SECURITY.md",
|
|
81
|
+
"**/CODE_OF_CONDUCT.md",
|
|
82
|
+
"**/PULL_REQUEST_TEMPLATE.md",
|
|
83
|
+
"**/LICENSE*",
|
|
84
|
+
".agents/**/*",
|
|
85
|
+
"**/.agents/**/*",
|
|
86
|
+
".claude/**/*",
|
|
87
|
+
"**/.claude/**/*",
|
|
88
|
+
".codex/**/*",
|
|
89
|
+
"**/.codex/**/*",
|
|
90
|
+
".cursor/**/*",
|
|
91
|
+
"**/.cursor/**/*",
|
|
92
|
+
".opencode/**/*",
|
|
93
|
+
"**/.opencode/**/*"
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
// src/utils/format-config.ts
|
|
97
|
+
function formatConfig(name, config = []) {
|
|
98
|
+
return config.map((item, index) => {
|
|
99
|
+
if (!item) {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
if (item.name) {
|
|
103
|
+
return item;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
...item,
|
|
107
|
+
name: `storm/${name}#${index + 1}`
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
exports.GLOB_EXCLUDE = GLOB_EXCLUDE;
|
|
113
|
+
exports.GLOB_SRC = GLOB_SRC;
|
|
114
|
+
exports.GLOB_SRC_EXT = GLOB_SRC_EXT;
|
|
115
|
+
exports.GLOB_SRC_FILE = GLOB_SRC_FILE;
|
|
116
|
+
exports.GLOB_TEST = GLOB_TEST;
|
|
117
|
+
exports.combine = combine;
|
|
118
|
+
exports.formatConfig = formatConfig;
|