@howells/lint 0.2.3 → 0.2.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/README.md CHANGED
@@ -163,7 +163,7 @@ export default defineConfig({
163
163
  });
164
164
  ```
165
165
 
166
- Run boundary configs from the monorepo root so element patterns such as `apps/*/**` and `packages/*/**` match the project tree.
166
+ Run boundary configs from the monorepo root so element patterns such as `apps/*` and `packages/*` match each workspace member as a single architectural element.
167
167
 
168
168
  Mixed monorepo with a Next.js app and Node-only packages:
169
169
 
File without changes
@@ -11,12 +11,13 @@ export const boundarySettings = {
11
11
  },
12
12
  typescript: {
13
13
  alwaysTryTypes: true,
14
+ noWarnOnMultipleProjects: true,
14
15
  project: ["tsconfig.json", "apps/*/tsconfig.json", "packages/*/tsconfig.json"],
15
16
  },
16
17
  },
17
18
  "boundaries/elements": [
18
- { type: "app", pattern: "apps/*/**", mode: "full" },
19
- { type: "package", pattern: "packages/*/**", mode: "full" },
19
+ { type: "app", pattern: "apps/*", capture: ["name"] },
20
+ { type: "package", pattern: "packages/*", capture: ["name"] },
20
21
  ],
21
22
  };
22
23
 
@@ -34,7 +35,14 @@ export const boundaryRules = {
34
35
  },
35
36
  {
36
37
  from: { type: "app" },
37
- disallow: [{ to: { type: "app" } }],
38
+ disallow: [
39
+ {
40
+ to: {
41
+ type: "app",
42
+ captured: { name: "!{{ from.captured.name }}" },
43
+ },
44
+ },
45
+ ],
38
46
  message: "Apps must not import from other apps.",
39
47
  },
40
48
  ],
