@shibanet0/datamitsu-config 0.0.1-alpha-2 → 0.0.1-alpha-4
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/bin/datamitsu.mjs +1 -1
- package/datamitsu.js +160 -59
- package/dist/binary/index.d.ts +1 -0
- package/dist/binary/main.d.ts +1 -0
- package/dist/binary/main.js +0 -0
- package/dist/commitlint/index.d.ts +4 -0
- package/dist/commitlint/main.d.ts +4 -0
- package/dist/commitlint/main.js +10 -0
- package/dist/datamitsu-config/env.d.ts +5 -0
- package/dist/eslint/index.js +6 -1
- package/dist/eslint/main.d.ts +2 -0
- package/dist/eslint/main.js +66 -0
- package/dist/eslint/plugins/yaml.d.ts +2 -0
- package/dist/eslint/types.d.ts +3 -0
- package/dist/knip/main.d.ts +3 -0
- package/dist/knip/main.js +8 -0
- package/dist/prettier/main.d.ts +2 -0
- package/dist/prettier/main.js +12 -0
- package/dist/yaml-IR24BZAD.js +9 -0
- package/dist/yaml-LUJQGNLH.js +7 -0
- package/package.json +5 -9
package/bin/datamitsu.mjs
CHANGED
|
@@ -14,7 +14,7 @@ if (!args.includes("--binary-command")) {
|
|
|
14
14
|
const child = spawn(
|
|
15
15
|
"node",
|
|
16
16
|
[
|
|
17
|
-
|
|
17
|
+
getBinaryFilepath("@datamitsu/datamitsu/package.json", "../bin/index.js"),
|
|
18
18
|
"--config",
|
|
19
19
|
join(import.meta.dirname, "../datamitsu.js"),
|
|
20
20
|
...args,
|
package/datamitsu.js
CHANGED
|
@@ -761,6 +761,18 @@ var mapOfApps = {
|
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
|
|
764
|
+
// package.json
|
|
765
|
+
var name = "@shibanet0/datamitsu-config";
|
|
766
|
+
var version = "0.0.1-alpha-4";
|
|
767
|
+
|
|
768
|
+
// src/datamitsu-config/env.ts
|
|
769
|
+
var env = () => {
|
|
770
|
+
const _env = facts().env;
|
|
771
|
+
return {
|
|
772
|
+
DATAMITSU_DEV_MODE: _env.DATAMITSU_DEV_MODE === "true"
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
|
|
764
776
|
// src/datamitsu-config/ignore.ts
|
|
765
777
|
var ignoreGroups = {
|
|
766
778
|
"Build outputs": [
|
|
@@ -1007,6 +1019,48 @@ var init = {
|
|
|
1007
1019
|
// },
|
|
1008
1020
|
// },
|
|
1009
1021
|
// ];
|
|
1022
|
+
".syncpackrc.json": {
|
|
1023
|
+
content: () => {
|
|
1024
|
+
return JSON.stringify(
|
|
1025
|
+
{
|
|
1026
|
+
semverGroups: [
|
|
1027
|
+
{
|
|
1028
|
+
dependencies: ["**"],
|
|
1029
|
+
dependencyTypes: ["**"],
|
|
1030
|
+
packages: ["**"],
|
|
1031
|
+
range: ""
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
versionGroups: [
|
|
1035
|
+
{
|
|
1036
|
+
dependencies: ["$LOCAL"],
|
|
1037
|
+
dependencyTypes: ["!local"],
|
|
1038
|
+
label: "use workspace protocol for local packages",
|
|
1039
|
+
pinVersion: "workspace:*"
|
|
1040
|
+
}
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
null,
|
|
1044
|
+
2
|
|
1045
|
+
);
|
|
1046
|
+
},
|
|
1047
|
+
otherFileNameList: [
|
|
1048
|
+
".syncpackrc",
|
|
1049
|
+
".syncpackrc.json",
|
|
1050
|
+
".syncpackrc.yaml",
|
|
1051
|
+
".syncpackrc.yml",
|
|
1052
|
+
".syncpackrc.js",
|
|
1053
|
+
".syncpackrc.ts",
|
|
1054
|
+
".syncpackrc.mjs",
|
|
1055
|
+
".syncpackrc.cjs",
|
|
1056
|
+
"syncpack.config.js",
|
|
1057
|
+
"syncpack.config.cjs",
|
|
1058
|
+
"syncpack.config.ts",
|
|
1059
|
+
"syncpack.config.mjs"
|
|
1060
|
+
],
|
|
1061
|
+
projectTypes: ["npm-package"],
|
|
1062
|
+
rootOnly: true
|
|
1063
|
+
},
|
|
1010
1064
|
".vscode/extensions.json": {
|
|
1011
1065
|
content: (context) => {
|
|
1012
1066
|
const config = JSON.parse(context.existingContent || "{}");
|
|
@@ -1089,10 +1143,10 @@ var init = {
|
|
|
1089
1143
|
},
|
|
1090
1144
|
rootOnly: true
|
|
1091
1145
|
},
|
|
1092
|
-
"commitlint.config.
|
|
1146
|
+
"commitlint.config.js": {
|
|
1093
1147
|
content: () => {
|
|
1094
1148
|
return [
|
|
1095
|
-
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/commitlint";`,
|
|
1149
|
+
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/commitlint${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
|
|
1096
1150
|
"",
|
|
1097
1151
|
"export default config;",
|
|
1098
1152
|
""
|
|
@@ -1123,10 +1177,10 @@ var init = {
|
|
|
1123
1177
|
deleteOnly: true,
|
|
1124
1178
|
otherFileNameList: [".babelrc", ".babelrc.js", "babel.config.js", ".editorconfig", ".editorconfig-checker.json"]
|
|
1125
1179
|
},
|
|
1126
|
-
"eslint.config.
|
|
1180
|
+
"eslint.config.js": {
|
|
1127
1181
|
content: () => {
|
|
1128
1182
|
return [
|
|
1129
|
-
`import { defineConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/eslint";`,
|
|
1183
|
+
`import { defineConfig } from "${facts().env.DATAMITSU_PACKAGE_NAME}/eslint${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
|
|
1130
1184
|
"",
|
|
1131
1185
|
"const config = await defineConfig();",
|
|
1132
1186
|
"",
|
|
@@ -1174,14 +1228,54 @@ var init = {
|
|
|
1174
1228
|
otherFileNameList: [".hadolint.yaml", "hadolint.yaml", ".config/hadolint.yaml", ".hadolint/hadolint.yaml"],
|
|
1175
1229
|
rootOnly: true
|
|
1176
1230
|
},
|
|
1177
|
-
"knip.config.
|
|
1231
|
+
"knip.config.js": {
|
|
1178
1232
|
content: () => {
|
|
1179
1233
|
return [
|
|
1180
|
-
`import
|
|
1181
|
-
"",
|
|
1182
|
-
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip";`,
|
|
1234
|
+
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/knip${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
|
|
1183
1235
|
"",
|
|
1184
|
-
`const internalConfig
|
|
1236
|
+
`const internalConfig = { ...config${env().DATAMITSU_DEV_MODE ? `, ...${JSON.stringify(
|
|
1237
|
+
{
|
|
1238
|
+
ignoreBinaries: ["bin/datamitsu.mjs"],
|
|
1239
|
+
ignoreDependencies: [
|
|
1240
|
+
"@commitlint/cli",
|
|
1241
|
+
"syncpack",
|
|
1242
|
+
"type-fest",
|
|
1243
|
+
"@octokit/rest",
|
|
1244
|
+
"sort-package-json",
|
|
1245
|
+
"eslint-config-prettier",
|
|
1246
|
+
"eslint-plugin-array-func",
|
|
1247
|
+
"eslint-plugin-import",
|
|
1248
|
+
"eslint-plugin-json",
|
|
1249
|
+
"eslint-plugin-json-schema-validator",
|
|
1250
|
+
"eslint-plugin-jsx-a11y",
|
|
1251
|
+
"eslint-plugin-n",
|
|
1252
|
+
"eslint-plugin-no-use-extend-native",
|
|
1253
|
+
"eslint-plugin-perfectionist",
|
|
1254
|
+
"eslint-plugin-playwright",
|
|
1255
|
+
"eslint-plugin-promise",
|
|
1256
|
+
"eslint-plugin-react",
|
|
1257
|
+
"eslint-plugin-react-hooks",
|
|
1258
|
+
"eslint-plugin-react-perf",
|
|
1259
|
+
"prettier-plugin-embed",
|
|
1260
|
+
"prettier-plugin-jsdoc",
|
|
1261
|
+
"prettier-plugin-sql",
|
|
1262
|
+
"eslint-plugin-react-prefer-function-component",
|
|
1263
|
+
"eslint-plugin-react-refresh",
|
|
1264
|
+
"eslint-plugin-security",
|
|
1265
|
+
"eslint-plugin-sonarjs",
|
|
1266
|
+
"eslint-plugin-storybook",
|
|
1267
|
+
"eslint-plugin-toml",
|
|
1268
|
+
"eslint-plugin-turbo",
|
|
1269
|
+
"@prettier/plugin-xml",
|
|
1270
|
+
"eslint-plugin-unicorn",
|
|
1271
|
+
"eslint-plugin-unused-imports",
|
|
1272
|
+
"@antebudimir/eslint-plugin-vanilla-extract",
|
|
1273
|
+
"eslint-plugin-yml"
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
null,
|
|
1277
|
+
2
|
|
1278
|
+
)}` : ""} };`,
|
|
1185
1279
|
"",
|
|
1186
1280
|
"export default internalConfig;",
|
|
1187
1281
|
""
|
|
@@ -1200,6 +1294,10 @@ var init = {
|
|
|
1200
1294
|
projectTypes: ["npm-package"],
|
|
1201
1295
|
rootOnly: true
|
|
1202
1296
|
},
|
|
1297
|
+
// ".editorconfig-checker.json": {
|
|
1298
|
+
// rootOnly: true,
|
|
1299
|
+
// content: (context) => {
|
|
1300
|
+
// const data = JSON.parse(context.existingContent || "{}");
|
|
1203
1301
|
"lefthook.yaml": {
|
|
1204
1302
|
content: (context) => {
|
|
1205
1303
|
const existing = YAML.parse(context.existingContent || "");
|
|
@@ -1243,10 +1341,39 @@ var init = {
|
|
|
1243
1341
|
],
|
|
1244
1342
|
rootOnly: true
|
|
1245
1343
|
},
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1344
|
+
"package.json": {
|
|
1345
|
+
content: ({ existingContent, isRoot }) => {
|
|
1346
|
+
const data = JSON.parse(existingContent || "{}");
|
|
1347
|
+
return JSON.stringify(
|
|
1348
|
+
{
|
|
1349
|
+
...data,
|
|
1350
|
+
eslintConfig: void 0,
|
|
1351
|
+
prettier: void 0,
|
|
1352
|
+
scripts: {
|
|
1353
|
+
...data.scripts,
|
|
1354
|
+
...isRoot ? {
|
|
1355
|
+
postinstall: env().DATAMITSU_DEV_MODE ? "pnpm build:lib && pnpm datamitsu init" : "datamitsu init"
|
|
1356
|
+
} : {}
|
|
1357
|
+
},
|
|
1358
|
+
syncpack: void 0,
|
|
1359
|
+
type: "module",
|
|
1360
|
+
...typeof data.config === "object" ? {
|
|
1361
|
+
config: {
|
|
1362
|
+
...data.config,
|
|
1363
|
+
syncpack: void 0
|
|
1364
|
+
}
|
|
1365
|
+
} : {},
|
|
1366
|
+
devDependencies: {
|
|
1367
|
+
...data.devDependencies,
|
|
1368
|
+
...env().DATAMITSU_DEV_MODE ? {} : { [name]: version }
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
null,
|
|
1372
|
+
2
|
|
1373
|
+
);
|
|
1374
|
+
},
|
|
1375
|
+
projectTypes: ["npm-package"]
|
|
1376
|
+
},
|
|
1250
1377
|
"pnpm-workspace.yaml": {
|
|
1251
1378
|
content: (context) => {
|
|
1252
1379
|
const existing = YAML.parse(context.existingContent || "");
|
|
@@ -1289,10 +1416,10 @@ var init = {
|
|
|
1289
1416
|
// return INI.stringify(data);
|
|
1290
1417
|
// },
|
|
1291
1418
|
// },
|
|
1292
|
-
"prettier.config.
|
|
1419
|
+
"prettier.config.js": {
|
|
1293
1420
|
content: () => {
|
|
1294
1421
|
return [
|
|
1295
|
-
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/prettier";`,
|
|
1422
|
+
`import { config } from "${facts().env.DATAMITSU_PACKAGE_NAME}/prettier${env().DATAMITSU_DEV_MODE ? "/index.js" : ""}";`,
|
|
1296
1423
|
"",
|
|
1297
1424
|
"export default config;",
|
|
1298
1425
|
""
|
|
@@ -1319,32 +1446,6 @@ var init = {
|
|
|
1319
1446
|
".prettierrc.toml"
|
|
1320
1447
|
],
|
|
1321
1448
|
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
1449
|
}
|
|
1349
1450
|
};
|
|
1350
1451
|
var initCommands = {
|
|
@@ -1413,7 +1514,7 @@ var toolsConfig = {
|
|
|
1413
1514
|
name: "Eslint",
|
|
1414
1515
|
operations: {
|
|
1415
1516
|
fix: {
|
|
1416
|
-
args: ["--fix", "--quiet", "--config", tools.Path.join(facts().cwd, "eslint.config.
|
|
1517
|
+
args: ["--fix", "--quiet", "--config", tools.Path.join(facts().cwd, "eslint.config.js"), "{file}"],
|
|
1417
1518
|
command: "eslint",
|
|
1418
1519
|
globs: eslintGlobs,
|
|
1419
1520
|
mode: "per-file",
|
|
@@ -1465,7 +1566,7 @@ var toolsConfig = {
|
|
|
1465
1566
|
name: "Knip",
|
|
1466
1567
|
operations: {
|
|
1467
1568
|
lint: {
|
|
1468
|
-
args: ["--config", tools.Path.join(facts().gitRoot, "knip.config.
|
|
1569
|
+
args: ["--config", tools.Path.join(facts().gitRoot, "knip.config.js")],
|
|
1469
1570
|
command: "knip",
|
|
1470
1571
|
globs: [],
|
|
1471
1572
|
mode: "whole-project"
|
|
@@ -1477,7 +1578,7 @@ var toolsConfig = {
|
|
|
1477
1578
|
name: "Prettier - Code Formatter",
|
|
1478
1579
|
operations: {
|
|
1479
1580
|
fix: {
|
|
1480
|
-
args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.
|
|
1581
|
+
args: ["-u", "--write", "--config", tools.Path.join(facts().cwd, "prettier.config.js"), "{file}"],
|
|
1481
1582
|
command: "prettier",
|
|
1482
1583
|
globs: prettierGlobs,
|
|
1483
1584
|
mode: "per-file",
|
|
@@ -1556,14 +1657,14 @@ var toolsConfig = {
|
|
|
1556
1657
|
name: "syncpack",
|
|
1557
1658
|
operations: {
|
|
1558
1659
|
fix: {
|
|
1559
|
-
args: ["fix", "--config", tools.Path.join(facts().gitRoot, "
|
|
1660
|
+
args: ["fix", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
|
|
1560
1661
|
command: "syncpack",
|
|
1561
1662
|
globs: ["**/package.json"],
|
|
1562
1663
|
mode: "whole-project",
|
|
1563
1664
|
priority: 0
|
|
1564
1665
|
},
|
|
1565
1666
|
lint: {
|
|
1566
|
-
args: ["lint", "--config", tools.Path.join(facts().gitRoot, "
|
|
1667
|
+
args: ["lint", "--config", tools.Path.join(facts().gitRoot, ".syncpackrc.json")],
|
|
1567
1668
|
command: "syncpack",
|
|
1568
1669
|
globs: ["**/package.json"],
|
|
1569
1670
|
mode: "whole-project",
|
|
@@ -1572,19 +1673,19 @@ var toolsConfig = {
|
|
|
1572
1673
|
},
|
|
1573
1674
|
projectTypes: ["npm-package"]
|
|
1574
1675
|
},
|
|
1575
|
-
tsc: {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
},
|
|
1676
|
+
// tsc: {
|
|
1677
|
+
// name: "Tsc",
|
|
1678
|
+
// operations: {
|
|
1679
|
+
// lint: {
|
|
1680
|
+
// args: ["--noEmit"],
|
|
1681
|
+
// command: "tsc",
|
|
1682
|
+
// globs: ["**/*.d.ts", "**/*.ts", "**/*.mts", "**/*.cts"],
|
|
1683
|
+
// mode: "whole-project",
|
|
1684
|
+
// priority: 2,
|
|
1685
|
+
// },
|
|
1686
|
+
// },
|
|
1687
|
+
// projectTypes: ["npm-package"],
|
|
1688
|
+
// },
|
|
1588
1689
|
// "editorconfig-checker": {
|
|
1589
1690
|
// name: "EditorConfig Checker",
|
|
1590
1691
|
// operations: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
package/dist/eslint/index.js
CHANGED
|
@@ -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,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
|
+
};
|
package/dist/eslint/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shibanet0/datamitsu-config",
|
|
3
|
-
"version": "0.0.1-alpha-
|
|
3
|
+
"version": "0.0.1-alpha-4",
|
|
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,7 +58,7 @@
|
|
|
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\"",
|
|
67
62
|
"preinstall": "npx only-allow@1.2.2 pnpm",
|
|
68
63
|
"postinstall": "pnpm build:lib && pnpm datamitsu init",
|
|
69
64
|
"knip": "knip",
|
|
@@ -77,7 +72,7 @@
|
|
|
77
72
|
"@commitlint/config-conventional": "20.2.0",
|
|
78
73
|
"@commitlint/format": "20.2.0",
|
|
79
74
|
"@commitlint/types": "20.2.0",
|
|
80
|
-
"@datamitsu/datamitsu": "0.0.1-alpha-
|
|
75
|
+
"@datamitsu/datamitsu": "0.0.1-alpha-13",
|
|
81
76
|
"@eslint/config-helpers": "0.5.0",
|
|
82
77
|
"@eslint/js": "9.39.2",
|
|
83
78
|
"@prettier/plugin-xml": "3.4.2",
|
|
@@ -106,6 +101,7 @@
|
|
|
106
101
|
"eslint-plugin-turbo": "2.6.3",
|
|
107
102
|
"eslint-plugin-unicorn": "62.0.0",
|
|
108
103
|
"eslint-plugin-unused-imports": "4.3.0",
|
|
104
|
+
"eslint-plugin-yaml": "1.1.3",
|
|
109
105
|
"eslint-plugin-yml": "1.19.1",
|
|
110
106
|
"knip": "5.75.1",
|
|
111
107
|
"prettier": "3.7.4",
|