@shibanet0/datamitsu-config 0.0.1-alpha-3 → 0.0.1-alpha-5

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
@@ -615,12 +615,107 @@ var appState_default = {
615
615
  }
616
616
  }
617
617
  }
618
+ },
619
+ actionlint: {
620
+ binaries: {
621
+ darwin: {
622
+ amd64: {
623
+ binaryPath: "actionlint",
624
+ contentType: "tar.gz",
625
+ hash: "f89a910e90e536f60df7c504160247db01dd67cab6f08c064c1c397b76c91a79",
626
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_darwin_amd64.tar.gz"
627
+ },
628
+ arm64: {
629
+ binaryPath: "actionlint",
630
+ contentType: "tar.gz",
631
+ hash: "855e49e823fc68c6371fd6967e359cde11912d8d44fed343283c8e6e943bd789",
632
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_darwin_arm64.tar.gz"
633
+ }
634
+ },
635
+ linux: {
636
+ amd64: {
637
+ binaryPath: "actionlint",
638
+ contentType: "tar.gz",
639
+ hash: "233b280d05e100837f4af1433c7b40a5dcb306e3aa68fb4f17f8a7f45a7df7b4",
640
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_linux_amd64.tar.gz"
641
+ },
642
+ arm64: {
643
+ binaryPath: "actionlint",
644
+ contentType: "tar.gz",
645
+ hash: "6b82a3b8c808bf1bcd39a95aced22fc1a026eef08ede410f81e274af8deadbbc",
646
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_linux_arm64.tar.gz"
647
+ }
648
+ },
649
+ windows: {
650
+ amd64: {
651
+ binaryPath: "actionlint.exe",
652
+ contentType: "zip",
653
+ hash: "7c8b10a93723838bc3533f6e1886d868fdbb109b81606ebe6d1a533d11d8e978",
654
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_windows_amd64.zip"
655
+ },
656
+ arm64: {
657
+ binaryPath: "actionlint.exe",
658
+ contentType: "zip",
659
+ hash: "7aca9bf09eedf0a743e08c7cb9f1712467a7324a9342a029ae4536fb4be95c25",
660
+ url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_windows_arm64.zip"
661
+ }
662
+ }
663
+ },
664
+ tag: "v1.7.9",
665
+ type: "github"
666
+ },
667
+ typos: {
668
+ binaries: {
669
+ darwin: {
670
+ amd64: {
671
+ binaryPath: "typos",
672
+ contentType: "tar.gz",
673
+ hash: "51368551a37e15464438ea5c95ad29cb7239bfdefd69ee9a9be5ff3d45fc4d19",
674
+ url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-apple-darwin.tar.gz"
675
+ },
676
+ arm64: {
677
+ binaryPath: "typos",
678
+ contentType: "tar.gz",
679
+ hash: "1ea9ed6520b94d0e1148942e3ef80a997ff8db856e1389edaa9a5bdaff658fa4",
680
+ url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-aarch64-apple-darwin.tar.gz"
681
+ }
682
+ },
683
+ linux: {
684
+ amd64: {
685
+ binaryPath: "typos",
686
+ contentType: "tar.gz",
687
+ hash: "485405d0a92871f45ead0703d23c04ae6969ad4a6e5799794f55eb04b9f07801",
688
+ url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-unknown-linux-musl.tar.gz"
689
+ },
690
+ arm64: {
691
+ binaryPath: "typos",
692
+ contentType: "tar.gz",
693
+ hash: "349b2c3f7c7fba125e978df232faa9c5a57c33aa144f88cbc250c8c6d3e8e054",
694
+ url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-aarch64-unknown-linux-musl.tar.gz"
695
+ }
696
+ },
697
+ windows: {
698
+ amd64: {
699
+ binaryPath: "typos.exe",
700
+ contentType: "zip",
701
+ hash: "f13426420749fae31136e15a245c8eb144d6d3d681b3300d54d1a129999a140d",
702
+ url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-pc-windows-msvc.zip"
703
+ }
704
+ }
705
+ },
706
+ tag: "v1.40.0",
707
+ type: "github"
618
708
  }
619
709
  };
620
710
 
621
711
  // src/datamitsu-config/apps.ts
622
712
  var appState = appState_default;
