pob 38.9.0 → 38.11.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.
|
@@ -22,6 +22,7 @@ const oxlintBaseIgnorePatterns = [
|
|
|
22
22
|
"**/coverage/",
|
|
23
23
|
"**/.next/",
|
|
24
24
|
"**/.tamagui/",
|
|
25
|
+
"**/.expo/",
|
|
25
26
|
"**/*.d.ts",
|
|
26
27
|
];
|
|
27
28
|
|
|
@@ -536,6 +537,8 @@ export default class CommonFormatLintGenerator extends Generator {
|
|
|
536
537
|
const oxlintExtends = oxlintConfig.extends || [];
|
|
537
538
|
const pobOxlintConfigPath = (name) =>
|
|
538
539
|
`./node_modules/@pob/eslint-config/oxlint/${name}.json`;
|
|
540
|
+
const pobReactOxlintConfigPath = (name) =>
|
|
541
|
+
`./node_modules/@pob/eslint-config-typescript-react/oxlint/${name}.json`;
|
|
539
542
|
await writeAndFormatJson(this.fs, oxlintConfigPath, {
|
|
540
543
|
...oxlintConfig,
|
|
541
544
|
extends: [
|
|
@@ -567,8 +570,24 @@ export default class CommonFormatLintGenerator extends Generator {
|
|
|
567
570
|
)
|
|
568
571
|
.map(pobOxlintConfigPath)
|
|
569
572
|
: []),
|
|
573
|
+
// like the @pob/eslint-config-typescript-react configs, after
|
|
574
|
+
// module.json and node.json: they override import/extensions.
|
|
575
|
+
// react-native.json is kept when added by hand.
|
|
576
|
+
...(hasReact
|
|
577
|
+
? ["react", "react-native", "react-native-web"]
|
|
578
|
+
.filter(
|
|
579
|
+
(name) =>
|
|
580
|
+
name === "react" ||
|
|
581
|
+
(name === "react-native-web" &&
|
|
582
|
+
pkg.dependencies?.["react-native-web"]) ||
|
|
583
|
+
oxlintExtends.includes(pobReactOxlintConfigPath(name)),
|
|
584
|
+
)
|
|
585
|
+
.map(pobReactOxlintConfigPath)
|
|
586
|
+
: []),
|
|
570
587
|
...oxlintExtends.filter(
|
|
571
|
-
(value) =>
|
|
588
|
+
(value) =>
|
|
589
|
+
!value.includes("@pob/eslint-config/") &&
|
|
590
|
+
!value.includes("@pob/eslint-config-typescript-react/"),
|
|
572
591
|
),
|
|
573
592
|
].filter(Boolean),
|
|
574
593
|
ignorePatterns: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
/*
|
|
1
|
+
/* oxlint-disable regexp/match-any */
|
|
2
|
+
/* oxlint-disable regexp/no-super-linear-backtracking */
|
|
3
3
|
import camelCase from "lodash.camelcase";
|
|
4
4
|
import Generator from "yeoman-generator";
|
|
5
5
|
import inMonorepo from "../../../utils/inMonorepo.js";
|
|
@@ -157,17 +157,17 @@ export default class MonorepoWorkspacesGenerator extends Generator {
|
|
|
157
157
|
|
|
158
158
|
if (this.fs.exists(readmePath)) {
|
|
159
159
|
const readmeFullContent = this.fs.read(readmePath);
|
|
160
|
-
//
|
|
160
|
+
// oxlint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
161
161
|
content = readmeFullContent.match(/^<h1 align="center"[^#*]+([^]+)$/);
|
|
162
162
|
if (!content) {
|
|
163
|
-
//
|
|
163
|
+
// oxlint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
164
164
|
content = readmeFullContent.match(/^<h3 align="center"[^#*]+([^]+)$/);
|
|
165
165
|
}
|
|
166
166
|
if (!content) {
|
|
167
|
-
//
|
|
167
|
+
// oxlint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
168
168
|
content = readmeFullContent.match(/^<h3[^#*]+([^]+)$/);
|
|
169
169
|
}
|
|
170
|
-
//
|
|
170
|
+
// oxlint-disable-next-line regexp/no-super-linear-backtracking, regexp/match-any
|
|
171
171
|
if (!content) content = readmeFullContent.match(/^#[^#*]+([^]+)$/);
|
|
172
172
|
content = content ? content[1].trim() : readmeFullContent;
|
|
173
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.11.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/sort-pkg": "13.2.0",
|
|
53
|
-
"@pob/eslint-config-typescript-react": "67.8.0",
|
|
51
|
+
"@pob/eslint-config": "67.10.0",
|
|
54
52
|
"@pob/sort-object": "11.2.0",
|
|
55
|
-
"pob-
|
|
53
|
+
"@pob/sort-pkg": "13.2.0",
|
|
54
|
+
"pob-dependencies": "27.10.0",
|
|
55
|
+
"@pob/eslint-config-typescript-react": "67.10.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.11.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22.18.0"
|