@shibanet0/datamitsu-config 0.0.1-alpha-11 → 0.0.1-alpha-13

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 (74) hide show
  1. package/bin/datamitsu.mjs +2 -5
  2. package/bin/mitsu.mjs +52 -0
  3. package/bin/tsc.mjs +2 -2
  4. package/datamitsu.js +1995 -777
  5. package/dist/arrayFunc-E2CQDPH7.js +24 -0
  6. package/dist/arrow-return-style-EWYINZUP.js +10 -0
  7. package/dist/boundaries-HC23RTYZ.js +10 -0
  8. package/dist/chunk-USDUPVZD.js +51 -0
  9. package/dist/commitlint/index.d.ts +2 -2
  10. package/dist/compat-4UCY3ESX.js +10 -0
  11. package/dist/datamitsu-config/apps.d.ts +1 -0
  12. package/dist/datamitsu-config/cmdInit.d.ts +2 -0
  13. package/dist/datamitsu-config/constants.d.ts +4 -0
  14. package/dist/datamitsu-config/hooks.d.ts +1 -0
  15. package/dist/datamitsu-config/main.d.ts +1 -0
  16. package/dist/datamitsu-config/project.d.ts +1 -0
  17. package/dist/datamitsu-config/tools.d.ts +1 -0
  18. package/dist/datamitsu-config/utils/cleanDependencies.d.ts +2 -1
  19. package/dist/deMorgan-X5NIQJEB.js +18 -0
  20. package/dist/depend-77SBD4XZ.js +10 -0
  21. package/dist/depend-TTKNVDIS.js +10 -0
  22. package/dist/eslint/index.js +133 -892
  23. package/dist/eslint/plugins/arrow-return-style.d.ts +2 -0
  24. package/dist/eslint/plugins/boundaries.d.ts +2 -0
  25. package/dist/eslint/plugins/compat.d.ts +2 -0
  26. package/dist/eslint/plugins/depend.d.ts +2 -0
  27. package/dist/eslint/plugins/jsdoc.d.ts +2 -0
  28. package/dist/eslint/plugins/json-schema-validator.d.ts +2 -2
  29. package/dist/eslint/plugins/json.d.ts +2 -2
  30. package/dist/eslint/plugins/n.d.ts +0 -2
  31. package/dist/eslint/plugins/no-unsanitized.d.ts +2 -0
  32. package/dist/eslint/plugins/playwright.d.ts +2 -2
  33. package/dist/eslint/plugins/prettier.d.ts +2 -2
  34. package/dist/eslint/plugins/react-you-might-not-need-an-effect.d.ts +2 -0
  35. package/dist/eslint/plugins/react.d.ts +1 -1
  36. package/dist/eslint/plugins/regexp.d.ts +2 -0
  37. package/dist/eslint/plugins/toml.d.ts +2 -2
  38. package/dist/eslint/plugins/vanilla-extract.d.ts +2 -2
  39. package/dist/eslint/plugins/yaml.d.ts +2 -2
  40. package/dist/eslint/plugins/yml.d.ts +2 -2
  41. package/dist/eslint/types.d.ts +23 -4
  42. package/dist/import-MT776CTN.js +31 -0
  43. package/dist/javascript-KSG5RSYY.js +36 -0
  44. package/dist/jsdoc-ETFYVH7N.js +10 -0
  45. package/dist/json-ADTCTMIQ.js +28 -0
  46. package/dist/json-schema-validator-KJQPYPV7.js +19 -0
  47. package/dist/jsx-a11y-36UJHF7N.js +26 -0
  48. package/dist/n-CF27VQ2A.js +19 -0
  49. package/dist/no-unsanitized-JJCCLDDN.js +10 -0
  50. package/dist/no-use-extend-native-W3ODJIMY.js +19 -0
  51. package/dist/perfectionist-RCGRE2N4.js +99 -0
  52. package/dist/playwright-MAN5QZRB.js +19 -0
  53. package/dist/prettier/index.d.ts +2 -1
  54. package/dist/prettier/index.js +11 -8
  55. package/dist/prettier-3BKAYVNG.js +18 -0
  56. package/dist/promise-IOLHNOYU.js +25 -0
  57. package/dist/react-FQDLJSLF.js +66 -0
  58. package/dist/react-hooks-E3N7RURQ.js +18 -0
  59. package/dist/react-perf-3ZUXZLBE.js +18 -0
  60. package/dist/react-prefer-function-component-NSMHVGIJ.js +19 -0
  61. package/dist/react-refresh-RTFXBPGX.js +18 -0
  62. package/dist/react-you-might-not-need-an-effect-5O54WHDE.js +10 -0
  63. package/dist/regexp-JVKIJGCV.js +10 -0
  64. package/dist/security-4AI7Q2BJ.js +24 -0
  65. package/dist/sonarjs-C2LXDRJS.js +42 -0
  66. package/dist/storybook-JDINFFX5.js +19 -0
  67. package/dist/toml-LIBZFTGW.js +19 -0
  68. package/dist/turbo-3YMDV64X.js +19 -0
  69. package/dist/typescript-6S3HNHEQ.js +42 -0
  70. package/dist/unicorn-DIQEKCM2.js +62 -0
  71. package/dist/unused-imports-Q4RVNVNE.js +29 -0
  72. package/dist/vanilla-extract-3GUV75D2.js +21 -0
  73. package/dist/yml-EIKYT3P5.js +25 -0
  74. package/package.json +15 -4