package/package.json CHANGED
@@ -1,93 +1,92 @@
1
1
  {
2
- "name": "@howells/lint",
3
- "version": "0.2.3",
4
- "description": "Pinned Biome, Oxlint/Oxfmt, Ultracite, and React Doctor presets for Howells projects.",
5
- "license": "MIT",
6
- "packageManager": "pnpm@10.23.0",
7
- "engines": {
8
- "node": ">=22.18.0"
9
- },
10
- "files": [
11
- "biome/*.json",
12
- "oxfmt/*.d.mts",
13
- "oxfmt/*.mjs",
14
- "oxlint/*.d.mts",
15
- "oxlint/*.mjs",
16
- "bin/*.mjs",
17
- "docs/**/*.md",
18
- "CONTEXT.md",
19
- "README.md",
20
- "MIGRATIONS.md"
21
- ],
22
- "bin": {
23
- "howells-biome": "bin/howells-biome.mjs",
24
- "howells-lint": "bin/howells-lint.mjs",
25
- "howells-lint-strict": "bin/howells-lint-strict.mjs",
26
- "howells-format": "bin/howells-format.mjs",
27
- "howells-ox-check": "bin/howells-ox-check.mjs",
28
- "howells-ox-fix": "bin/howells-ox-fix.mjs",
29
- "howells-oxfmt": "bin/howells-oxfmt.mjs",
30
- "howells-oxlint": "bin/howells-oxlint.mjs",
31
- "howells-ultracite": "bin/howells-ultracite.mjs",
32
- "howells-workspace-check": "bin/howells-workspace-check.mjs",
33
- "howells-workspace-fix": "bin/howells-workspace-fix.mjs"
34
- },
35
- "dependencies": {
36
- "@biomejs/biome": "2.4.15",
37
- "@manypkg/cli": "^0.25.1",
38
- "eslint": "10.4.1",
39
- "eslint-import-resolver-typescript": "4.4.4",
40
- "eslint-plugin-boundaries": "6.0.2",
41
- "oxc-parser": "0.133.0",
42
- "oxfmt": "0.51.0",
43
- "oxlint": "1.66.0",
44
- "oxlint-plugin-react-doctor": "0.4.0",
45
- "oxlint-tsgolint": "0.23.0",
46
- "ultracite": "7.8.1"
47
- },
48
- "exports": {
49
- "./package.json": "./package.json",
50
- "./biome/core": "./biome/core.json",
51
- "./biome/react": "./biome/react.json",
52
- "./biome/next": "./biome/next.json",
53
- "./oxfmt": {
54
- "types": "./oxfmt/index.d.mts",
55
- "default": "./oxfmt/index.mjs"
56
- },
57
- "./oxlint/core": {
58
- "types": "./oxlint/core.d.mts",
59
- "default": "./oxlint/core.mjs"
60
- },
61
- "./oxlint/react": {
62
- "types": "./oxlint/react.d.mts",
63
- "default": "./oxlint/react.mjs"
64
- },
65
- "./oxlint/next": {
66
- "types": "./oxlint/next.d.mts",
67
- "default": "./oxlint/next.mjs"
68
- },
69
- "./oxlint/boundaries": {
70
- "types": "./oxlint/boundaries.d.mts",
71
- "default": "./oxlint/boundaries.mjs"
72
- },
73
- "./oxlint/react-doctor-rules": {
74
- "types": "./oxlint/react-doctor-rules.d.mts",
75
- "default": "./oxlint/react-doctor-rules.mjs"
76
- }
77
- },
78
- "main": "index.js",
79
- "scripts": {
80
- "test": "echo \"Error: no test specified\" && exit 1"
81
- },
82
- "repository": {
83
- "type": "git",
84
- "url": "git+https://github.com/howells/lint.git"
85
- },
86
- "keywords": [],
87
- "author": "",
88
- "type": "commonjs",
89
- "bugs": {
90
- "url": "https://github.com/howells/lint/issues"
91
- },
92
- "homepage": "https://github.com/howells/lint#readme"
93
- }
2
+ "name": "@howells/lint",
3
+ "version": "0.2.4",
4
+ "description": "Pinned Biome, Oxlint/Oxfmt, Ultracite, and React Doctor presets for Howells projects.",
5
+ "license": "MIT",
6
+ "engines": {
7
+ "node": ">=22.18.0"
8
+ },
9
+ "files": [
10
+ "biome/*.json",
11
+ "oxfmt/*.d.mts",
12
+ "oxfmt/*.mjs",
13
+ "oxlint/*.d.mts",
14
+ "oxlint/*.mjs",
15
+ "bin/*.mjs",
16
+ "docs/**/*.md",
17
+ "CONTEXT.md",
18
+ "README.md",
19
+ "MIGRATIONS.md"
20
+ ],
21
+ "bin": {
22
+ "howells-biome": "bin/howells-biome.mjs",
23
+ "howells-lint": "bin/howells-lint.mjs",
24
+ "howells-lint-strict": "bin/howells-lint-strict.mjs",
25
+ "howells-format": "bin/howells-format.mjs",
26
+ "howells-ox-check": "bin/howells-ox-check.mjs",
27
+ "howells-ox-fix": "bin/howells-ox-fix.mjs",
28
+ "howells-oxfmt": "bin/howells-oxfmt.mjs",
29
+ "howells-oxlint": "bin/howells-oxlint.mjs",
30
+ "howells-ultracite": "bin/howells-ultracite.mjs",
31
+ "howells-workspace-check": "bin/howells-workspace-check.mjs",
32
+ "howells-workspace-fix": "bin/howells-workspace-fix.mjs"
33
+ },
34
+ "dependencies": {
35
+ "@biomejs/biome": "2.4.15",
36
+ "@manypkg/cli": "^0.25.1",
37
+ "eslint": "10.4.1",
38
+ "eslint-import-resolver-typescript": "4.4.4",
39
+ "eslint-plugin-boundaries": "6.0.2",
40
+ "oxc-parser": "0.133.0",
41
+ "oxfmt": "0.51.0",
42
+ "oxlint": "1.66.0",
43
+ "oxlint-plugin-react-doctor": "0.4.0",
44
+ "oxlint-tsgolint": "0.23.0",
45
+ "ultracite": "7.8.1"
46
+ },
47
+ "exports": {
48
+ "./package.json": "./package.json",
49
+ "./biome/core": "./biome/core.json",
50
+ "./biome/react": "./biome/react.json",
51
+ "./biome/next": "./biome/next.json",
52
+ "./oxfmt": {
53
+ "types": "./oxfmt/index.d.mts",
54
+ "default": "./oxfmt/index.mjs"
55
+ },
56
+ "./oxlint/core": {
57
+ "types": "./oxlint/core.d.mts",
58
+ "default": "./oxlint/core.mjs"
59
+ },
60
+ "./oxlint/react": {
61
+ "types": "./oxlint/react.d.mts",
62
+ "default": "./oxlint/react.mjs"
63
+ },
64
+ "./oxlint/next": {
65
+ "types": "./oxlint/next.d.mts",
66
+ "default": "./oxlint/next.mjs"
67
+ },
68
+ "./oxlint/boundaries": {
69
+ "types": "./oxlint/boundaries.d.mts",
70
+ "default": "./oxlint/boundaries.mjs"
71
+ },
72
+ "./oxlint/react-doctor-rules": {
73
+ "types": "./oxlint/react-doctor-rules.d.mts",
74
+ "default": "./oxlint/react-doctor-rules.mjs"
75
+ }
76
+ },
77
+ "main": "index.js",
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "git+https://github.com/howells/lint.git"
81
+ },
82
+ "keywords": [],
83
+ "author": "",
84
+ "type": "commonjs",
85
+ "bugs": {
86
+ "url": "https://github.com/howells/lint/issues"
87
+ },
88
+ "homepage": "https://github.com/howells/lint#readme",
89
+ "scripts": {
90
+ "test": "echo \"Error: no test specified\" && exit 1"
91
+ }
92
+ }