623
713
  var mapOfApps = {
714
+ actionlint: {
715
+ binary: {
716
+ binaries: appState.actionlint?.binaries || {}
717
+ }
718
+ },
624
719
  commitlint: {
625
720
  shell: {
626
721
  args: [facts().env.DATAMITSU_APP_COMMITLINT_BINARY_FILEPATH || ""],
@@ -740,6 +835,11 @@ var mapOfApps = {
740
835
  name: "node"
741
836
  }
742
837
  },
838
+ typos: {
839
+ binary: {
840
+ binaries: appState.typos?.binaries || {}
841
+ }
842
+ },
743
843
  typst: {
744
844
  binary: {
745
845
  binaries: appState.typst?.binaries || {}
@@ -761,6 +861,18 @@ var mapOfApps = {
761
861
  }
762
862
  };
763
863
 
864
+ // package.json
865
+ var name = "@shibanet0/datamitsu-config";
866
+ var version = "0.0.1-alpha-5";
867
+
868
+ // src/datamitsu-config/env.ts
869
+ var env = () => {
870
+ const _env = facts().env;
871
+ return {
872
+ DATAMITSU_DEV_MODE: _env.DATAMITSU_DEV_MODE === "true"
873
+ };
874
+ };
875
+
764
876
  // src/datamitsu-config/ignore.ts
765
877
  var ignoreGroups = {
766
878
  "Build outputs": [
@@ -1007,6 +1119,48 @@ var init = {
1007
1119
  // },
1008
1120
  // },
1009
1121
  // ];
1122
+ ".syncpackrc.json": {
1123
+ content: () => {
1124
+ return JSON.stringify(
1125
+ {
1126
+ semverGroups: [
1127
+ {
1128
+ dependencies: ["**"],
1129
+ dependencyTypes: ["**"],
1130
+ packages: ["**"],
1131
+ range: ""
1132
+ }
1133
+ ],
1134
+ versionGroups: [
1135
+ {
1136
+ dependencies: ["$LOCAL"],
1137
+ dependencyTypes: ["!local"],
1138
+ label: "use workspace protocol for local packages",
1139
+ pinVersion: "workspace:*"
1140
+ }
1141
+ ]
1142
+ },
1143
+ null,
1144
+ 2
1145
+ );
1146
+ },
1147
+ otherFileNameList: [
1148
+ ".syncpackrc",
1149
+ ".syncpackrc.json",
1150
+ ".syncpackrc.yaml",
1151
+ ".syncpackrc.yml",
1152
+ ".syncpackrc.js",
1153
+ ".syncpackrc.ts",
1154
+ ".syncpackrc.mjs",
1155
+ ".syncpackrc.cjs",
1156
+ "syncpack.config.js",
1157
+ "syncpack.config.cjs",
1158
+ "syncpack.config.ts",
1159
+ "syncpack.config.mjs"
1160
+ ],
1161
+ projectTypes: ["npm-package"],
1162
+ rootOnly: true
1163
+ },
1010
1164
  ".vscode/extensions.json": {
1011
1165
  content: (context) => {
1012
1166
  const config = JSON.parse(context.existingContent || "{}");
@@ -1018,6 +1172,7 @@ var init = {
1018
1172
  "GitHub.vscode-pull-request-github",
1019
1173
  "johnsoncodehk.vscode-tsconfig-helper",
1020
1174
  "streetsidesoftware.code-spell-checker",
1175
+ "tekumara.typos-vscode",
1021
1176
  "usernamehw.errorlens",
1022
1177
  ...config.recommendations || []
1023
1178
  ])
@@ -1089,10 +1244,10 @@ var init = {
1089
1244
  },
1090
1245
  rootOnly: true
1091
1246
  },
1092
- "commitlint.config.ts": {
1247
+ "commitlint.config.js": {
1093
1248
  content: () => {
1094
1249
  return [
1095
- `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/commitlint";`,
1250
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/commitlint${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
1096
1251
  "",
1097
1252
  "export default config;",
1098
1253
  ""
@@ -1123,10 +1278,10 @@ var init = {
1123
1278
  deleteOnly: true,
1124
1279
  otherFileNameList: [".babelrc", ".babelrc.js", "babel.config.js", ".editorconfig", ".editorconfig-checker.json"]
1125
1280
  },
1126
- "eslint.config.ts": {
1281
+ "eslint.config.js": {
1127
1282
  content: () => {
1128
1283
  return [
1129
- `import { defineConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/eslint";`,
1284
+ `import { defineConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/eslint${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
1130
1285
  "",
1131
1286
  "const config = await defineConfig();",
1132
1287
  "",
@@ -1174,14 +1329,55 @@ var init = {
1174
1329
  otherFileNameList: [".hadolint.yaml", "hadolint.yaml", ".config/hadolint.yaml", ".hadolint/hadolint.yaml"],
1175
1330
  rootOnly: true
1176
1331
  },
1177
- "knip.config.ts": {
1332
+ "knip.config.js": {
1178
1333
  content: () => {
1179
1334
  return [
1180
- `import type { KnipConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip";`,
1181
- "",
1182
- `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip";`,
1335
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
1183
1336
  "",
1184
- `const internalConfig: KnipConfig = { ...config };`,
1337
+ `const internalConfig = { ...config${env().DATAMITSU_DEV_MODE ? `, ...${JSON.stringify(
1338
+ {
1339
+ ignoreBinaries: ["bin/datamitsu.mjs"],
1340
+ ignoreDependencies: [
1341
+ "@commitlint/cli",
1342
+ "syncpack",
1343
+ "type-fest",
1344
+ "@octokit/rest",
1345
+ "publint",
1346
+ "sort-package-json",
1347
+ "eslint-config-prettier",
1348
+ "eslint-plugin-array-func",
1349
+ "eslint-plugin-import",
1350
+ "eslint-plugin-json",
1351
+ "eslint-plugin-json-schema-validator",
1352
+ "eslint-plugin-jsx-a11y",
1353
+ "eslint-plugin-n",
1354
+ "eslint-plugin-no-use-extend-native",
1355
+ "eslint-plugin-perfectionist",
1356
+ "eslint-plugin-playwright",
1357
+ "eslint-plugin-promise",
1358
+ "eslint-plugin-react",
1359
+ "eslint-plugin-react-hooks",
1360
+ "eslint-plugin-react-perf",
1361
+ "prettier-plugin-embed",
1362
+ "prettier-plugin-jsdoc",
1363
+ "prettier-plugin-sql",
1364
+ "eslint-plugin-react-prefer-function-component",
1365
+ "eslint-plugin-react-refresh",
1366
+ "eslint-plugin-security",
1367
+ "eslint-plugin-sonarjs",
1368
+ "eslint-plugin-storybook",
1369
+ "eslint-plugin-toml",
1370
+ "eslint-plugin-turbo",
1371
+ "@prettier/plugin-xml",
1372
+ "eslint-plugin-unicorn",
1373
+ "eslint-plugin-unused-imports",
1374
+ "@antebudimir/eslint-plugin-vanilla-extract",
1375
+ "eslint-plugin-yml"
1376
+ ]
1377
+ },
1378
+ null,
1379
+ 2
1380
+ )}` : ""} };`,
1185
1381
  "",
1186
1382
  "export default internalConfig;",
1187
1383
  ""
@@ -1200,6 +1396,10 @@ var init = {
1200
1396
  projectTypes: ["npm-package"],
1201
1397
  rootOnly: true
1202
1398
  },
1399
+ // ".editorconfig-checker.json": {
1400
+ // rootOnly: true,
1401
+ // content: (context) => {
1402
+ // const data = JSON.parse(context.existingContent || "{}");
1203
1403
  "lefthook.yaml": {
1204
1404
  content: (context) => {
1205
1405
  const existing = YAML.parse(context.existingContent || "");
@@ -1216,15 +1416,16 @@ var init = {
1216
1416
  commands: {
1217
1417
  ...existing?.["pre-commit"]?.commands,
1218
1418
  [`${facts().packageName}-fix`]: {
1219
- priority: 0,
1419
+ priority: 1,
1220
1420
  run: `${facts().binaryCommand} fix {staged_files}`,
1221
1421
  stage_fixed: true
1222
1422
  },
1223
1423
  [`${facts().packageName}-lint`]: {
1224
- priority: 1,
1424
+ priority: 2,
1225
1425
  run: `${facts().binaryCommand} lint`
1226
1426
  }
1227
- }
1427
+ },
1428
+ parallel: false
1228
1429
  }
1229
1430
  });
1230
1431
  },
@@ -1243,10 +1444,46 @@ var init = {
1243
1444
  ],
1244
1445
  rootOnly: true
1245
1446
  },
1246
- // ".editorconfig-checker.json": {
1247
- // rootOnly: true,
1248
- // content: (context) => {
1249
- // const data = JSON.parse(context.existingContent || "{}");
1447
+ "package.json": {
1448
+ content: ({ existingContent, isRoot }) => {
1449
+ const data = JSON.parse(existingContent || "{}");
1450
+ return JSON.stringify(
1451
+ {
1452
+ ...data,
1453
+ eslintConfig: void 0,
1454
+ prettier: void 0,
1455
+ scripts: {
1456
+ ...data.scripts,
1457
+ ...isRoot ? {
1458
+ postinstall: env().DATAMITSU_DEV_MODE ? "pnpm build:lib && pnpm datamitsu init" : "datamitsu init"
1459
+ } : {},
1460
+ ...env().DATAMITSU_DEV_MODE ? {
1461
+ fix: "pnpm datamitsu fix",
1462
+ lint: "pnpm datamitsu lint"
1463
+ } : {
1464
+ fix: "datamitsu fix",
1465
+ lint: "datamitsu lint"
1466
+ }
1467
+ },
1468
+ syncpack: void 0,
1469
+ type: "module",
1470
+ ...typeof data.config === "object" ? {
1471
+ config: {
1472
+ ...data.config,
1473
+ syncpack: void 0
1474
+ }
1475
+ } : {},
1476
+ devDependencies: {
1477
+ ...data.devDependencies,
1478
+ ...env().DATAMITSU_DEV_MODE ? {} : { [name]: version }
1479
+ }
1480
+ },
1481
+ null,
1482
+ 2
1483
+ );
1484
+ },
1485
+ projectTypes: ["npm-package"]
1486
+ },
1250
1487
  "pnpm-workspace.yaml": {
1251
1488
  content: (context) => {
1252
1489
  const existing = YAML.parse(context.existingContent || "");
@@ -1289,10 +1526,10 @@ var init = {
1289
1526
  // return INI.stringify(data);
1290
1527
  // },
1291
1528
  // },
1292
- "prettier.config.ts": {
1529
+ "prettier.config.js": {
1293
1530
  content: () => {
1294
1531
  return [
1295
- `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/prettier";`,
1532
+ `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/prettier${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
1296
1533
  "",
1297
1534
  "export default config;",
1298
1535
  ""
@@ -1319,32 +1556,6 @@ var init = {
1319
1556
  ".prettierrc.toml"
1320
1557
  ],
1321
1558
  projectTypes: ["npm-package"]
1322
- },
1323
- "syncpack.config.ts": {
1324
- content: () => {
1325
- return [
1326
- `import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/syncpack";`,
1327
- "",
1328
- "export default config;",
1329
- ""
1330
- ].join("\n");
1331
- },
1332
- otherFileNameList: [
1333
- ".syncpackrc",
1334
- ".syncpackrc.json",
1335
- ".syncpackrc.yaml",
1336
- ".syncpackrc.yml",
1337
- ".syncpackrc.js",
1338
- ".syncpackrc.ts",
1339
- ".syncpackrc.mjs",
1340
- ".syncpackrc.cjs",
1341
- "syncpack.config.js",
1342
- "syncpack.config.cjs",
1343
- "syncpack.config.ts",
1344
- "syncpack.config.mjs"
1345
- ],
1346
- projectTypes: ["npm-package"],
1347
- rootOnly: true
1348
1559
  }
1349
1560
  };
1350
1561
  var initCommands = {
@@ -1413,7 +1624,7 @@ var toolsConfig = {
1413
1624
  name: "Eslint",
1414
1625
  operations: {
1415
1626
  fix: {
1416
- args: ["--fix", "--quiet", "--config", tools.Path.join(facts().cwd, "eslint.config.ts"), "{file}"],
1627
+ args: ["--fix", "--quiet", "--config", tools.Path.join(facts().cwd, "eslint.config.js"), "{file}"],
1417
1628
  command: "eslint",
1418
1629
  globs: eslintGlobs,
1419
1630
  mode: "per-file",
@@ -1465,7 +1676,7 @@ var toolsConfig = {
1465
1676
  name: "Knip",
1466
1677
  operations: {
1467
1678
  lint: {
1468
- args: ["--config", tools.Path.join(facts().gitRoot, "knip.config.ts")],
1679
+ args: ["--config", tools.Path.join(facts().gitRoot, "knip.config.js")],
1469
1680
  command: "knip",
1470
1681
  globs: [],
1471
1682
  mode: "whole-project"
@@ -1477,7 +1688,7 @@ var toolsConfig = {
1477
1688
  name: "Prettier - Code Formatter",
1478
1689
  operations: {
1479
1690
  fix: {
1480
- args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.ts"), "{file}"],
1691
+ args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.js"), "{file}"],
1481
1692
  command: "prettier",
1482
1693
  globs: prettierGlobs,
1483
1694
  mode: "per-file",
@@ -1556,14 +1767,14 @@ var toolsConfig = {
1556
1767
  name: "syncpack",
1557
1768
  operations: {
1558
1769
  fix: {
1559
- args: ["fix", "--config", tools.Path.join(facts().gitRoot, "syncpack.config.ts")],
1770
+ args: ["fix", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
1560
1771
  command: "syncpack",
1561
1772
  globs: ["**/package.json"],
1562
1773
  mode: "whole-project",
1563
1774
  priority: 0
1564
1775
  },
1565
1776
  lint: {
1566
- args: ["lint", "--config", tools.Path.join(facts().gitRoot, "syncpack.config.ts")],
1777
+ args: ["lint", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
1567
1778
  command: "syncpack",
1568
1779
  globs: ["**/package.json"],
1569
1780
  mode: "whole-project",
@@ -1572,19 +1783,19 @@ var toolsConfig = {
1572
1783
  },
1573
1784
  projectTypes: ["npm-package"]
1574
1785
  },
1575
- tsc: {
1576
- name: "Tsc",
1577
- operations: {
1578
- lint: {
1579
- args: ["--noEmit"],
1580
- command: "tsc",
1581
- globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts"],
1582
- mode: "whole-project",
1583
- priority: 2
1584
- }
1585
- },
1586
- projectTypes: ["npm-package"]
1587
- },
1786
+ // tsc: {
1787
+ // name: "Tsc",
1788
+ // operations: {
1789
+ // lint: {
1790
+ // args: ["--noEmit"],
1791
+ // command: "tsc",
1792
+ // globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts"],
1793
+ // mode: "whole-project",
1794
+ // priority: 2,
1795
+ // },
1796
+ // },
1797
+ // projectTypes: ["npm-package"],
1798
+ // },
1588
1799
  // "editorconfig-checker": {
1589
1800
  // name: "EditorConfig Checker",
1590
1801
  // operations: {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
File without changes
@@ -0,0 +1,109 @@
1
+ export declare const config: {
2
+ rules: {
3
+ "body-leading-blank": readonly [import("@commitlint/types").RuleConfigSeverity.Warning, "always"];
4
+ "body-max-line-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
5
+ "footer-leading-blank": readonly [import("@commitlint/types").RuleConfigSeverity.Warning, "always"];
6
+ "footer-max-line-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
7
+ "header-max-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
8
+ "header-trim": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always"];
9
+ "subject-case": [import("@commitlint/types").RuleConfigSeverity, import("@commitlint/types").RuleConfigCondition, import("@commitlint/types").TargetCaseType[]];
10
+ "subject-empty": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never"];
11
+ "subject-full-stop": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never", "."];
12
+ "type-case": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", "lower-case"];
13
+ "type-empty": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never"];
14
+ "type-enum": [import("@commitlint/types").RuleConfigSeverity, import("@commitlint/types").RuleConfigCondition, string[]];
15
+ };
16
+ prompt: {
17
+ questions: {
18
+ type: {
19
+ description: string;
20
+ enum: {
21
+ feat: {
22
+ description: string;
23
+ title: string;
24
+ emoji: string;
25
+ };
26
+ fix: {
27
+ description: string;
28
+ title: string;
29
+ emoji: string;
30
+ };
31
+ docs: {
32
+ description: string;
33
+ title: string;
34
+ emoji: string;
35
+ };
36
+ style: {
37
+ description: string;
38
+ title: string;
39
+ emoji: string;
40
+ };
41
+ refactor: {
42
+ description: string;
43
+ title: string;
44
+ emoji: string;
45
+ };
46
+ perf: {
47
+ description: string;
48
+ title: string;
49
+ emoji: string;
50
+ };
51
+ test: {
52
+ description: string;
53
+ title: string;
54
+ emoji: string;
55
+ };
56
+ build: {
57
+ description: string;
58
+ title: string;
59
+ emoji: string;
60
+ };
61
+ ci: {
62
+ description: string;
63
+ title: string;
64
+ emoji: string;
65
+ };
66
+ chore: {
67
+ description: string;
68
+ title: string;
69
+ emoji: string;
70
+ };
71
+ revert: {
72
+ description: string;
73
+ title: string;
74
+ emoji: string;
75
+ };
76
+ };
77
+ };
78
+ scope: {
79
+ description: string;
80
+ };
81
+ subject: {
82
+ description: string;
83
+ };
84
+ body: {
85
+ description: string;
86
+ };
87
+ isBreaking: {
88
+ description: string;
89
+ };
90
+ breakingBody: {
91
+ description: string;
92
+ };
93
+ breaking: {
94
+ description: string;
95
+ };
96
+ isIssueAffected: {
97
+ description: string;
98
+ };
99
+ issuesBody: {
100
+ description: string;
101
+ };
102
+ issues: {
103
+ description: string;
104
+ };
105
+ };
106
+ };
107
+ formatter: string;
108
+ parserPreset: string;
109
+ };
@@ -1,9 +1,10 @@
1
1
  // src/commitlint/index.ts
2
- import "@commitlint/config-conventional";
2
+ import configConventional from "@commitlint/config-conventional";
3
3
  import "@commitlint/types";
4
4
  var config = {
5
- extends: ["@commitlint/config-conventional"],
6
- formatter: "@commitlint/format"
5
+ ...configConventional,
6
+ formatter: import.meta.resolve("@commitlint/format"),
7
+ parserPreset: import.meta.resolve("conventional-changelog-conventionalcommits")
7
8
  };
8
9
  export {
9
10
  config
@@ -0,0 +1,4 @@
1
+ export declare const config: {
2
+ extends: string[];
3
+ formatter: string;
4
+ };
@@ -0,0 +1,10 @@
1
+ // src/commitlint/main.ts
2
+ import "@commitlint/config-conventional";
3
+ import "@commitlint/types";
4
+ var config = {
5
+ extends: ["@commitlint/config-conventional"],
6
+ formatter: "@commitlint/format"
7
+ };
8
+ export {
9
+ config
10
+ };
@@ -0,0 +1,5 @@
1
+ interface Env {
2
+ DATAMITSU_DEV_MODE: boolean;
3
+ }
4
+ export declare const env: () => Env;
5
+ export {};
@@ -15,7 +15,8 @@ var defineConfig = async (config, options = {
15
15
  plugins: {
16
16
  compat: { disabled: true },
17
17
  perfectionist: { disabled: false },
18
- vitest: { disabled: true }
18
+ vitest: { disabled: true },
19
+ yaml: { disabled: true }
19
20
  }
20
21
  }) => {
21
22
  const arguments_ = [
@@ -55,6 +56,10 @@ var defineConfig = async (config, options = {
55
56
  }
56
57
  }
57
58
  ];
59
+ if (!options?.plugins?.["yaml"]?.disabled) {
60
+ const { yamlRules } = await import("../yaml-LUJQGNLH.js");
61
+ arguments_.push(yamlRules);
62
+ }
58
63
  if (!options?.plugins?.["perfectionist"]?.disabled) {
59
64
  const { perfectionistRules } = await import("../perfectionist-YHPWKMW3.js");
60
65
  arguments_.push(...perfectionistRules);
@@ -0,0 +1,2 @@
1
+ import type { DefineConfigFn } from "./types";
2
+ export declare const defineConfig: DefineConfigFn;
@@ -0,0 +1,66 @@
1
+ // src/eslint/main.ts
2
+ import eslint from "@eslint/js";
3
+ import { defineConfig as eslintDefineConfig, globalIgnores } from "eslint/config";
4
+ import tseslint from "typescript-eslint";
5
+ var todoDisable = [
6
+ {
7
+ rules: {
8
+ "@typescript-eslint/no-explicit-any": "off",
9
+ "@typescript-eslint/no-unused-vars": "off",
10
+ "no-undef": "off"
11
+ }
12
+ }
13
+ ];
14
+ var defineConfig = async (config, options = {
15
+ plugins: {
16
+ compat: { disabled: true },
17
+ perfectionist: { disabled: false },
18
+ vitest: { disabled: true }
19
+ }
20
+ }) => {
21
+ const arguments_ = [
22
+ globalIgnores(
23
+ options?.globalIgnores || [
24
+ "**/.next/**",
25
+ "**/storybook-static/**",
26
+ "**/.git/**",
27
+ "**/.turbo/**",
28
+ "**/out/**",
29
+ "**/generated/**",
30
+ "**/playwright-report-html/**",
31
+ "**/playwright-report-allure/**",
32
+ "**/dist",
33
+ "**/build",
34
+ "**/node_modules"
35
+ ]
36
+ ),
37
+ eslint.configs.recommended,
38
+ tseslint.configs.recommended,
39
+ {
40
+ rules: {
41
+ "@typescript-eslint/consistent-type-imports": [
42
+ "error",
43
+ {
44
+ disallowTypeAnnotations: true,
45
+ fixStyle: "separate-type-imports",
46
+ prefer: "type-imports"
47
+ }
48
+ ],
49
+ "@typescript-eslint/no-empty-interface": "off",
50
+ "@typescript-eslint/no-empty-object-type": "off",
51
+ "@typescript-eslint/no-explicit-any": "off",
52
+ "@typescript-eslint/no-unnecessary-type-constraint": "off",
53
+ "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
54
+ "@typescript-eslint/no-var-requires": "off"
55
+ }
56
+ }
57
+ ];
58
+ if (!options?.plugins?.["perfectionist"]?.disabled) {
59
+ const { perfectionistRules } = await import("../perfectionist-YHPWKMW3.js");
60
+ arguments_.push(...perfectionistRules);
61
+ }
62
+ return eslintDefineConfig([...arguments_, ...config || [], ...todoDisable]);
63
+ };
64
+ export {
65
+ defineConfig
66
+ };
@@ -0,0 +1,2 @@
1
+ import { type ConfigWithExtends } from "@eslint/config-helpers";
2
+ export declare const yamlRules: ConfigWithExtends[];
@@ -81,6 +81,9 @@ export interface DefineConfigOptions {
81
81
  vitest?: {
82
82
  disabled?: boolean;
83
83
  };
84
+ yaml?: {
85
+ disabled?: boolean;
86
+ };
84
87
  yml?: {
85
88
  disabled?: boolean;
86
89
  };
@@ -0,0 +1,3 @@
1
+ import type { KnipConfig } from "knip";
2
+ export type * from "knip";
3
+ export declare const config: KnipConfig;
@@ -0,0 +1,8 @@
1
+ // src/knip/main.ts
2
+ var config = {
3
+ entry: ["src/index.ts"],
4
+ project: ["src/**/*.ts"]
5
+ };
6
+ export {
7
+ config
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { Config } from "prettier";
2
+ export declare const config: Config;
@@ -0,0 +1,12 @@
1
+ // src/prettier/main.ts
2
+ var config = {
3
+ arrowParens: "always",
4
+ endOfLine: "lf",
5
+ printWidth: 120,
6
+ tabWidth: 2,
7
+ trailingComma: "all",
8
+ useTabs: false
9
+ };
10
+ export {
11
+ config
12
+ };
@@ -0,0 +1,9 @@
1
+ // src/eslint/plugins/yaml.ts
2
+ import "@eslint/config-helpers";
3
+ import pluginYaml from "eslint-plugin-yaml";
4
+ var yamlRules = [
5
+ pluginYaml.configs.recommended
6
+ ];
7
+ export {
8
+ yamlRules
9
+ };
@@ -0,0 +1,7 @@
1
+ // src/eslint/plugins/yaml.ts
2
+ import "@eslint/config-helpers";
3
+ import pluginYaml from "eslint-plugin-yaml";
4
+ var yamlRules = [pluginYaml.configs.recommended];
5
+ export {
6
+ yamlRules
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shibanet0/datamitsu-config",
3
- "version": "0.0.1-alpha-3",
3
+ "version": "0.0.1-alpha-5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -19,12 +19,6 @@
19
19
  "default": "./dist/prettier/index.js"
20
20
  }
21
21
  },
22
- "./syncpack": {
23
- "import": {
24
- "types": "./dist/syncpack/index.d.ts",
25
- "default": "./dist/syncpack/index.js"
26
- }
27
- },
28
22
  "./commitlint": {
29
23
  "import": {
30
24
  "types": "./dist/commitlint/index.d.ts",
@@ -48,6 +42,7 @@
48
42
  "bin": {
49
43
  "datamitsu": "bin/datamitsu.mjs",
50
44
  "tsc": "bin/tsc.mjs",
45
+ "tsx": "bin/tsx.mjs",
51
46
  "tsx2": "bin/tsx.mjs"
52
47
  },
53
48
  "files": [
@@ -63,11 +58,12 @@
63
58
  "build:lib:datamitsu-types": "pnpm build:lib:datamitsu-types:1 && pnpm build:lib:datamitsu-types:2",
64
59
  "build:lib:datamitsu-types:1": "echo \"// prettier-ignore\" > src/datamitsu-config/datamitsu.d.ts && datamitsu config types >> src/datamitsu-config/datamitsu.d.ts",
65
60
  "build:lib:datamitsu-types:2": "echo \"// prettier-ignore\" > scripts/datamitsu.d.ts && datamitsu config types >> scripts/datamitsu.d.ts",
66
- "datamitsu": "DATAMITSU_PACKAGE_NAME=\"./dist\" bin/datamitsu.mjs --binary-command \"node bin/datamitsu.mjs\"",
61
+ "datamitsu": "DATAMITSU_DEV_MODE=true DATAMITSU_PACKAGE_NAME=\"./dist\" bin/datamitsu.mjs --binary-command \"node bin/datamitsu.mjs\"",
62
+ "fix": "pnpm datamitsu fix",
67
63
  "preinstall": "npx only-allow@1.2.2 pnpm",
68
64
  "postinstall": "pnpm build:lib && pnpm datamitsu init",
69
65
  "knip": "knip",
70
- "lint": "tsgo --noEmit",
66
+ "lint": "pnpm datamitsu lint",
71
67
  "pull": "tsx scripts/pull.ts",
72
68
  "temp:publish": "npm publish --tag next --access public"
73
69
  },
@@ -77,11 +73,12 @@
77
73
  "@commitlint/config-conventional": "20.2.0",
78
74
  "@commitlint/format": "20.2.0",
79
75
  "@commitlint/types": "20.2.0",
80
- "@datamitsu/datamitsu": "0.0.1-alpha-11",
76
+ "@datamitsu/datamitsu": "0.0.1-alpha-13",
81
77
  "@eslint/config-helpers": "0.5.0",
82
78
  "@eslint/js": "9.39.2",
83
79
  "@prettier/plugin-xml": "3.4.2",
84
80
  "@typescript/native-preview": "7.0.0-dev.20251215.1",
81
+ "conventional-changelog-conventionalcommits": "9.1.0",
85
82
  "eslint": "9.39.2",
86
83
  "eslint-config-prettier": "10.1.8",
87
84
  "eslint-plugin-array-func": "5.1.0",
@@ -106,12 +103,14 @@
106
103
  "eslint-plugin-turbo": "2.6.3",
107
104
  "eslint-plugin-unicorn": "62.0.0",
108
105
  "eslint-plugin-unused-imports": "4.3.0",
106
+ "eslint-plugin-yaml": "1.1.3",
109
107
  "eslint-plugin-yml": "1.19.1",
110
108
  "knip": "5.75.1",
111
109
  "prettier": "3.7.4",
112
110
  "prettier-plugin-embed": "0.5.0",
113
111
  "prettier-plugin-jsdoc": "1.8.0",
114
112
  "prettier-plugin-sql": "0.19.2",
113
+ "publint": "0.3.16",
115
114
  "sort-package-json": "3.6.0",
116
115
  "syncpack": "14.0.0-alpha.32",
117
116
  "tsup": "8.5.1",