fix(lint): remove forbidden lint scripts, align coverage/test with n-rules canon#11
Merged
Merged
Conversation
… with n-rules canon
- Drop root package.json scripts.lint / lint-* — lint runs only via
`npx @7n/rules lint`, per bun.mdc policy-deny gate (bun/package_json).
- scripts.coverage now runs `npx @7n/rules lint test --no-fix`, matching
the test/package_json substring requirement shipped in @7n/rules 1.45.0
(new coverage/mutation lint-detector concern).
- scripts.test now runs `bun run --bun vitest run` so forked vitest pool
processes inherit the Bun engine (required for Bun-native built-ins
like `import { SQL } from 'bun'`).
- bun.lock updated via `bun i` (bumps @7n/rules to ^1.45.0, reconciles
stale @7n/tauri-components lockfile entries).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts.lint/scripts.lint-*from rootpackage.json— thebun.mdcpolicy-deny gate (bun/package_json) forbids these; lint runs only vianpx @7n/rules lint, not package.json scripts.scripts.coverageto satisfy thetest/package_jsongate: now runsnpx @7n/rules lint test --no-fix(matches the substring required by the coverage/mutation lint-detector concern shipped in@7n/rules@1.45.0, which supersedes the older@7n/test coveragedirect-invocation canon still shown in the stale bundled docs).scripts.testto include--bun(bun run --bun vitest run), so forked vitest pool processes inherit the Bun engine and can resolve Bun-native built-ins likeimport { SQL } from 'bun'.bun.lockupdated viabun i(bumps@7n/rulesdevDependency to^1.45.0to match what was actually resolved; reconciles stale@7n/tauri-componentsroot lockfile entries against currentpackage.json).Why
These were pre-existing
npx @7n/rules lintpolicy-deny violations in the repo rootpackage.json, surfaced once it entered a lint delta scope — not caused by any unrelated recent change.Note: a separate, already-tracked
vue/package_jsonviolation inowner/package.json(missingvite-plugin-vue-layouts-next/vue-macros) is intentionally left untouched — tracked atmt/lint-fix-vue-packages-c8869493/.Test plan
npx @7n/rules lint --no-fix bun test→ exit 0 (both violations gone)npx @7n/rules lint(delta) → only the pre-existing, separately-trackedvue/package_jsonviolation remains🤖 Generated with Claude Code