-
Notifications
You must be signed in to change notification settings - Fork 12
feat(ui): update ui packages and formatting checks #481
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
Open
cccs-mdr
wants to merge
15
commits into
develop
Choose a base branch
from
package-updates
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ba69f5b
fix(ui): update tsconfig to remove errors
cccs-mdr f95b4ba
fix(ui): pin npm version to 11 to bypass sigstore error
cccs-mdr 38ad803
chore(ui): update typescript to v7
cccs-mdr 562e526
chore(ui): move from prettier + eslint to oxlint + oxfmt
cccs-mdr 1d95ac3
working on test fixes
cccs-mdr 2122517
more layout work
cccs-mdr 4a00ce2
Potential fix for pull request finding 'CodeQL / Inefficient regular …
cccs-mdr 66f5758
package updates
cccs-mdr 227ba01
fix(ui): update axios mock for named create import (#482)
Copilot 7ab1c59
undo updates
cccs-mdr 7b3917a
merge develop in package_updates
cccs-mdr 04fe483
formatting fixes
cccs-mdr 0348d65
merge branch 'develop' into package-updates
cccs-mdr 80ba4b1
update unit tests
cccs-mdr 4e57d79
Potential fix for pull request finding
cccs-mdr 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
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 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
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| cd $(dirname $(dirname $0))/ui | ||
|
|
||
| lintable_files=() | ||
|
|
||
| for file in "$@"; do | ||
| # pre-commit passes repo-root-relative paths (for example: ui/src/foo.ts) | ||
| if [[ "$file" == ui/src/* ]]; then | ||
| relative_path="${file#ui/}" | ||
| if [[ "$relative_path" =~ \.(js|jsx|ts|tsx|mjs|cjs)$ ]] && [[ -f "$relative_path" ]]; then | ||
| lintable_files+=("$relative_path") | ||
| fi | ||
| fi | ||
| done | ||
|
|
||
| if [[ ${#lintable_files[@]} -eq 0 ]]; then | ||
| echo "No changed lintable files in ui/src; skipping oxlint." | ||
| exit 0 | ||
| fi | ||
|
|
||
| pnpx oxlint --fix "${lintable_files[@]}" |
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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "arrowParens": "avoid", | ||
| "printWidth": 120, | ||
| "singleQuote": true, | ||
| "trailingComma": "none", | ||
| "sortPackageJson": false, | ||
| "ignorePatterns": [ | ||
| "src/models/entities/generated", | ||
| "src/locales/en/**/*.json", | ||
| "src/locales/fr/**/*.json", | ||
| "src/plugins/clue/locales/*.json" | ||
| ] | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.