pob 38.7.0 → 38.9.0
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/lib/generators/common/babel/CommonBabelGenerator.js +2 -2
- package/lib/generators/common/format-lint/CommonLintGenerator.js +7 -0
- package/lib/generators/common/testing/CommonTestingGenerator.js +1 -1
- package/lib/generators/common/typescript/CommonTypescriptGenerator.js +1 -1
- package/lib/generators/core/sort-package/CoreSortPackageGenerator.js +1 -1
- package/package.json +6 -6
|
@@ -213,7 +213,7 @@ export default class CommonBabelGenerator extends Generator {
|
|
|
213
213
|
version,
|
|
214
214
|
formats:
|
|
215
215
|
babelConfig.formats && babelConfig.formats.includes("cjs")
|
|
216
|
-
? //
|
|
216
|
+
? // oxlint-disable-next-line unicorn/no-nested-ternary
|
|
217
217
|
version === `${latestLTS}` || version === `${maintenanceLTS}`
|
|
218
218
|
? babelConfig.formats
|
|
219
219
|
: undefined
|
|
@@ -229,7 +229,7 @@ export default class CommonBabelGenerator extends Generator {
|
|
|
229
229
|
version: version === "supported" ? undefined : version,
|
|
230
230
|
formats:
|
|
231
231
|
babelConfig.formats && babelConfig.formats.includes("cjs")
|
|
232
|
-
? //
|
|
232
|
+
? // oxlint-disable-next-line unicorn/no-nested-ternary
|
|
233
233
|
version === "supported"
|
|
234
234
|
? babelConfig.formats
|
|
235
235
|
: undefined
|
|
@@ -540,6 +540,13 @@ export default class CommonFormatLintGenerator extends Generator {
|
|
|
540
540
|
...oxlintConfig,
|
|
541
541
|
extends: [
|
|
542
542
|
pobOxlintConfigPath("base"),
|
|
543
|
+
// ES module rules, not for configs.nodeCommonjs
|
|
544
|
+
(useTypescript || pkg.type !== "commonjs") &&
|
|
545
|
+
pobOxlintConfigPath("module"),
|
|
546
|
+
// like configs.node and configs.nodeModule (not configs.nodeCommonjs)
|
|
547
|
+
useNode &&
|
|
548
|
+
(useTypescript || pkg.type !== "commonjs") &&
|
|
549
|
+
pobOxlintConfigPath("node"),
|
|
543
550
|
// type-aware rules: oxlint fails without tsgolint, even in a
|
|
544
551
|
// project without TypeScript files
|
|
545
552
|
useTypescript && pobOxlintConfigPath("typescript"),
|
|
@@ -167,7 +167,7 @@ export default class CommonTestingGenerator extends Generator {
|
|
|
167
167
|
const transpileWithEsbuild = false;
|
|
168
168
|
const transpileWithBabel = transpileWithEsbuild
|
|
169
169
|
? false
|
|
170
|
-
: //
|
|
170
|
+
: // oxlint-disable-next-line unicorn/no-nested-ternary
|
|
171
171
|
this.options.monorepo
|
|
172
172
|
? yoConfigPobMonorepo.typescript &&
|
|
173
173
|
yoConfigPobMonorepo.typescript !== "check-only"
|
|
@@ -252,7 +252,7 @@ export default class CommonTypescriptGenerator extends Generator {
|
|
|
252
252
|
packageName,
|
|
253
253
|
`../../${
|
|
254
254
|
packageName[0] === "@"
|
|
255
|
-
? //
|
|
255
|
+
? // oxlint-disable-next-line unicorn/no-nested-ternary
|
|
256
256
|
yoConfig.pob.project.type === "app"
|
|
257
257
|
? `packages/${packageName.slice(packageName.indexOf("/") + 1)}`
|
|
258
258
|
: packageName
|
|
@@ -8,7 +8,7 @@ export default class CoreSortPackageGenerator extends Generator {
|
|
|
8
8
|
return writeAndFormatJson(
|
|
9
9
|
this.fs,
|
|
10
10
|
this.destinationPath("package.json"),
|
|
11
|
-
//
|
|
11
|
+
// oxlint-disable-next-line unicorn/no-array-sort
|
|
12
12
|
packageUtils.sort(pkg),
|
|
13
13
|
);
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.9.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/vitest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"validate-npm-package-name": "^8.0.0",
|
|
49
49
|
"yeoman-environment": "6.1.0",
|
|
50
50
|
"yeoman-generator": "8.2.2",
|
|
51
|
-
"@pob/eslint-config": "67.
|
|
52
|
-
"@pob/eslint-config-typescript-react": "67.6.0",
|
|
51
|
+
"@pob/eslint-config": "67.8.0",
|
|
53
52
|
"@pob/sort-pkg": "13.2.0",
|
|
54
|
-
"pob-
|
|
55
|
-
"@pob/sort-object": "11.2.0"
|
|
53
|
+
"@pob/eslint-config-typescript-react": "67.8.0",
|
|
54
|
+
"@pob/sort-object": "11.2.0",
|
|
55
|
+
"pob-dependencies": "27.8.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/node": "24.13.3",
|
|
59
59
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
60
60
|
"@yeoman/types": "1.11.1",
|
|
61
|
-
"@pob/root": "27.
|
|
61
|
+
"@pob/root": "27.9.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22.18.0"
|