-
-
Notifications
You must be signed in to change notification settings - Fork 231
chore: setup oxfmt for formatting #997
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
Show all changes
11 commits
Select commit
Hold shift + click to select a range
4207c40
Initial plan
Copilot aa82e65
chore: setup oxfmt for formatting
Copilot b90e76c
chore: add printWidth 80 and enable experimentalSortImports
Copilot ec6ff45
chore: use partitionByNewline to reduce import reordering diff
Copilot d02e2e6
Merge branch 'main' into copilot/setup-oxfmt-configuration
hi-ogawa 80e2f23
chore: update oxfmt
hi-ogawa cdb50a1
chore: cleanup
hi-ogawa e43a5ba
chore: experimentalSortImports.groups
hi-ogawa 46ba00e
chore: remove prettier
hi-ogawa 3ca3a10
chore: remove prettier config
hi-ogawa 3b30b07
chore: simplify lint-staged
hi-ogawa 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,57 +1,57 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": ["config:recommended", "schedule:weekly", "group:allNonMajor"], | ||
| "labels": ["dependencies"], | ||
| "ignorePaths": ["**/__tests__/**"], | ||
| "rangeStrategy": "bump", | ||
| "packageRules": [ | ||
| $schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
| extends: ['config:recommended', 'schedule:weekly', 'group:allNonMajor'], | ||
| labels: ['dependencies'], | ||
| ignorePaths: ['**/__tests__/**'], | ||
| rangeStrategy: 'bump', | ||
| packageRules: [ | ||
| { | ||
| "matchDepTypes": ["peerDependencies"], | ||
| "enabled": false, | ||
| matchDepTypes: ['peerDependencies'], | ||
| enabled: false, | ||
| }, | ||
| { | ||
| "matchFileNames": ["**/react-18/**", "**/compiler-react-18/**"], | ||
| "ignoreDeps": ["react", "react-dom", "@types/react", "@types/react-dom"], | ||
| matchFileNames: ['**/react-18/**', '**/compiler-react-18/**'], | ||
| ignoreDeps: ['react', 'react-dom', '@types/react', '@types/react-dom'], | ||
| }, | ||
| { | ||
| "extends": ["monorepo:swc"], | ||
| "groupName": "swc monorepo", | ||
| "separateMajorMinor": false, | ||
| extends: ['monorepo:swc'], | ||
| groupName: 'swc monorepo', | ||
| separateMajorMinor: false, | ||
| }, | ||
| // renovate doesn't properly handle x.x.x-beta-hash-yyyymm version schema | ||
| { | ||
| "matchPackageNames": [ | ||
| "react-compiler-runtime", | ||
| "babel-plugin-react-compiler", | ||
| matchPackageNames: [ | ||
| 'react-compiler-runtime', | ||
| 'babel-plugin-react-compiler', | ||
| ], | ||
| "followTag": "latest", | ||
| followTag: 'latest', | ||
| }, | ||
| { | ||
| "matchDepTypes": ["action"], | ||
| "pinDigests": true, | ||
| "matchPackageNames": ["!actions/{/,}**", "!github/{/,}**"], | ||
| matchDepTypes: ['action'], | ||
| pinDigests: true, | ||
| matchPackageNames: ['!actions/{/,}**', '!github/{/,}**'], | ||
| }, | ||
| { | ||
| "groupName": "react-related dependencies", | ||
| "matchPackageNames": [ | ||
| "react", | ||
| "react-dom", | ||
| "@types/react", | ||
| "@types/react-dom", | ||
| "react-refresh", | ||
| "react-server-dom-webpack", | ||
| "use-sync-external-store", | ||
| groupName: 'react-related dependencies', | ||
| matchPackageNames: [ | ||
| 'react', | ||
| 'react-dom', | ||
| '@types/react', | ||
| '@types/react-dom', | ||
| 'react-refresh', | ||
| 'react-server-dom-webpack', | ||
| 'use-sync-external-store', | ||
| ], | ||
| }, | ||
| ], | ||
| "ignoreDeps": [ | ||
| ignoreDeps: [ | ||
| // manually bumping | ||
| "node", | ||
| 'node', | ||
|
|
||
| // breaking changes | ||
| "source-map", // `source-map:v0.7.0+` needs more investigation | ||
| "kill-port", // `kill-port:^2.0.0 has perf issues (#8392) | ||
| 'source-map', // `source-map:v0.7.0+` needs more investigation | ||
| 'kill-port', // `kill-port:^2.0.0 has perf issues (#8392) | ||
|
|
||
| "prettier", // waiting for stable choice on ternaries | ||
| 'prettier', // waiting for stable choice on ternaries | ||
| ], | ||
| } |
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
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
hi-ogawa marked this conversation as resolved.
Show resolved
Hide resolved
|
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,20 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "semi": false, | ||
| "singleQuote": true, | ||
| "printWidth": 80, | ||
| "experimentalSortImports": { | ||
| "newlinesBetween": false, | ||
| "partitionByNewline": true, | ||
| "groups": [["builtin"], ["external"]] | ||
| }, | ||
| "ignorePatterns": [ | ||
| "packages/*/CHANGELOG.md", | ||
| "playground-temp/", | ||
| "dist/", | ||
| "temp/", | ||
| "LICENSE.md", | ||
| "pnpm-lock.yaml", | ||
| "pnpm-workspace.yaml" | ||
| ] | ||
| } |
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
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.