Skip to content

Commit 7f64c3f

Browse files
vitaliytvclaude
andauthored
fix(lint): remove forbidden lint scripts, align coverage/test scripts with n-rules canon (#11)
- 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>
1 parent 3ed8366 commit 7f64c3f

2 files changed

Lines changed: 6 additions & 19 deletions

File tree

bun.lock

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,11 @@
1212
"owner": "bun --cwd=owner run tauri dev --config src-tauri/tauri.conf.dev.json",
1313
"android": "bun --cwd=app run tauri android dev",
1414
"tauri": "bun --cwd=app run tauri",
15-
"lint": "bun run lint-js && bun run lint-text && bun run lint-style && bun run lint-ga && bun run lint-rust && bun run lint-image && bun run lint-security && oxfmt .",
16-
"lint-rust": "cargo fmt --all --manifest-path app/src-tauri/Cargo.toml && cargo clippy --manifest-path app/src-tauri/Cargo.toml --fix --allow-staged --allow-dirty --all-targets --all-features && cargo clippy --manifest-path app/src-tauri/Cargo.toml --all-targets --all-features -- -D warnings && cargo fmt --all --manifest-path owner/src-tauri/Cargo.toml && cargo clippy --manifest-path owner/src-tauri/Cargo.toml --fix --allow-staged --allow-dirty --all-targets --all-features && cargo clippy --manifest-path owner/src-tauri/Cargo.toml --all-targets --all-features -- -D warnings",
17-
"lint-ga": "n-cursor lint ga",
18-
"lint-image": "npx @nitra/minify-image --src=. --write",
19-
"lint-js": "bunx oxlint --fix && bunx eslint --fix . && bunx jscpd . && bunx knip --no-config-hints",
20-
"lint-security": "trufflehog filesystem . --no-update --exclude-paths .trufflehog-exclude --results=verified,unknown --fail",
21-
"lint-style": "npx stylelint '**/*.{css,scss,vue}' --fix",
22-
"lint-text": "n-cursor lint text",
23-
"coverage": "n-cursor coverage",
24-
"test": "vitest run"
15+
"coverage": "npx @7n/rules lint test --no-fix",
16+
"test": "bun run --bun vitest run"
2517
},
2618
"devDependencies": {
27-
"@7n/rules": "^1.38.0",
19+
"@7n/rules": "^1.45.0",
2820
"@7n/rules-ci-github": "^1.9.0",
2921
"@7n/rules-lang-js": "^0.12.0",
3022
"@7n/rules-lang-rust": "^0.7.0",

0 commit comments

Comments
 (0)