-
Notifications
You must be signed in to change notification settings - Fork 2
refactor: migrate to oxlint, oxfmt
#455
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 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ed5b2b7
feat: add cn utils
seongminn dd5bcf2
refactor: 라우팅 구조 개선
seongminn 3948db9
feat: tab-header 탭 스타일 추가
seongminn 1e1e535
refactor: useLeagueCardContext 추가
seongminn 5e022ff
refactor: format & lint
seongminn dd7129f
refactor: format & lint
seongminn d7deabd
Merge branch 'wip-v2' into migrate-to-oxlint
seongminn 80f3043
chore: 옵션 변경
seongminn b159d0f
chore: Date.now()
seongminn 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "$schema": "./node_modules/oxfmt/configuration_schema.json", | ||
| "singleQuote": true, | ||
| "jsxSingleQuote": false, | ||
|
|
||
| // sort imports | ||
| "sortImports": { | ||
| "groups": [ | ||
| "type-import", | ||
| ["value-builtin", "value-external"], | ||
| "type-internal", | ||
| "value-internal", | ||
| ["type-parent", "type-sibling", "type-index"], | ||
| ["value-parent", "value-sibling", "value-index"], | ||
| "unknown" | ||
| ], | ||
| "order": "asc" | ||
| }, | ||
|
|
||
| // sort tailwindcss classes | ||
| "sortTailwindcss": { | ||
| "stylesheet": "./apps/spectator/src/styles/globals.css", | ||
| "functions": ["clsx", "cn"], | ||
| "preserveWhitespace": true | ||
| }, | ||
|
|
||
| // sort package.json fields | ||
| "sortPackageJson": { | ||
| "sortScripts": true | ||
| }, | ||
|
|
||
| "ignorePatterns": [] | ||
| } | ||
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,74 @@ | ||
| { | ||
| "$schema": "./node_modules/oxlint/configuration_schema.json", | ||
| "plugins": ["typescript", "react", "unicorn", "jsx-a11y"], | ||
| "categories": { | ||
| "correctness": "warn" | ||
| }, | ||
| "rules": { | ||
| "typescript/no-floating-promises": "error", | ||
| "typescript/no-unsafe-assignment": "warn", | ||
| "unicorn/prefer-node-protocol": "off", | ||
| "typescript/no-non-null-assertion": "warn", | ||
| "eslint/prefer-template": "warn", | ||
| "typescript/consistent-type-imports": "error", | ||
| "typescript/consistent-type-exports": "error", | ||
| "eslint/no-param-reassign": "error", | ||
| "typescript/prefer-as-const": "error", | ||
| "eslint/default-param-last": "error", | ||
| "typescript/prefer-enum-initializers": "error", | ||
| "react/self-closing-comp": "error", | ||
| "eslint/one-var": ["error", "never"], | ||
| "unicorn/prefer-number-properties": "error", | ||
| "typescript/no-inferrable-types": "error", | ||
| "eslint/no-else-return": "error", | ||
| "eslint/dot-notation": "off", | ||
| "typescript/ban-types": "off", | ||
| "unicorn/no-array-for-each": "off", | ||
| "react-hooks/exhaustive-deps": "warn", | ||
| "typescript/no-unused-vars": [ | ||
| "error", | ||
| { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "caughtErrors": "none" } | ||
| ], | ||
| "react/no-danger": "warn", | ||
| "typescript/no-explicit-any": "warn", | ||
| "react/no-array-index-key": "warn", | ||
| "jsx-a11y/button-has-type": "off", | ||
| "jsx-a11y/click-events-have-key-events": "off", | ||
| "jsx-a11y/label-has-associated-control": "off", | ||
| "jsx-a11y/alt-text": "off" | ||
|
||
| }, | ||
| "settings": { | ||
| "jsx-a11y": { | ||
| "polymorphicPropName": null, | ||
| "components": {}, | ||
| "attributes": {} | ||
| }, | ||
| "next": { | ||
| "rootDir": [] | ||
| }, | ||
| "react": { | ||
| "formComponents": [], | ||
| "linkComponents": [], | ||
| "version": null, | ||
| "componentWrapperFunctions": [] | ||
| }, | ||
| "jsdoc": { | ||
| "ignorePrivate": false, | ||
| "ignoreInternal": false, | ||
| "ignoreReplacesDocs": true, | ||
| "overrideReplacesDocs": true, | ||
| "augmentsExtendsReplacesDocs": false, | ||
| "implementsReplacesDocs": false, | ||
| "exemptDestructuredRootsFromChecks": false, | ||
| "tagNamePreference": {} | ||
| }, | ||
| "vitest": { | ||
| "typecheck": false | ||
| } | ||
| }, | ||
| "env": { | ||
| "builtin": true | ||
| }, | ||
| "globals": {}, | ||
| "ignorePatterns": [] | ||
| } | ||
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,5 +1,5 @@ | ||
| const config = { | ||
| plugins: ["@tailwindcss/postcss"], | ||
| plugins: ['@tailwindcss/postcss'], | ||
| }; | ||
|
|
||
| export default config; |
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
2 changes: 2 additions & 0 deletions
2
apps/manager/src/api/mutations/useCreateTimelineReplacement.ts
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
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
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
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.
sortTailwindcss.stylesheet설정이spectator앱의 CSS 파일 하나만 가리키고 있습니다.manager앱도 Tailwind CSS를 사용하고 자체globals.css파일이 있는데, 이 설정으로는manager앱의 클래스가 올바르게 정렬되지 않을 수 있습니다.oxfmt가 여러 경로를 지원한다면 두 앱의 CSS 파일을 모두 포함하는 것이 좋겠습니다. 만약 단일 경로만 지원한다면, 이 제한 사항을 인지하고 있어야 합니다.