@timmo001/oxlint-rules 0.2.0 → 0.3.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/README.md +2 -2
- package/dist/cli.js +211 -211
- package/dist/configs/{effect.js → recommended-effect.js} +211 -211
- package/package.json +3 -3
- package/skills/add-oxlint-rule/SKILL.md +4 -1
- package/skills/install-timmo-oxlint-rules/SKILL.md +3 -2
- package/skills/release-oxlint-rules/SKILL.md +38 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmo001/oxlint-rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Shared Oxlint plugins and configs with optional Effect rules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./generic": "./dist/generic/index.js",
|
|
18
18
|
"./effect": "./dist/effect/index.js",
|
|
19
19
|
"./configs/recommended": "./dist/configs/recommended.js",
|
|
20
|
-
"./configs/effect": "./dist/configs/effect.js"
|
|
20
|
+
"./configs/recommended-effect": "./dist/configs/recommended-effect.js"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"format": "prettier --write \"{src,scripts}/**/*.ts\" \"skills/**/*.{md,mjs}\" \"*.md\" \"*.json\"",
|
|
41
41
|
"format:check": "prettier --check \"{src,scripts}/**/*.ts\" \"skills/**/*.{md,mjs}\" \"*.md\" \"*.json\"",
|
|
42
42
|
"lint": "oxlint src scripts",
|
|
43
|
-
"skills:validate": "bunx skills-ref validate skills/install-timmo-oxlint-rules && bunx skills-ref validate skills/add-oxlint-rule",
|
|
43
|
+
"skills:validate": "bunx skills-ref validate skills/install-timmo-oxlint-rules && bunx skills-ref validate skills/add-oxlint-rule && bunx skills-ref validate skills/release-oxlint-rules",
|
|
44
44
|
"test": "node --experimental-strip-types scripts/test.ts",
|
|
45
45
|
"typecheck": "tsc --noEmit"
|
|
46
46
|
},
|
|
@@ -26,7 +26,10 @@ description: >-
|
|
|
26
26
|
and behaviour description. Keep skills workflow-only; do not duplicate rule
|
|
27
27
|
or plugin inventories or counts in them.
|
|
28
28
|
7. Run `mise run check`, `mise run build`, `npm pack --dry-run`, and
|
|
29
|
-
`bunx jsr@0.14.3 publish --dry-run` in the central checkout.
|
|
29
|
+
`bunx jsr@0.14.3 publish --dry-run --allow-dirty` in the central checkout.
|
|
30
|
+
8. If the user also asks to publish the change, load `release-oxlint-rules` and
|
|
31
|
+
hand off the release after the rule checks pass. Do not duplicate or bypass
|
|
32
|
+
its release workflow.
|
|
30
33
|
|
|
31
34
|
Report the fixture contract, registration and docs changed, checks, and any
|
|
32
35
|
consumer rollout left for a separate stage. Do not publish or assume a local
|
|
@@ -24,8 +24,9 @@ description: >-
|
|
|
24
24
|
and lockfile. Add an exact development dependency through that package
|
|
25
25
|
manager.
|
|
26
26
|
3. Extend `@timmo001/oxlint-rules/configs/recommended`. The config owns plugin
|
|
27
|
-
registration and recommended severities. Use `/configs/effect`
|
|
28
|
-
when `effect` is a direct dependency or the user explicitly
|
|
27
|
+
registration and recommended severities. Use `/configs/recommended-effect`
|
|
28
|
+
instead only when `effect` is a direct dependency or the user explicitly
|
|
29
|
+
requests it.
|
|
29
30
|
4. Keep dependency and config edits visible. Do not delegate them to a script.
|
|
30
31
|
|
|
31
32
|
## Copy rules
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-oxlint-rules
|
|
3
|
+
description: >-
|
|
4
|
+
Create and publish a major, minor, or patch release of
|
|
5
|
+
@timmo001/oxlint-rules. Use when asked to create, cut, prepare, or publish an
|
|
6
|
+
oxlint-rules release, including its version bump and npm and JSR publication.
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Release Oxlint Rules
|
|
10
|
+
|
|
11
|
+
1. Find a writable checkout whose Git remote is
|
|
12
|
+
`timmo001/oxlint-rules`. Read its `AGENTS.md`, package metadata, release
|
|
13
|
+
workflow, latest tags, and changes since the latest release. Stop if the
|
|
14
|
+
worktree contains unrelated changes or the local branch is behind its
|
|
15
|
+
remote.
|
|
16
|
+
2. Confirm `package.json` and `jsr.json` have the same current version and that
|
|
17
|
+
its release exists. Resolve the next version from the requested major,
|
|
18
|
+
minor, patch, or exact version. Ask only when the release level is missing.
|
|
19
|
+
Do not add a `v` prefix when the repository's existing tags omit it.
|
|
20
|
+
3. Update the version in `package.json` and `jsr.json`. Before committing, run
|
|
21
|
+
`mise run check`, `mise run build`, `npm pack --dry-run`, and
|
|
22
|
+
`bunx jsr@0.14.3 publish --dry-run --allow-dirty`. The dirty-tree flag is
|
|
23
|
+
required because the intended version bump is not committed yet.
|
|
24
|
+
4. Treat a direct request to create or publish the release as authorisation for
|
|
25
|
+
its version commit, push, and GitHub release. Follow the active environment's
|
|
26
|
+
guarded commit and push workflow, committing only the release metadata with
|
|
27
|
+
`Release Oxlint rules <version>`. A request to prepare or plan a release does
|
|
28
|
+
not authorise publication.
|
|
29
|
+
5. Resolve the target only after the push with `git rev-parse HEAD`. Pass the
|
|
30
|
+
resulting full 40-character SHA as the `--target` value when running
|
|
31
|
+
`gh release create`. Never pass an abbreviated SHA as `target_commitish`.
|
|
32
|
+
6. Create the release before resolving workflow targets because publication is
|
|
33
|
+
triggered by the `release.published` event. Watch only the release commit's
|
|
34
|
+
exact workflow runs and require both `Publish to npm` and `Publish to JSR` to
|
|
35
|
+
succeed.
|
|
36
|
+
7. Report the release URL, version commit, validation results, and npm and JSR
|
|
37
|
+
publication conclusions. Do not report the release as complete while either
|
|
38
|
+
publication job is pending or failed.
|