@shibanet0/datamitsu-config 0.0.1-alpha-25 → 0.0.1-alpha-27

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/datamitsu.js CHANGED
@@ -1789,7 +1789,7 @@ var mapOfApps = {
1789
1789
 
1790
1790
  // package.json
1791
1791
  var name = "@shibanet0/datamitsu-config";
1792
- var version = "0.0.1-alpha-23";
1792
+ var version = "0.0.1-alpha-27";
1793
1793
  var dependencies = {
1794
1794
  "@antebudimir/eslint-plugin-vanilla-extract": "1.16.0",
1795
1795
  "@commander-js/extra-typings": "14.0.0",
@@ -2984,18 +2984,18 @@ var eslintGlobs = [
2984
2984
  "**/*.yml"
2985
2985
  ];
2986
2986
  var prettierGlobs = [
2987
- // ...eslintGlobs,
2988
- // "**/*.js",
2989
- // "**/*.mjs",
2990
- // "**/*.cjs",
2991
- // "**/*.d.ts",
2992
- // "**/*.ts",
2993
- // "**/*.mts",
2994
- // "**/*.cts",
2995
- // "**/*.tsx",
2996
- // "**/*.json",
2997
- // "**/*.yaml",
2998
- // "**/*.md",
2987
+ ...eslintGlobs,
2988
+ "**/*.js",
2989
+ "**/*.mjs",
2990
+ "**/*.cjs",
2991
+ "**/*.d.ts",
2992
+ "**/*.ts",
2993
+ "**/*.mts",
2994
+ "**/*.cts",
2995
+ "**/*.tsx",
2996
+ "**/*.json",
2997
+ "**/*.yaml",
2998
+ "**/*.md"
2999
2999
  ];
3000
3000
  var oxlintGlobs = [
3001
3001
  "**/*.js",
@@ -1 +0,0 @@
1
- export {};
@@ -1,39 +1,40 @@
1
- import { readFileSync, writeFileSync } from "node:fs";
2
- import { resolve } from "node:path";
3
- const DEFAULT_FIELDS_TO_REMOVE = [
4
- "scripts",
5
- "devDependencies",
6
- "packageManager",
1
+ // src/clean-package/index.ts
2
+ import { readFileSync, writeFileSync } from "fs";
3
+ import { resolve } from "path";
4
+ var DEFAULT_FIELDS_TO_REMOVE = [
5
+ "scripts",
6
+ "devDependencies",
7
+ "packageManager"
7
8
  ];
8
- /**
9
- * Clean package.json by removing specified fields
10
- * Useful for prepack/prepublishOnly hooks
11
- */
12
- export const cleanPackage = (options = {}) => {
13
- const { dryRun = false, fieldsToRemove = DEFAULT_FIELDS_TO_REMOVE, packagePath = "package.json", } = options;
14
- const absolutePath = resolve(process.cwd(), packagePath);
15
- try {
16
- const packageJson = JSON.parse(readFileSync(absolutePath, "utf8"));
17
- const cleaned = { ...packageJson };
18
- for (const field of fieldsToRemove) {
19
- delete cleaned[field];
20
- }
21
- if (dryRun) {
22
- console.log("Dry run - would remove fields:", fieldsToRemove);
23
- console.log("Cleaned package.json:", JSON.stringify(cleaned, null, 2));
24
- return;
25
- }
26
- writeFileSync(absolutePath, JSON.stringify(cleaned, null, 2) + "\n", "utf8");
27
- console.log(`✓ Cleaned ${packagePath}, removed fields:`, fieldsToRemove);
9
+ var cleanPackage = (options = {}) => {
10
+ const {
11
+ dryRun = false,
12
+ fieldsToRemove = DEFAULT_FIELDS_TO_REMOVE,
13
+ packagePath = "package.json"
14
+ } = options;
15
+ const absolutePath = resolve(process.cwd(), packagePath);
16
+ try {
17
+ const packageJson = JSON.parse(readFileSync(absolutePath, "utf8"));
18
+ const cleaned = { ...packageJson };
19
+ for (const field of fieldsToRemove) {
20
+ delete cleaned[field];
28
21
  }
29
- catch (error) {
30
- console.error(`Error cleaning package.json:`, error);
31
- throw error;
22
+ if (dryRun) {
23
+ console.log("Dry run - would remove fields:", fieldsToRemove);
24
+ console.log("Cleaned package.json:", JSON.stringify(cleaned, null, 2));
25
+ return;
32
26
  }
27
+ writeFileSync(absolutePath, JSON.stringify(cleaned, null, 2) + "\n", "utf8");
28
+ console.log(`\u2713 Cleaned ${packagePath}, removed fields:`, fieldsToRemove);
29
+ } catch (error) {
30
+ console.error(`Error cleaning package.json:`, error);
31
+ throw error;
32
+ }
33
33
  };
34
- /**
35
- * CLI entry point
36
- */
37
- export const main = () => {
38
- cleanPackage();
34
+ var main = () => {
35
+ cleanPackage();
36
+ };
37
+ export {
38
+ cleanPackage,
39
+ main
39
40
  };
@@ -1,7 +1,11 @@
1
+ // src/commitlint/index.ts
1
2
  import configConventional from "@commitlint/config-conventional";
2
- import {} from "@commitlint/types";
3
- export const config = {
4
- ...configConventional,
5
- formatter: import.meta.resolve("@commitlint/format"),
6
- parserPreset: import.meta.resolve("conventional-changelog-conventionalcommits"),
3
+ import "@commitlint/types";
4
+ var config = {
5
+ ...configConventional,
6
+ formatter: import.meta.resolve("@commitlint/format"),
7
+ parserPreset: import.meta.resolve("conventional-changelog-conventionalcommits")
8
+ };
9
+ export {
10
+ config
7
11
  };
@@ -1,194 +1,216 @@
1
+ import {
2
+ GLOB_EXCLUDE
3
+ } from "../chunk-OYKSRJ7A.js";
4
+
5
+ // src/eslint/index.ts
1
6
  import { FlatConfigComposer } from "eslint-flat-config-utils";
2
7
  import { globalIgnores } from "eslint/config";
3
- import { GLOB_EXCLUDE } from "./globs";
4
- export { globalIgnores } from "@eslint/config-helpers";
5
- const defaultOptions = {
8
+ import { globalIgnores as globalIgnores2 } from "@eslint/config-helpers";
9
+ var defaultOptions = {
10
+ plugins: {
11
+ turbo: { disabled: true }
12
+ }
13
+ };
14
+ var defineConfig = async (packageJSON, config, options) => {
15
+ const start = Date.now();
16
+ const _options = {
17
+ ...defaultOptions,
18
+ ...options,
6
19
  plugins: {
7
- turbo: { disabled: true },
8
- },
20
+ ...defaultOptions.plugins,
21
+ ...options?.plugins,
22
+ "arrow-return-style": { disabled: true },
23
+ compat: { disabled: true },
24
+ depend: { disabled: true },
25
+ n: { disabled: true },
26
+ "no-unsanitized": { disabled: true },
27
+ "no-use-extend-native": { disabled: true },
28
+ // "react-you-might-not-need-an-effect": { disabled: true },
29
+ regexp: { disabled: true },
30
+ "vanilla-extract": { disabled: true }
31
+ }
32
+ };
33
+ console.log(JSON.stringify(_options.plugins));
34
+ const deps = {
35
+ ...packageJSON?.dependencies,
36
+ ...packageJSON?.devDependencies,
37
+ ...packageJSON?.peerDependencies,
38
+ ...packageJSON?.optionalDependencies
39
+ };
40
+ const depsKeys = Object.keys(deps);
41
+ const isReactEnabled = depsKeys.find(
42
+ (el) => el.startsWith("react-") || el === "@types/react" || el === "react"
43
+ );
44
+ const enableReact = options?.react === void 0 ? isReactEnabled : options.react;
45
+ const configs = [
46
+ [Promise.resolve(globalIgnores(GLOB_EXCLUDE, "shibanet0/ignores"))],
47
+ import("../javascript-KSG5RSYY.js").then((r) => r.javascript()),
48
+ import("../typescript-KIXWXTZM.js").then((r) => r.typescript())
49
+ ];
50
+ if (!_options?.plugins?.["command"]?.disabled) {
51
+ configs.push(import("../command-3BA63SHO.js").then((r) => r.command()));
52
+ }
53
+ if (!_options?.plugins?.["unicorn"]?.disabled) {
54
+ configs.push(import("../unicorn-DIQEKCM2.js").then((r) => r.unicorn()));
55
+ }
56
+ if (!_options?.plugins?.["sonarjs"]?.disabled) {
57
+ configs.push(import("../sonarjs-C2LXDRJS.js").then((r) => r.sonarjs()));
58
+ }
59
+ if (!_options?.plugins?.["clsx"]?.disabled) {
60
+ configs.push(import("../clsx-M6OKU3PA.js").then((r) => r.clsx()));
61
+ }
62
+ if (!_options?.plugins?.["deMorgan"]?.disabled) {
63
+ configs.push(import("../deMorgan-X5NIQJEB.js").then((r) => r.deMorgan()));
64
+ }
65
+ if (!_options?.plugins?.["perfectionist"]?.disabled) {
66
+ configs.push(import("../perfectionist-RCGRE2N4.js").then((r) => r.perfectionist()));
67
+ }
68
+ if (!_options?.plugins?.["eslint-plugin-array-func"]?.disabled) {
69
+ configs.push(import("../arrayFunc-E2CQDPH7.js").then((r) => r.arrayFunc()));
70
+ }
71
+ if (!_options?.plugins?.["unused-imports"]?.disabled) {
72
+ configs.push(import("../unused-imports-B24FSXNB.js").then((r) => r.unusedImports()));
73
+ }
74
+ if (!_options?.plugins?.["fsecond"]?.disabled) {
75
+ configs.push(import("../fsecond-U7QFID4J.js").then((r) => r.fsecond()));
76
+ }
77
+ if (!_options?.plugins?.import?.disabled) {
78
+ configs.push(import("../import-MT776CTN.js").then((r) => r.pluginImport()));
79
+ }
80
+ if (!_options?.plugins?.yml?.disabled) {
81
+ configs.push(import("../yml-EIKYT3P5.js").then((r) => r.yml()));
82
+ }
83
+ if (!_options?.plugins?.regexp?.disabled) {
84
+ configs.push(import("../regexp-D6CKMCXH.js").then((r) => r.regexp()));
85
+ }
86
+ if (!_options?.plugins?.promise?.disabled) {
87
+ configs.push(import("../promise-IOLHNOYU.js").then((r) => r.promise()));
88
+ }
89
+ if (!_options?.plugins?.turbo?.disabled) {
90
+ configs.push(import("../turbo-3YMDV64X.js").then((r) => r.turbo()));
91
+ }
92
+ if (!_options?.plugins?.depend?.disabled) {
93
+ configs.push(import("../depend-4TLGRJ4A.js").then((r) => r.depend()));
94
+ }
95
+ if (!_options?.plugins?.boundaries?.disabled) {
96
+ configs.push(import("../boundaries-7E4X4KF5.js").then((r) => r.boundaries()));
97
+ }
98
+ if (!_options?.plugins?.["no-use-extend-native"]?.disabled) {
99
+ configs.push(import("../no-use-extend-native-W3ODJIMY.js").then((r) => r.noUseExtendNative()));
100
+ }
101
+ if (!_options?.plugins?.["security"]?.disabled) {
102
+ configs.push(import("../security-4AI7Q2BJ.js").then((r) => r.security()));
103
+ }
104
+ if (!_options?.plugins?.["prettier"]?.disabled) {
105
+ configs.push(import("../prettier-3BKAYVNG.js").then((r) => r.prettier()));
106
+ }
107
+ if (!_options?.plugins?.["arrow-return-style"]?.disabled) {
108
+ configs.push(import("../arrow-return-style-QXEK7JRB.js").then((r) => r.arrowReturnStyle()));
109
+ }
110
+ if (!_options?.plugins?.["vanilla-extract"]?.disabled) {
111
+ configs.push(import("../vanilla-extract-3GUV75D2.js").then((r) => r.vanillaExtract()));
112
+ }
113
+ if (!_options?.plugins?.["playwright"]?.disabled) {
114
+ configs.push(import("../playwright-MAN5QZRB.js").then((r) => r.playwright()));
115
+ }
116
+ if (!_options?.plugins?.["n"]?.disabled) {
117
+ configs.push(import("../n-CF27VQ2A.js").then((r) => r.n()));
118
+ }
119
+ if (!_options?.plugins?.["toml"]?.disabled) {
120
+ configs.push(import("../toml-LIBZFTGW.js").then((r) => r.toml()));
121
+ }
122
+ if (!_options?.plugins?.["no-unsanitized"]?.disabled) {
123
+ configs.push(import("../no-unsanitized-2CVGQCKY.js").then((r) => r.noUnsanitized()));
124
+ }
125
+ if (!_options?.plugins?.["json"]?.disabled) {
126
+ configs.push(import("../json-ADTCTMIQ.js").then((r) => r.json()));
127
+ }
128
+ if (!_options?.plugins?.["jsdoc"]?.disabled) {
129
+ configs.push(import("../jsdoc-T3RUTVU2.js").then((r) => r.jsdoc()));
130
+ }
131
+ if (!_options?.plugins?.["compat"]?.disabled) {
132
+ configs.push(import("../compat-6O7XHMYR.js").then((r) => r.compat()));
133
+ }
134
+ if (!_options?.plugins?.["json-schema-validator"]?.disabled) {
135
+ configs.push(import("../json-schema-validator-KJQPYPV7.js").then((r) => r.jsonSchemaValidator()));
136
+ }
137
+ if (!_options?.plugins?.["pnpm"]?.disabled) {
138
+ configs.push(import("../pnpm-KEJEST6B.js").then((r) => r.pnpm()));
139
+ }
140
+ if (!_options?.plugins?.["i18next"]?.disabled) {
141
+ configs.push(import("../i18next-XPRQSLOK.js").then((r) => r.i18next()));
142
+ }
143
+ if (!_options?.plugins?.["escompat"]?.disabled) {
144
+ configs.push(import("../escompat-2HZB2VKK.js").then((r) => r.escompat()));
145
+ }
146
+ if (!_options?.plugins?.["html"]?.disabled) {
147
+ configs.push(import("../html-Q7HLWKMH.js").then((r) => r.html()));
148
+ }
149
+ if (!_options?.plugins?.["jsonc"]?.disabled) {
150
+ configs.push(import("../jsonc-5WI2LEKI.js").then((r) => r.jsonc()));
151
+ }
152
+ if (!_options?.plugins?.["vitest"]?.disabled) {
153
+ configs.push(import("../vitest-OL2AMOGF.js").then((r) => r.vitest()));
154
+ }
155
+ if (!_options?.plugins?.["cspell"]?.disabled) {
156
+ configs.push(import("../cspell-NJAMCYWA.js").then((r) => r.cspell()));
157
+ }
158
+ if (enableReact) {
159
+ if (!_options?.plugins?.["react"]?.disabled) {
160
+ configs.push(
161
+ import("../react-ZSFMBR63.js").then(
162
+ (r) => r.react({
163
+ ...options?.plugins?.react,
164
+ version: options?.plugins?.react?.version || deps["react"]
165
+ })
166
+ )
167
+ );
168
+ }
169
+ if (!_options?.plugins?.["react-you-might-not-need-an-effect"]?.disabled) {
170
+ configs.push(
171
+ import("../react-you-might-not-need-an-effect-7LQCVBLO.js").then(
172
+ (r) => r.reactYouMightNotNeedAnEffect()
173
+ )
174
+ );
175
+ }
176
+ if (!_options?.plugins?.["react-prefer-function-component"]?.disabled) {
177
+ configs.push(
178
+ import("../react-prefer-function-component-NSMHVGIJ.js").then(
179
+ (r) => r.reactPreferFunctionComponent()
180
+ )
181
+ );
182
+ }
183
+ if (!_options?.plugins?.["jsx-a11y"]?.disabled) {
184
+ configs.push(import("../jsx-a11y-36UJHF7N.js").then((r) => r.jsxA11y()));
185
+ }
186
+ if (!_options?.plugins?.["react-hooks"]?.disabled) {
187
+ configs.push(import("../react-hooks-E3N7RURQ.js").then((r) => r.reactHooks()));
188
+ }
189
+ if (!_options?.plugins?.["react-perf"]?.disabled) {
190
+ configs.push(import("../react-perf-3ZUXZLBE.js").then((r) => r.reactPerf()));
191
+ }
192
+ if (!_options?.plugins?.["storybook"]?.disabled) {
193
+ configs.push(import("../storybook-JDINFFX5.js").then((r) => r.storybook()));
194
+ }
195
+ if (!_options?.plugins?.["react-refresh"]?.disabled) {
196
+ configs.push(import("../react-refresh-RTFXBPGX.js").then((r) => r.reactRefresh()));
197
+ }
198
+ }
199
+ if (!_options?.plugins?.["stylistic"]?.disabled) {
200
+ configs.push(import("../stylistic-ID5P6T22.js").then((r) => r.stylistic()));
201
+ }
202
+ const resolved = await Promise.all(configs).then((r) => r.flat());
203
+ const composer = new FlatConfigComposer();
204
+ composer.append(...resolved);
205
+ if (!_options?.plugins?.oxlint?.disabled) {
206
+ configs.push(import("../oxlint-ESXR6S2H.js").then((r) => r.oxlint(options?.plugins?.oxlint)));
207
+ }
208
+ composer.append(...config || []);
209
+ const end = Date.now();
210
+ console.log(`BUILD ESLINT CONFIG: ${end - start}ms`);
211
+ return composer;
9
212
  };
10
- export const defineConfig = async (packageJSON, config, options) => {
11
- const start = Date.now();
12
- const _options = {
13
- ...defaultOptions,
14
- ...options,
15
- plugins: {
16
- ...defaultOptions.plugins,
17
- ...options?.plugins,
18
- "arrow-return-style": { disabled: true },
19
- compat: { disabled: true },
20
- depend: { disabled: true },
21
- n: { disabled: true },
22
- "no-unsanitized": { disabled: true },
23
- "no-use-extend-native": { disabled: true },
24
- // "react-you-might-not-need-an-effect": { disabled: true },
25
- regexp: { disabled: true },
26
- "vanilla-extract": { disabled: true },
27
- },
28
- };
29
- console.log(JSON.stringify(_options.plugins));
30
- const deps = {
31
- ...packageJSON?.dependencies,
32
- ...packageJSON?.devDependencies,
33
- ...packageJSON?.peerDependencies,
34
- ...packageJSON?.optionalDependencies,
35
- };
36
- const depsKeys = Object.keys(deps);
37
- const isReactEnabled = depsKeys.find((el) => el.startsWith("react-") || el === "@types/react" || el === "react");
38
- const enableReact = options?.react === undefined ? isReactEnabled : options.react;
39
- const configs = [
40
- [Promise.resolve(globalIgnores(GLOB_EXCLUDE, "shibanet0/ignores"))],
41
- import("./plugins/javascript").then((r) => r.javascript()),
42
- import("./plugins/typescript").then((r) => r.typescript()),
43
- ];
44
- if (!_options?.plugins?.["command"]?.disabled) {
45
- configs.push(import("./plugins/command").then((r) => r.command()));
46
- }
47
- if (!_options?.plugins?.["unicorn"]?.disabled) {
48
- configs.push(import("./plugins/unicorn").then((r) => r.unicorn()));
49
- }
50
- if (!_options?.plugins?.["sonarjs"]?.disabled) {
51
- configs.push(import("./plugins/sonarjs").then((r) => r.sonarjs()));
52
- }
53
- if (!_options?.plugins?.["clsx"]?.disabled) {
54
- configs.push(import("./plugins/clsx").then((r) => r.clsx()));
55
- }
56
- if (!_options?.plugins?.["deMorgan"]?.disabled) {
57
- configs.push(import("./plugins/deMorgan").then((r) => r.deMorgan()));
58
- }
59
- if (!_options?.plugins?.["perfectionist"]?.disabled) {
60
- configs.push(import("./plugins/perfectionist").then((r) => r.perfectionist()));
61
- }
62
- if (!_options?.plugins?.["eslint-plugin-array-func"]?.disabled) {
63
- configs.push(import("./plugins/arrayFunc").then((r) => r.arrayFunc()));
64
- }
65
- if (!_options?.plugins?.["unused-imports"]?.disabled) {
66
- configs.push(import("./plugins/unused-imports").then((r) => r.unusedImports()));
67
- }
68
- if (!_options?.plugins?.["fsecond"]?.disabled) {
69
- configs.push(import("./plugins/fsecond").then((r) => r.fsecond()));
70
- }
71
- if (!_options?.plugins?.import?.disabled) {
72
- configs.push(import("./plugins/import").then((r) => r.pluginImport()));
73
- }
74
- if (!_options?.plugins?.yml?.disabled) {
75
- configs.push(import("./plugins/yml").then((r) => r.yml()));
76
- }
77
- if (!_options?.plugins?.regexp?.disabled) {
78
- configs.push(import("./plugins/regexp").then((r) => r.regexp()));
79
- }
80
- if (!_options?.plugins?.promise?.disabled) {
81
- configs.push(import("./plugins/promise").then((r) => r.promise()));
82
- }
83
- if (!_options?.plugins?.turbo?.disabled) {
84
- configs.push(import("./plugins/turbo").then((r) => r.turbo()));
85
- }
86
- if (!_options?.plugins?.depend?.disabled) {
87
- configs.push(import("./plugins/depend").then((r) => r.depend()));
88
- }
89
- if (!_options?.plugins?.boundaries?.disabled) {
90
- configs.push(import("./plugins/boundaries").then((r) => r.boundaries()));
91
- }
92
- if (!_options?.plugins?.["no-use-extend-native"]?.disabled) {
93
- configs.push(import("./plugins/no-use-extend-native").then((r) => r.noUseExtendNative()));
94
- }
95
- if (!_options?.plugins?.["security"]?.disabled) {
96
- configs.push(import("./plugins/security").then((r) => r.security()));
97
- }
98
- if (!_options?.plugins?.["prettier"]?.disabled) {
99
- configs.push(import("./plugins/prettier").then((r) => r.prettier()));
100
- }
101
- if (!_options?.plugins?.["arrow-return-style"]?.disabled) {
102
- configs.push(import("./plugins/arrow-return-style").then((r) => r.arrowReturnStyle()));
103
- }
104
- if (!_options?.plugins?.["vanilla-extract"]?.disabled) {
105
- configs.push(import("./plugins/vanilla-extract").then((r) => r.vanillaExtract()));
106
- }
107
- if (!_options?.plugins?.["playwright"]?.disabled) {
108
- configs.push(import("./plugins/playwright").then((r) => r.playwright()));
109
- }
110
- if (!_options?.plugins?.["n"]?.disabled) {
111
- configs.push(import("./plugins/n").then((r) => r.n()));
112
- }
113
- if (!_options?.plugins?.["toml"]?.disabled) {
114
- configs.push(import("./plugins/toml").then((r) => r.toml()));
115
- }
116
- if (!_options?.plugins?.["no-unsanitized"]?.disabled) {
117
- configs.push(import("./plugins/no-unsanitized").then((r) => r.noUnsanitized()));
118
- }
119
- if (!_options?.plugins?.["json"]?.disabled) {
120
- configs.push(import("./plugins/json").then((r) => r.json()));
121
- }
122
- if (!_options?.plugins?.["jsdoc"]?.disabled) {
123
- configs.push(import("./plugins/jsdoc").then((r) => r.jsdoc()));
124
- }
125
- if (!_options?.plugins?.["compat"]?.disabled) {
126
- configs.push(import("./plugins/compat").then((r) => r.compat()));
127
- }
128
- if (!_options?.plugins?.["json-schema-validator"]?.disabled) {
129
- configs.push(import("./plugins/json-schema-validator").then((r) => r.jsonSchemaValidator()));
130
- }
131
- if (!_options?.plugins?.["pnpm"]?.disabled) {
132
- configs.push(import("./plugins/pnpm").then((r) => r.pnpm()));
133
- }
134
- if (!_options?.plugins?.["i18next"]?.disabled) {
135
- configs.push(import("./plugins/i18next").then((r) => r.i18next()));
136
- }
137
- if (!_options?.plugins?.["escompat"]?.disabled) {
138
- configs.push(import("./plugins/escompat").then((r) => r.escompat()));
139
- }
140
- if (!_options?.plugins?.["html"]?.disabled) {
141
- configs.push(import("./plugins/html").then((r) => r.html()));
142
- }
143
- if (!_options?.plugins?.["jsonc"]?.disabled) {
144
- configs.push(import("./plugins/jsonc").then((r) => r.jsonc()));
145
- }
146
- if (!_options?.plugins?.["vitest"]?.disabled) {
147
- configs.push(import("./plugins/vitest").then((r) => r.vitest()));
148
- }
149
- if (!_options?.plugins?.["cspell"]?.disabled) {
150
- configs.push(import("./plugins/cspell").then((r) => r.cspell()));
151
- }
152
- if (enableReact) {
153
- if (!_options?.plugins?.["react"]?.disabled) {
154
- configs.push(import("./plugins/react").then((r) => r.react({
155
- ...options?.plugins?.react,
156
- version: options?.plugins?.react?.version || deps["react"],
157
- })));
158
- }
159
- if (!_options?.plugins?.["react-you-might-not-need-an-effect"]?.disabled) {
160
- configs.push(import("./plugins/react-you-might-not-need-an-effect").then((r) => r.reactYouMightNotNeedAnEffect()));
161
- }
162
- if (!_options?.plugins?.["react-prefer-function-component"]?.disabled) {
163
- configs.push(import("./plugins/react-prefer-function-component").then((r) => r.reactPreferFunctionComponent()));
164
- }
165
- if (!_options?.plugins?.["jsx-a11y"]?.disabled) {
166
- configs.push(import("./plugins/jsx-a11y").then((r) => r.jsxA11y()));
167
- }
168
- if (!_options?.plugins?.["react-hooks"]?.disabled) {
169
- configs.push(import("./plugins/react-hooks").then((r) => r.reactHooks()));
170
- }
171
- if (!_options?.plugins?.["react-perf"]?.disabled) {
172
- configs.push(import("./plugins/react-perf").then((r) => r.reactPerf()));
173
- }
174
- if (!_options?.plugins?.["storybook"]?.disabled) {
175
- configs.push(import("./plugins/storybook").then((r) => r.storybook()));
176
- }
177
- if (!_options?.plugins?.["react-refresh"]?.disabled) {
178
- configs.push(import("./plugins/react-refresh").then((r) => r.reactRefresh()));
179
- }
180
- }
181
- if (!_options?.plugins?.["stylistic"]?.disabled) {
182
- configs.push(import("./plugins/stylistic").then((r) => r.stylistic()));
183
- }
184
- const resolved = await Promise.all(configs).then((r) => r.flat());
185
- const composer = new FlatConfigComposer();
186
- composer.append(...resolved);
187
- if (!_options?.plugins?.oxlint?.disabled) {
188
- configs.push(import("./plugins/oxlint").then((r) => r.oxlint(options?.plugins?.oxlint)));
189
- }
190
- composer.append(...(config || []));
191
- const end = Date.now();
192
- console.log(`BUILD ESLINT CONFIG: ${end - start}ms`);
193
- return composer;
213
+ export {
214
+ defineConfig,
215
+ globalIgnores2 as globalIgnores
194
216
  };
@@ -1,4 +1,8 @@
1
- export const config = {
2
- entry: ["src/index.ts"],
3
- project: ["src/**/*.ts"],
1
+ // src/knip/index.ts
2
+ var config = {
3
+ entry: ["src/index.ts"],
4
+ project: ["src/**/*.ts"]
5
+ };
6
+ export {
7
+ config
4
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shibanet0/datamitsu-config",
3
- "version": "0.0.1-alpha-25",
3
+ "version": "0.0.1-alpha-27",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",