package/bin/datamitsu.mjs CHANGED
@@ -8,7 +8,7 @@ import { getBinaryFilepath } from "./utils.mjs";
8
8
  const arguments_ = process.argv.slice(2);
9
9
 
10
10
  if (!arguments_.includes("--binary-command")) {
11
- arguments_.unshift("--binary-command", "datamitsu");
11
+ arguments_.unshift("--binary-command", "pnpm datamitsu");
12
12
  }
13
13
 
14
14
  const child = spawn(
@@ -32,10 +32,7 @@ const child = spawn(
32
32
  "../cli.js",
33
33
  ),
34
34
  DATAMITSU_APP_SYNCPACK_BINARY_FILEPATH: getBinaryFilepath("syncpack/index.cjs", ""),
35
- DATAMITSU_APP_TSC_BINARY_FILEPATH: getBinaryFilepath(
36
- "@typescript/native-preview/package.json",
37
- "../bin/tsgo.js",
38
- ),
35
+ DATAMITSU_APP_TSC_BINARY_FILEPATH: getBinaryFilepath("typescript/package.json", "../bin/tsc"),
39
36
  DATAMITSU_PACKAGE_NAME: process.env.DATAMITSU_PACKAGE_NAME || "@shibanet0/datamitsu-config",
40
37
  },
41
38
  stdio: "inherit",
package/bin/mitsu.mjs ADDED
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from "node:child_process";
4
+ import { join } from "node:path";
5
+
6
+ let currentChild = null;
7
+
8
+ function run(args) {
9
+ return new Promise((resolve, reject) => {
10
+ const child = spawn("node", [join(import.meta.dirname, "datamitsu.mjs"), ...args], {
11
+ stdio: "inherit",
12
+ });
13
+
14
+ currentChild = child;
15
+
16
+ child.on("exit", (code, signal) => {
17
+ currentChild = null;
18
+
19
+ if (signal) {
20
+ reject(signal);
21
+ } else if (code === 0) {
22
+ resolve();
23
+ } else {
24
+ reject(code);
25
+ }
26
+ });
27
+
28
+ child.on("error", reject);
29
+ });
30
+ }
31
+
32
+ // graceful shutdown
33
+ function shutdown(signal) {
34
+ if (currentChild) {
35
+ currentChild.kill(signal);
36
+ }
37
+ process.exit(128 + (signal === "SIGINT" ? 2 : 15));
38
+ }
39
+
40
+ process.on("SIGINT", shutdown);
41
+ process.on("SIGTERM", shutdown);
42
+ process.on("SIGHUP", shutdown);
43
+
44
+ try {
45
+ await run(["fix"]);
46
+ await run(["lint"]);
47
+ } catch (error) {
48
+ if (typeof error === "number") {
49
+ process.exit(error);
50
+ }
51
+ process.exit(1);
52
+ }
package/bin/tsc.mjs CHANGED
@@ -7,8 +7,8 @@ import { getBinaryFilepath } from "./utils.mjs";
7
7
  const args = process.argv.slice(2);
8
8
 
9
9
  const child = spawn(
10
- "node",
11
- [getBinaryFilepath("@typescript/native-preview/package.json", "../bin/tsgo.js"), ...args],
10
+ getBinaryFilepath("@typescript/native-preview/package.json", "../bin/tsc"),
11
+ args,
12
12
  {
13
13
  stdio: "inherit",
14
14
  },