@rootreeweb/linting 5.5.0 → 5.6.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/package.json +12 -10
- package/skills/add-changeset/SKILL.md +37 -0
- package/skills/update-dependencies/SKILL.md +21 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ export default composeConfig(presetNext, turbo);
|
|
|
113
113
|
|
|
114
114
|
## Agent Skills
|
|
115
115
|
|
|
116
|
-
This package ships agent skills (`format-and-lint-js` and `
|
|
116
|
+
This package ships agent skills (`format-and-lint-js`, `solid-audit`, `add-changeset` and `update-dependencies`, plus `domain-modeling`, `grill-me`, `improve-codebase-architecture` and `dry-refactoring` from upstream) using the [`skills`](https://www.npmjs.com/package/skills) CLI's npm sync.
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
119
|
yarn add -D skills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rootreeweb/linting",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "Shared configurations for ESLint and Stylelint",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": "github:rootreeweb/meta-tools",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@eslint/js": "^10.0.1",
|
|
49
49
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
50
|
-
"@next/eslint-plugin-next": "^16.4.
|
|
51
|
-
"@rootreeweb/js-lib": "^4.0.
|
|
52
|
-
"@tanstack/eslint-plugin-query": "^5.105.
|
|
50
|
+
"@next/eslint-plugin-next": "^16.4.4",
|
|
51
|
+
"@rootreeweb/js-lib": "^4.0.21",
|
|
52
|
+
"@tanstack/eslint-plugin-query": "^5.105.2",
|
|
53
53
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
54
54
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
55
55
|
"eslint-package-json": "^3.0.0",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"eslint-plugin-react": "^7.37.5",
|
|
63
63
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
64
64
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
65
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0
|
|
66
|
-
"eslint-plugin-security": "^4.2.
|
|
65
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^1.1.0",
|
|
66
|
+
"eslint-plugin-security": "^4.2.1",
|
|
67
67
|
"eslint-plugin-sonarjs": "^4.2.2",
|
|
68
68
|
"eslint-plugin-tailwindcss": "^4.4.0",
|
|
69
69
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
70
70
|
"eslint-plugin-turbo": "^2.11.10",
|
|
71
|
-
"globals": "^17.
|
|
71
|
+
"globals": "^17.14.0",
|
|
72
72
|
"postcss": "^8.5.32",
|
|
73
73
|
"prettier-plugin-astro": "^1.1.2",
|
|
74
74
|
"prettier-plugin-jsdoc": "^1.8.1",
|
|
@@ -84,16 +84,16 @@
|
|
|
84
84
|
"@rootreeweb/tsconfigs": "^3.4.2",
|
|
85
85
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
86
86
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
87
|
-
"@types/node": "^26.6.
|
|
87
|
+
"@types/node": "^26.6.6",
|
|
88
88
|
"@types/react": "^19.3.0",
|
|
89
89
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
90
90
|
"@vitest/coverage-v8": "^5.0.5",
|
|
91
91
|
"@vitest/ui": "^5.0.5",
|
|
92
92
|
"del-cli": "^8.0.1",
|
|
93
|
-
"eslint": "^10.
|
|
93
|
+
"eslint": "^10.14.0",
|
|
94
94
|
"husky": "^9.1.7",
|
|
95
95
|
"jscpd": "^5.4.2",
|
|
96
|
-
"knip": "^6.
|
|
96
|
+
"knip": "^6.44.1",
|
|
97
97
|
"lint-staged": "^17.6.0",
|
|
98
98
|
"prettier": "~3.8.5",
|
|
99
99
|
"react": "^19.3.1",
|
|
@@ -121,6 +121,8 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"skills": [
|
|
124
|
+
"mattpocock/skills@tdd",
|
|
125
|
+
"mattpocock/skills@codebase-design",
|
|
124
126
|
"mattpocock/skills@domain-modeling",
|
|
125
127
|
"mattpocock/skills@grill-me",
|
|
126
128
|
"mattpocock/skills@improve-codebase-architecture",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-changeset
|
|
3
|
+
description: Writes a Changesets entry describing the changes the agent made, when the repo uses Changesets. Use after finishing changes to a package in a repo with a `.changeset/` folder.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Add Changeset
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- Use this after finishing changes to a package, when the repo has a `.changeset/config.json`.
|
|
11
|
+
- Skip it entirely if there's no `.changeset/config.json`.
|
|
12
|
+
|
|
13
|
+
## How to use it
|
|
14
|
+
|
|
15
|
+
1. Scope to the changes you made in this session. Don't include unrelated edits already in the working tree; use `git status` and `git diff` only to confirm your files.
|
|
16
|
+
2. Work out the affected packages: workspaces whose published surface changed (files covered by the package's `files` field, or `dependencies`, `peerDependencies` or `exports` in its `package.json`).
|
|
17
|
+
- Skip packages listed in the config's `ignore`.
|
|
18
|
+
- Skip private packages unless the config's `privatePackages.version` is `true`.
|
|
19
|
+
- Skip changes that only touch tests, CI, root config or `devDependencies`.
|
|
20
|
+
- If nothing qualifies, say so and don't write a changeset.
|
|
21
|
+
3. Pick a bump for each package:
|
|
22
|
+
- `patch`: fixes, chores, dependency updates.
|
|
23
|
+
- `minor`: new features, exports, rules or skills.
|
|
24
|
+
- `major`: breaking changes. Ask the user before you write a major bump.
|
|
25
|
+
4. Write `.changeset/<short-kebab-slug>.md` yourself. Don't use `changeset add`, because it's interactive and commits when the config has `commit: true`.
|
|
26
|
+
|
|
27
|
+
```md
|
|
28
|
+
---
|
|
29
|
+
"@scope/package": patch
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
Short, user-facing changelog line
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If an uncommitted changeset already covers this work, update it instead of adding another one.
|
|
36
|
+
|
|
37
|
+
5. Don't commit, stage, run `changeset version` or publish. Tell the user the file path and the bumps you chose.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update-dependencies
|
|
3
|
+
description: Updates a project's npm dependencies safely, verifies the build and records a changeset. Use when asked to update, upgrade or bump dependencies.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Update Dependencies
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
|
|
10
|
+
- Use this when asked to update, upgrade or bump a project's dependencies.
|
|
11
|
+
|
|
12
|
+
## How to use it
|
|
13
|
+
|
|
14
|
+
1. Find the package manager from the `packageManager` field or the lockfile, and note any workspaces.
|
|
15
|
+
2. List what's outdated across the root and all workspaces with `npx npm-check-updates --workspaces --root`.
|
|
16
|
+
3. Apply minor and patch updates with `npx npm-check-updates -u --workspaces --root --target minor`, then install with the project's package manager.
|
|
17
|
+
- Leave intentional pins alone. That covers `~` ranges and versions held inside a `peerDependencies` range (for example `prettier ~3.8.x`). Use `--reject` to skip them.
|
|
18
|
+
- Keep each package's `devDependencies` copy of a peer inside its `peerDependencies` range.
|
|
19
|
+
4. List the available major updates with a one-line note on each. Only upgrade the ones the user approves, one at a time, and read their release notes for breaking changes.
|
|
20
|
+
5. Run `build` if it exists, then the `format-and-lint-js` skill and `test`. If an update breaks something, revert or pin that package and report it.
|
|
21
|
+
6. Use the `add-changeset` skill to record a `patch` changeset reading "Chore: Dependency updates". Include only packages whose `dependencies` or `peerDependencies` changed. Don't commit.
|