-
-
Notifications
You must be signed in to change notification settings - Fork 9
chore: quality-tightening (oxfmt + drop prettier/eslint + tsgo + husky self-heal) #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| #!/bin/sh | ||
| . "$(dirname -- "$0")/_/husky.sh" | ||
|
|
||
| # Fix from https://github.com/typicode/husky/issues/968#issuecomment-1176848345 | ||
| if [ -t 2 ] ; then exec >/dev/tty 2>&1 ; fi | ||
|
|
||
| # Check changes that are staged for commit | ||
| #!/usr/bin/env sh | ||
| yarn lint-staged | ||
| yarn typecheck | ||
|
|
||
| if command -v gitleaks >/dev/null 2>&1; then | ||
| gitleaks protect --staged --no-banner --redact | ||
| fi |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "semi": true, | ||
| "singleQuote": true, | ||
| "trailingComma": "all", | ||
| "printWidth": 100, | ||
| "proseWrap": "preserve", | ||
| "sortPackageJson": false, | ||
| "ignorePatterns": [ | ||
| "**/node_modules/**", | ||
| "**/lib/**", | ||
| "**/dist/**", | ||
| "**/coverage/**", | ||
| "**/.yarn/**", | ||
| "**/.firebase/**" | ||
| ] | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,43 @@ | ||
| { | ||
| "$schema": "./node_modules/oxlint/configuration_schema.json", | ||
| "plugins": ["typescript", "vitest", "unicorn", "oxc"], | ||
| "categories": { | ||
| "correctness": "error", | ||
| "suspicious": "error", | ||
| "perf": "error" | ||
| }, | ||
| "rules": { | ||
| "no-unsafe-declaration-merging": "off" | ||
| } | ||
| "vitest/require-mock-type-parameters": "off", | ||
| "vitest/valid-title": "off", | ||
| "typescript/no-explicit-any": "warn", | ||
| "typescript/ban-ts-comment": "off", | ||
| "typescript/no-namespace": "off", | ||
| "typescript/no-unsafe-declaration-merging": "off", | ||
| "typescript/no-extraneous-class": "off", | ||
| "no-bitwise": "off", | ||
| "no-await-in-loop": "off" | ||
| }, | ||
| "overrides": [ | ||
| { | ||
| "files": ["**/*.test.ts", "**/*.spec.ts", "**/test/**/*.ts"], | ||
| "rules": { | ||
| "typescript/no-explicit-any": "off", | ||
| "no-unused-vars": "off" | ||
| } | ||
| } | ||
| ], | ||
| "env": { | ||
| "browser": false, | ||
| "node": true, | ||
| "es2024": true, | ||
| "vitest/globals": true | ||
| }, | ||
| "ignorePatterns": [ | ||
| "**/node_modules/**", | ||
| "**/lib/**", | ||
| "**/dist/**", | ||
| "**/coverage/**", | ||
| "**/.yarn/**", | ||
| "**/.firebase/**" | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| nodeLinker: node-modules | ||
|
|
||
|
|
||
| # Solo project; PRs are exclusively from the maintainer. Re-enable when | ||
| # accepting third-party PRs that auto-trigger CI without manual review. | ||
| enableHardenedMode: false | ||
|
|
||
| npmRegistryServer: "https://registry.npmjs.org/" | ||
| npmRegistryServer: 'https://registry.npmjs.org/' |
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| [tools] | ||
| node = "24.12.0" | ||
| yarn = "4.14.1" | ||
| actionlint = "latest" | ||
| shellcheck = "latest" | ||
| gitleaks = "latest" |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node-version extraction relies on double-quoted value format in
mise.toml.The sed pattern
s/.*"([^"]+)".*/\1/requires the value to be double-quoted (e.g.node = "20.x"). Ifmise.tomlis ever updated to use single quotes or bare integers,sedreturns an empty string andactions/setup-nodefails silently with a confusing error. The same pattern is repeated in thebuild,testDeploy, anddeployjobs (Lines 83-84, 133-134, 196-197).🛡️ More robust extraction
Apply the same fix to the identical steps in
build(Line 83),testDeploy(Line 133), anddeploy(Line 196).📝 Committable suggestion
🤖 Prompt for AI Agents