Skip to content

chore: replace eslint with oxlint#4756

Merged
escapedcat merged 5 commits into
masterfrom
chore/replace-eslint-with-oxlint-v2
May 12, 2026
Merged

chore: replace eslint with oxlint#4756
escapedcat merged 5 commits into
masterfrom
chore/replace-eslint-with-oxlint-v2

Conversation

@escapedcat

Copy link
Copy Markdown
Member

Replaces: #4678

escapedcat and others added 2 commits May 12, 2026 10:28
Swap ESLint + 10 related plugins for oxlint, and Prettier for oxfmt.
Lint rules from eslint.config.mjs are mapped in .oxlintrc.json; unmappable
rules (import/no-extraneous-dependencies, valid-expect-in-promise) and the
vitest/jest plugin conflict are documented inline.

- Delete eslint.config.mjs, add .oxlintrc.json with TS-only no-empty/no-var
- Rename .prettierignore -> .oxfmtignore
- Update lint/format scripts in package.json
- Split lint-staged into ts/js (lint+fmt) and json/yml/md (fmt only)
- Add indent_size = 2 to .editorconfig for json/yml/md/svg

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mechanical reformat across 183 files. No behavior changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Review Summary by Qodo

Replace ESLint with Oxlint and Prettier with Oxfmt

✨ Enhancement

Grey Divider

Walkthroughs

Description
• **Replaced ESLint with Oxlint**: Migrated from ESLint to Oxlint as the primary linter, removing
  all ESLint-related dependencies (@eslint/eslintrc, @typescript-eslint/*, eslint-* packages)
  and adding oxlint and oxfmt dependencies
• **Replaced Prettier with Oxfmt**: Updated formatting tool from Prettier to Oxfmt in lint and
  format scripts
• **Created Oxlint configuration**: Added .oxlintrc.json with plugins for TypeScript, imports, and
  vitest, migrated from ESLint v10 flat config
• **Code formatting consolidation**: Reformatted 150+ files to comply with Oxlint and Oxfmt rules,
  consolidating multi-line statements into single lines for consistency
• **Standardized package.json field ordering**: Reorganized all package.json files to follow
  standard field ordering conventions
• **Updated configuration files**: Modified .editorconfig to add indent size configuration for
  formatted files
• **Removed ESLint configuration**: Deleted eslint.config.mjs file as it is no longer needed
• **Updated CommonJS modules**: Changed quote styles in .cjs files for consistency with new
  formatter rules
Diagram
flowchart LR
  A["ESLint + Prettier"] -->|"Remove dependencies"| B["Remove ESLint config"]
  B -->|"Add new linter"| C["Oxlint + Oxfmt"]
  C -->|"Create config"| D[".oxlintrc.json"]
  C -->|"Reformat code"| E["150+ files reformatted"]
  E -->|"Standardize"| F["package.json & config files"]
Loading

Grey Divider

File Changes

1. @commitlint/cli/src/cli.test.ts Formatting +23/-75

Reformat test assertions and function calls for oxlint

• Reformatted long function calls and string assertions to fit on single lines
• Consolidated multi-line expect() statements into single-line format
• Adjusted line breaks in function arguments for consistency with oxlint formatting rules

@commitlint/cli/src/cli.test.ts


2. @commitlint/rules/src/scope-enum.test.ts Formatting +41/-117

Reformat scope-enum test function calls

• Consolidated multi-line function calls into single-line format
• Reformatted scopeEnum() calls with array arguments to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/rules/src/scope-enum.test.ts


3. @commitlint/cli/src/cli.ts Formatting +17/-48

Reformat CLI configuration and utility functions

• Consolidated multi-line string descriptions into single-line format
• Reformatted yargs configuration options to fit on fewer lines
• Adjusted line breaks in dynamic import and utility function calls

@commitlint/cli/src/cli.ts


View more (185)
4. @commitlint/load/src/load.test.ts Formatting +21/-74

Reformat load test assertions and chains

• Consolidated multi-line array and object assertions into single-line format
• Reformatted filter chains and Promise.all calls to fit on fewer lines
• Adjusted line breaks in file path and configuration loading test code

@commitlint/load/src/load.test.ts


5. @commitlint/rules/src/subject-case.test.ts Formatting +20/-95

Reformat subject-case test function calls

• Consolidated multi-line function calls into single-line format
• Reformatted subjectCase() calls with multiple arguments to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/rules/src/subject-case.test.ts


6. @commitlint/rules/src/scope-delimiter-style.test.ts Formatting +35/-78

Reformat scope-delimiter-style test calls

• Consolidated multi-line function calls into single-line format
• Reformatted scopeDelimiterStyle() calls with array arguments to fit on fewer lines
• Adjusted line breaks in test.each() descriptions and assertions

@commitlint/rules/src/scope-delimiter-style.test.ts


7. @commitlint/ensure/src/case.test.ts Formatting +13/-52

Reformat ensure case test function calls

• Consolidated multi-line ensure() function calls into single-line format
• Reformatted test assertions with string arguments to fit on fewer lines
• Adjusted line breaks for consistency across all test cases

@commitlint/ensure/src/case.test.ts


8. @commitlint/cz-commitlint/src/Process.test.ts Formatting +12/-27

Reformat Process test imports and assertions

• Consolidated multi-line import statements into single-line format
• Reformatted function declarations and mock setup to fit on fewer lines
• Adjusted line breaks in test assertions and promise chains

@commitlint/cz-commitlint/src/Process.test.ts


9. @commitlint/prompt/src/library/get-forced-case-fn.test.ts Formatting +13/-52

Reformat get-forced-case-fn test calls

• Consolidated multi-line getForcedCaseFn() calls into single-line format
• Reformatted array arguments and test assertions to fit on fewer lines
• Adjusted line breaks for consistency across all test cases

@commitlint/prompt/src/library/get-forced-case-fn.test.ts


10. @commitlint/cz-commitlint/src/Question.test.ts Formatting +13/-21

Reformat Question test assertions

• Consolidated multi-line function calls and assertions into single-line format
• Reformatted expect() statements with transformer calls to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/cz-commitlint/src/Question.test.ts


11. @commitlint/config-conventional/src/index.test.ts Formatting +6/-15

Reformat config-conventional test imports and chains

• Consolidated multi-line import statements and dynamic imports into single-line format
• Reformatted Promise.all() and map() chains to fit on fewer lines
• Adjusted line breaks in test assertions and error message expectations

@commitlint/config-conventional/src/index.test.ts


12. @commitlint/load/src/utils/load-plugin.ts Formatting +16/-42

Reformat load-plugin utility functions

• Consolidated multi-line dynamic import calls into single-line format
• Reformatted error messages and function calls to fit on fewer lines
• Adjusted line breaks in utility functions and error handling

@commitlint/load/src/utils/load-plugin.ts


13. @commitlint/prompt/src/library/utils.test.ts Formatting +13/-41

Reformat utils test imports and chains

• Consolidated multi-line import statements into single-line format
• Reformatted function call chains and assertions to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/prompt/src/library/utils.test.ts


14. @commitlint/cz-commitlint/src/SectionFooter.test.ts Formatting +6/-12

Reformat SectionFooter test assertions

• Consolidated multi-line string descriptions into single-line format
• Reformatted test assertions and function calls to fit on fewer lines
• Adjusted line breaks in configuration and assertion statements

@commitlint/cz-commitlint/src/SectionFooter.test.ts


15. @commitlint/format/src/format.ts Formatting +14/-35

Reformat format utility functions

• Consolidated multi-line type definitions and function signatures into single-line format
• Reformatted array destructuring and ternary operators to fit on fewer lines
• Adjusted line breaks in function implementations for consistency

@commitlint/format/src/format.ts


16. @commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts Formatting +8/-21

Reformat getRuleQuestionConfig utility

• Consolidated multi-line variable assignments into single-line format
• Reformatted ternary operators and function calls to fit on fewer lines
• Adjusted line breaks in utility function implementations

@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts


17. @commitlint/resolve-extends/src/index.ts Formatting +8/-32

Reformat resolve-extends utility functions

• Consolidated multi-line array definitions into single-line format
• Reformatted function signatures and dynamic imports to fit on fewer lines
• Adjusted line breaks in utility functions and error handling

@commitlint/resolve-extends/src/index.ts


18. @commitlint/load/src/utils/load-plugin.test.ts Formatting +9/-24

Reformat load-plugin test assertions

• Consolidated multi-line function calls and assertions into single-line format
• Reformatted path.join() calls and expect() statements to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/load/src/utils/load-plugin.test.ts


19. @commitlint/rules/src/trailer-exists.test.ts Formatting +8/-40

Reformat trailer-exists test calls

• Consolidated multi-line function calls into single-line format
• Reformatted trailerExists() calls with multiple arguments to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/rules/src/trailer-exists.test.ts


20. @commitlint/is-ignored/src/is-ignored.test.ts Formatting +9/-27

Reformat is-ignored test chains

• Consolidated multi-line reduce() and forEach() chains into single-line format
• Reformatted test assertions and function calls to fit on fewer lines
• Adjusted line breaks in array operations for consistency

@commitlint/is-ignored/src/is-ignored.test.ts


21. @commitlint/types/src/rules.ts Formatting +8/-24

Reformat type definitions

• Consolidated multi-line type definitions into single-line format
• Reformatted conditional type expressions and generic parameters to fit on fewer lines
• Adjusted line breaks in type union declarations for consistency

@commitlint/types/src/rules.ts


22. @commitlint/rules/src/scope-case.test.ts Formatting +6/-23

Reformat scope-case test calls

• Consolidated multi-line function calls into single-line format
• Reformatted scopeCase() calls with array arguments to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/rules/src/scope-case.test.ts


23. @commitlint/config-pnpm-scopes/index.ts Formatting +12/-26

Reformat config-pnpm-scopes functions

• Consolidated multi-line function calls and arrow functions into single-line format
• Reformatted Promise chains and utility functions to fit on fewer lines
• Adjusted line breaks in configuration and helper functions

@commitlint/config-pnpm-scopes/index.ts


24. @commitlint/cz-commitlint/src/Question.ts Formatting +5/-16

Reformat Question class imports and methods

• Consolidated multi-line import statements into single-line format
• Reformatted conditional expressions and function calls to fit on fewer lines
• Adjusted line breaks in class methods and utility functions

@commitlint/cz-commitlint/src/Question.ts


25. @commitlint/rules/src/signed-off-by.test.ts Formatting +6/-30

Reformat signed-off-by test calls

• Consolidated multi-line function calls into single-line format
• Reformatted signedOffBy() calls with multiple arguments to fit on fewer lines
• Adjusted line breaks in test assertions for consistency

@commitlint/rules/src/signed-off-by.test.ts


26. @commitlint/format/src/format.test.ts Formatting +7/-19

Reformat format test assertions

• Consolidated multi-line string literals into single-line format
• Reformatted test assertions and expect() chains to fit on fewer lines
• Adjusted line breaks in test data and assertions for consistency

@commitlint/format/src/format.test.ts


27. @commitlint/rules/src/scope-delimiter-style.ts Formatting +2/-8

Reformat scope-delimiter-style function

• Consolidated multi-line function signature into single-line format
• Reformatted message array and return statement to fit on fewer lines
• Adjusted line breaks in utility function implementation

@commitlint/rules/src/scope-delimiter-style.ts


28. @commitlint/rules/src/header-case.test.ts Formatting +6/-25

Code formatting consolidation for test readability

• Reformatted multi-line function calls to single lines
• Collapsed array literals from multiple lines to single lines
• Improved code readability by reducing line breaks in test assertions

@commitlint/rules/src/header-case.test.ts


29. @commitlint/lint/src/lint.ts Formatting +6/-20

Lint module code formatting improvements

• Consolidated multi-line conditional expressions to single lines
• Reformatted ternary operators and function calls for brevity
• Simplified template literal formatting in error messages

@commitlint/lint/src/lint.ts


30. @commitlint/config-conventional/src/index.ts Formatting +5/-16

Configuration file formatting consolidation

• Collapsed multi-line import statements to single line
• Reformatted array literals and object properties to single lines
• Simplified description string formatting

@commitlint/config-conventional/src/index.ts


31. @commitlint/travis-cli/src/cli.ts Formatting +5/-15

Travis CLI module code formatting

• Consolidated multi-line variable assignments to single lines
• Reformatted function parameters and ternary operators
• Simplified error message formatting

@commitlint/travis-cli/src/cli.ts


32. @commitlint/rules/src/type-case.test.ts Formatting +5/-20

Type case test formatting improvements

• Collapsed multi-line function calls to single lines
• Reformatted array literals in test cases
• Improved test code readability through line consolidation

@commitlint/rules/src/type-case.test.ts


33. @commitlint/config-validator/src/formatErrors.ts Formatting +5/-13

Config validator error formatting consolidation

• Consolidated multi-line conditional expressions to single lines
• Reformatted ternary operators and function calls
• Simplified error message string formatting

@commitlint/config-validator/src/formatErrors.ts


34. @commitlint/cz-commitlint/src/utils/rules.ts Formatting +5/-22

Rules utility module formatting improvements

• Collapsed multi-line function signatures to single lines
• Reformatted type guard return types
• Simplified conditional logic formatting

@commitlint/cz-commitlint/src/utils/rules.ts


35. @commitlint/rules/src/breaking-change-exclamation-mark.test.ts Formatting +6/-18

Breaking change test formatting consolidation

• Consolidated multi-line function calls to single lines
• Reformatted test assertions for brevity
• Improved test readability through line consolidation

@commitlint/rules/src/breaking-change-exclamation-mark.test.ts


36. @commitlint/prompt/src/input.test.ts Formatting +4/-13

Prompt input test formatting improvements

• Collapsed multi-line import statements to single line
• Reformatted function parameters and test setup code
• Simplified variable assignment formatting

@commitlint/prompt/src/input.test.ts


37. @commitlint/cz-commitlint/src/SectionHeader.ts Formatting +4/-10

Section header module formatting consolidation

• Consolidated multi-line variable assignments to single lines
• Reformatted ternary operators and function calls
• Simplified conditional expression formatting

@commitlint/cz-commitlint/src/SectionHeader.ts


38. @commitlint/cz-commitlint/src/store/prompts.test.ts Formatting +6/-18

Prompts store test formatting improvements

• Collapsed multi-line destructuring assignments to single lines
• Reformatted test expectations and function calls
• Improved test code readability

@commitlint/cz-commitlint/src/store/prompts.test.ts


39. @commitlint/cz-commitlint/src/SectionFooter.ts Formatting +3/-11

Section footer module formatting consolidation

• Consolidated multi-line function calls to single lines
• Reformatted conditional expressions and variable assignments
• Simplified string concatenation formatting

@commitlint/cz-commitlint/src/SectionFooter.ts


40. @commitlint/rules/src/scope-case.ts Formatting +5/-15

Scope case rule formatting improvements

• Collapsed multi-line ternary operators to single lines
• Reformatted conditional logic and array operations
• Simplified variable assignment formatting

@commitlint/rules/src/scope-case.ts


41. @commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts Formatting +4/-14

Rule question config test formatting consolidation

• Consolidated multi-line function calls and test expectations to single lines
• Reformatted RegExp patterns and array literals
• Improved test readability through line consolidation

@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts


42. @commitlint/load/src/load.ts Formatting +4/-12

Load module code formatting improvements

• Collapsed multi-line ternary operators to single lines
• Reformatted function calls and Promise chains
• Simplified conditional expression formatting

@commitlint/load/src/load.ts


43. @commitlint/rules/src/header-trim.test.ts Formatting +8/-18

Header trim test formatting consolidation

• Consolidated multi-line test expectations to single lines
• Reformatted array matching assertions
• Improved test code readability

@commitlint/rules/src/header-trim.test.ts


44. @commitlint/cz-commitlint/src/utils/rules.test.ts Formatting +3/-9

Rules utility test formatting improvements

• Collapsed multi-line test assertions to single lines
• Reformatted function call expectations
• Simplified test code formatting

@commitlint/cz-commitlint/src/utils/rules.test.ts


45. @commitlint/cz-commitlint/src/SectionHeader.test.ts Formatting +3/-13

Section header test formatting consolidation

• Consolidated multi-line import statements to single line
• Reformatted test setup and assertions
• Simplified array literal formatting

@commitlint/cz-commitlint/src/SectionHeader.test.ts


46. @commitlint/load/src/utils/load-parser-opts.ts Formatting +5/-13

Parser options loader formatting improvements

• Collapsed multi-line function signatures to single lines
• Reformatted conditional logic and type annotations
• Simplified destructuring assignment formatting

@commitlint/load/src/utils/load-parser-opts.ts


47. @commitlint/load/src/utils/plugin-naming.ts Formatting +3/-12

Plugin naming utility formatting consolidation

• Consolidated multi-line RegExp patterns to single lines
• Reformatted string replacement operations
• Simplified conditional logic formatting

@commitlint/load/src/utils/plugin-naming.ts


48. @commitlint/rules/src/body-max-line-length.test.ts Formatting +4/-20

Body max line length test formatting improvements

• Collapsed multi-line function calls to single lines
• Reformatted test assertions and parameters
• Improved test readability through line consolidation

@commitlint/rules/src/body-max-line-length.test.ts


49. @commitlint/prompt/src/library/utils.ts Formatting +4/-12

Prompt library utilities formatting consolidation

• Consolidated multi-line function signatures to single lines
• Reformatted type guard return types and conditional logic
• Simplified function parameter formatting

@commitlint/prompt/src/library/utils.ts


50. @commitlint/prompt/src/inquirer/InputCustomPrompt.ts Formatting +3/-14

Input custom prompt formatting improvements

• Collapsed multi-line constructor parameters to single line
• Reformatted subscription and conditional expressions
• Simplified ternary operator formatting

@commitlint/prompt/src/inquirer/InputCustomPrompt.ts


51. @commitlint/lint/src/lint.test.ts Formatting +3/-9

Lint test formatting consolidation

• Consolidated multi-line test expectations to single lines
• Reformatted regex patterns and error assertions
• Improved test code readability

@commitlint/lint/src/lint.test.ts


52. @commitlint/config-validator/src/validate.ts Formatting +3/-16

Config validator module formatting improvements

• Collapsed multi-line array literals to single line
• Reformatted function signatures and error messages
• Simplified conditional logic formatting

@commitlint/config-validator/src/validate.ts


53. @commitlint/read/src/read.ts Formatting +5/-15

Read module code formatting consolidation

• Consolidated multi-line function calls to single lines
• Reformatted git command arguments and conditional logic
• Simplified string manipulation formatting

@commitlint/read/src/read.ts


54. @packages/test/src/npm.ts Formatting +3/-14

NPM test utilities formatting improvements

• Collapsed multi-line function calls to single lines
• Reformatted path operations and error handling
• Simplified conditional logic formatting

@packages/test/src/npm.ts


55. @commitlint/rules/src/trailer-exists.ts Formatting +3/-13

Trailer exists rule formatting consolidation

• Consolidated multi-line function calls to single lines
• Reformatted array filtering and message construction
• Simplified return statement formatting

@commitlint/rules/src/trailer-exists.ts


56. @commitlint/rules/src/footer-leading-blank.test.ts Formatting +2/-6

Footer leading blank test formatting improvements

• Collapsed multi-line function calls to single lines
• Reformatted test assertions and parameters
• Improved test readability through line consolidation

@commitlint/rules/src/footer-leading-blank.test.ts


57. @commitlint/prompt/src/library/get-prompt.ts Formatting +2/-8

Get prompt library formatting consolidation

• Consolidated multi-line function calls to single lines
• Reformatted conditional logic and variable assignments
• Simplified array operations formatting

@commitlint/prompt/src/library/get-prompt.ts


58. @commitlint/load/src/utils/load-config.ts Formatting +2/-9

Load config utility formatting improvements

• Collapsed multi-line import statements to single line
• Reformatted ternary operators and conditional logic
• Simplified variable assignment formatting

@commitlint/load/src/utils/load-config.ts


59. @commitlint/resolve-extends/src/index.test.ts Formatting +4/-6

Resolve extends test formatting consolidation

• Consolidated multi-line test expectations to single lines
• Reformatted async function calls and error assertions
• Improved test code readability

@commitlint/resolve-extends/src/index.test.ts


60. @commitlint/prompt/src/library/format.ts Formatting +2/-5

Format library module formatting improvements

• Collapsed multi-line ternary operators to single lines
• Reformatted object property assignments
• Simplified template literal formatting

@commitlint/prompt/src/library/format.ts


61. @commitlint/rules/src/type-enum.ts Formatting +2/-10

Type enum rule formatting consolidation

• Consolidated multi-line function signature to single line
• Reformatted message array construction
• Simplified return statement formatting

@commitlint/rules/src/type-enum.ts


62. @commitlint/rules/src/breaking-change-exclamation-mark.ts Formatting +2/-6

Breaking change exclamation mark rule formatting

• Collapsed multi-line function signature to single line
• Reformatted variable assignment and regex test
• Simplified conditional logic formatting

@commitlint/rules/src/breaking-change-exclamation-mark.ts


63. @commitlint/rules/src/scope-enum.ts Formatting +2/-6

Scope enum rule formatting improvements

• Consolidated multi-line ternary operators to single lines
• Reformatted delimiter pattern mapping
• Simplified conditional logic formatting

@commitlint/rules/src/scope-enum.ts


64. @commitlint/types/src/format.ts Formatting +2/-8

Format types module formatting consolidation

• Collapsed multi-line type definitions to single lines
• Reformatted type exclusion syntax
• Simplified type alias formatting

@commitlint/types/src/format.ts


65. @commitlint/rules/src/subject-full-stop.test.ts Formatting +2/-10

Subject full stop test formatting improvements

• Consolidated multi-line function calls to single lines
• Reformatted test assertions and parameters
• Improved test readability through line consolidation

@commitlint/rules/src/subject-full-stop.test.ts


66. @commitlint/read/src/read.test.ts Formatting +3/-5

Read test formatting consolidation

• Collapsed multi-line function calls to single lines
• Reformatted git command arguments
• Simplified test setup code formatting

@commitlint/read/src/read.test.ts


67. @commitlint/rules/src/references-empty.test.ts Formatting +3/-6

References empty test formatting improvements

• Consolidated multi-line async function calls to single lines
• Reformatted parse function invocations
• Simplified test setup code formatting

@commitlint/rules/src/references-empty.test.ts


68. @commitlint/is-ignored/src/is-ignored.ts Formatting +2/-7

Is ignored module formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted error message construction
• Simplified conditional logic formatting

@commitlint/is-ignored/src/is-ignored.ts


69. @commitlint/cz-commitlint/src/store/defaultPromptConfigs.ts Formatting +2/-4

Default prompt configs formatting improvements

• Consolidated multi-line description strings to single lines
• Reformatted object property assignments
• Simplified configuration object formatting

@commitlint/cz-commitlint/src/store/defaultPromptConfigs.ts


70. @commitlint/rules/src/body-max-line-length.ts Formatting +2/-9

Body max line length rule formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/body-max-line-length.ts


71. docs/.vitepress/config.ts Formatting +2/-5

VitePress documentation config formatting

• Consolidated multi-line array literals to single lines
• Reformatted configuration object properties
• Simplified URL string formatting

docs/.vitepress/config.ts


72. @commitlint/cz-commitlint/src/store/prompts.ts Formatting +2/-7

Prompts store module formatting improvements

• Consolidated multi-line conditional expressions to single lines
• Reformatted regex test and console log statements
• Simplified error message formatting

@commitlint/cz-commitlint/src/store/prompts.ts


73. @commitlint/is-ignored/src/defaults.ts Formatting +1/-3

Is ignored defaults formatting consolidation

• Collapsed multi-line regex pattern to single line
• Reformatted test function array
• Simplified regex formatting

@commitlint/is-ignored/src/defaults.ts


74. @commitlint/rules/src/scope-max-length.ts Formatting +2/-9

Scope max length rule formatting improvements

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/scope-max-length.ts


75. @commitlint/rules/src/subject-max-length.ts Formatting +2/-9

Subject max length rule formatting consolidation

• Consolidated multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/subject-max-length.ts


76. @commitlint/rules/src/body-max-length.ts Formatting +2/-9

Body max length rule formatting improvements

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/body-max-length.ts


77. @commitlint/rules/src/footer-max-length.ts Formatting +2/-9

Footer max length rule formatting consolidation

• Consolidated multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/footer-max-length.ts


78. @commitlint/rules/src/type-max-length.ts Formatting +2/-9

Type max length rule formatting improvements

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/type-max-length.ts


79. @commitlint/rules/src/scope-min-length.ts Formatting +2/-9

Scope min length rule formatting consolidation

• Consolidated multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/scope-min-length.ts


80. @commitlint/rules/src/subject-min-length.ts Formatting +2/-9

Subject min length rule formatting improvements

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/subject-min-length.ts


81. @commitlint/rules/src/type-min-length.ts Formatting +2/-9

Type min length rule formatting consolidation

• Consolidated multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/type-min-length.ts


82. @commitlint/prompt/src/settings.ts Formatting +2/-4

Prompt settings formatting improvements

• Consolidated multi-line description strings to single lines
• Reformatted object property assignments
• Simplified configuration object formatting

@commitlint/prompt/src/settings.ts


83. @commitlint/cz-commitlint/src/Process.ts Formatting +1/-5

Process module formatting consolidation

• Collapsed multi-line array spread operators to single line
• Reformatted question array construction
• Simplified variable assignment formatting

@commitlint/cz-commitlint/src/Process.ts


84. @commitlint/rules/src/body-min-length.ts Formatting +2/-9

Body min length rule formatting improvements

• Consolidated multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/body-min-length.ts


85. @commitlint/rules/src/footer-min-length.ts Formatting +2/-9

Footer min length rule formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/footer-min-length.ts


86. @commitlint/rules/src/header-trim.ts Formatting +2/-4

Header trim rule formatting improvements

• Consolidated multi-line if statements to single lines
• Reformatted return statement formatting
• Simplified conditional logic formatting

@commitlint/rules/src/header-trim.ts


87. @commitlint/cz-commitlint/src/utils/case-fn.test.ts Formatting +1/-5

Case function test formatting consolidation

• Collapsed multi-line array literal to single line
• Reformatted test setup code
• Simplified rule configuration formatting

@commitlint/cz-commitlint/src/utils/case-fn.test.ts


88. @commitlint/config-validator/src/validate.test.ts Formatting +1/-3

Config validator test formatting improvements

• Consolidated multi-line test expectation to single line
• Reformatted function call formatting
• Simplified test assertion formatting

@commitlint/config-validator/src/validate.test.ts


89. @commitlint/ensure/src/case.ts Formatting +1/-4

Ensure case module formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified type annotation formatting

@commitlint/ensure/src/case.ts


90. @commitlint/rules/src/subject-full-stop.ts Formatting +1/-5

Subject full stop rule formatting improvements

• Consolidated multi-line function signature to single line
• Reformatted function parameters
• Simplified conditional logic formatting

@commitlint/rules/src/subject-full-stop.ts


91. @commitlint/prompt/src/library/get-forced-case-fn.ts Formatting +1/-3

Get forced case function formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified return type formatting

@commitlint/prompt/src/library/get-forced-case-fn.ts


92. @commitlint/rules/src/index.test.ts Formatting +1/-4

Rules index test formatting improvements

• Consolidated multi-line function call to single line
• Reformatted file read operation
• Simplified path joining formatting

@commitlint/rules/src/index.test.ts


93. @commitlint/rules/src/signed-off-by.ts Formatting +1/-5

Signed off by rule formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified conditional logic formatting

@commitlint/rules/src/signed-off-by.ts


94. @commitlint/rules/src/header-max-length.ts Formatting +1/-5

Header max length rule formatting improvements

• Consolidated multi-line function signature to single line
• Reformatted function parameters
• Simplified return statement formatting

@commitlint/rules/src/header-max-length.ts


95. @commitlint/rules/src/header-min-length.ts Formatting +1/-5

Header min length rule formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified return statement formatting

@commitlint/rules/src/header-min-length.ts


96. @commitlint/types/src/rules.test-d.ts Formatting +1/-5

Rules type test formatting improvements

• Consolidated multi-line array literal to single line
• Reformatted type annotation formatting
• Simplified const declaration formatting

@commitlint/types/src/rules.test-d.ts


97. @commitlint/prompt/src/input.ts Formatting +1/-3

Prompt input module formatting consolidation

• Collapsed multi-line function call to single line
• Reformatted array find operation
• Simplified variable assignment formatting

@commitlint/prompt/src/input.ts


98. @commitlint/cz-commitlint/src/store/rules.test.ts Formatting +1/-3

Rules store test formatting improvements

• Consolidated multi-line test expectation to single line
• Reformatted function call formatting
• Simplified assertion formatting

@commitlint/cz-commitlint/src/store/rules.test.ts


99. @commitlint/cz-commitlint/src/utils/leading-blank-fn.ts Formatting +1/-3

Leading blank function formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified return type formatting

@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts


100. @commitlint/prompt/src/library/get-forced-leading-fn.ts Formatting +1/-3

Get forced leading function formatting improvements

• Consolidated multi-line function signature to single line
• Reformatted function parameters
• Simplified return type formatting

@commitlint/prompt/src/library/get-forced-leading-fn.ts


101. @commitlint/rules/src/header-full-stop.ts Formatting +1/-5

Header full stop rule formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified conditional logic formatting

@commitlint/rules/src/header-full-stop.ts


102. @commitlint/parse/src/index.test.ts Formatting +1/-2

Parse module test formatting improvements

• Consolidated multi-line string literal to single line
• Reformatted test message formatting
• Simplified variable assignment formatting

@commitlint/parse/src/index.test.ts


103. @commitlint/cli/src/cli-error.ts Formatting +1/-5

CLI error class formatting consolidation

• Collapsed multi-line constructor signature to single line
• Reformatted function parameters
• Simplified parameter formatting

@commitlint/cli/src/cli-error.ts


104. @commitlint/travis-cli/src/cli.test.ts Formatting +1/-3

Travis CLI test formatting improvements

• Consolidated multi-line test expectation to single line
• Reformatted assertion formatting
• Simplified error message matching

@commitlint/travis-cli/src/cli.test.ts


105. @commitlint/read/src/get-edit-commit.ts Formatting +1/-4

Get edit commit function formatting consolidation

• Collapsed multi-line function signature to single line
• Reformatted function parameters
• Simplified return type formatting

@commitlint/read/src/get-edit-commit.ts


106. @commitlint/rules/src/footer-max-line-length.ts Formatting +1/-5

Footer max line length rule formatting improvements

• Consolidated multi-line function signature to single line
• Reformatted function parameters
• Simplified return statement formatting

@commitlint/rules/src/footer-max-line-length.ts


107. @commitlint/rules/src/footer-leading-blank.ts Formatting +1/-5

Footer leading blank rule formatting consolidation

• Collapsed multi-line message array to single line
• Reformatted return statement formatting
• Simplified array construction formatting

@commitlint/rules/src/footer-leading-blank.ts


108. @commitlint/ensure/src/to-case.ts Formatting +1/-7

Ensure to-case module formatting improvements

• Consolidated multi-line import statement to single line
• Reformatted function imports from es-toolkit
• Simplified import formatting

@commitlint/ensure/src/to-case.ts
</...

@qodo-code-review

qodo-code-review Bot commented May 12, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Invalid oxlint JSON config 🐞 Bug ☼ Reliability
Description
.oxlintrc.json contains // comments, so it is not valid JSON and will fail to parse with any
strict JSON parser. Because package.json now runs oxlint for yarn lint, a config parse failure
would break linting (and potentially CI) before any rules are applied.
Code

.oxlintrc.json[R4-18]

+  // Migrated from eslint.config.mjs (ESLint v10 flat config).
+  // Note: oxlint and oxfmt require Node >= 20. The repo's engines field
+  // (>=v18) applies to the published packages. CI runs lint/format on
+  // Node 22 (lts/*). Local development requires Node >= 20 for linting.
+  //
+  // Unmappable rules (not available in oxlint):
+  //  - import/no-extraneous-dependencies: validates imports are declared in
+  //    package.json. "lerna run deps" provides partial coverage.
+  //  - valid-expect-in-promise: no oxlint equivalent exists.
+  //
+  // The old config spread @vitest/eslint-plugin's recommended rules (16 rules
+  // like expect-expect, no-focused-tests, no-identical-title, valid-expect,
+  // etc.). In oxlint these live under the "jest" plugin, but enabling it
+  // causes an irreconcilable conflict with vitest/max-nested-describe.
+  // Revisit when oxlint resolves the jest/vitest plugin interaction.
Evidence
The config file contains // comment lines (not valid JSON syntax), and the repo’s lint script
now invokes oxlint, which is expected to consume this config file.

.oxlintrc.json[1-18]
package.json[33-46]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new `.oxlintrc.json` uses `//` comments, which makes the file invalid JSON. Any strict JSON consumer will fail to parse it, which can prevent `oxlint` (invoked by `yarn lint`) from running.
### Issue Context
This PR deletes `eslint.config.mjs` and switches the repo lint script to `oxlint`, so `.oxlintrc.json` becomes a critical config file.
### Fix Focus Areas
- .oxlintrc.json[1-64]
### Suggested fix
Choose one of:
1) Remove all `// ...` comments from `.oxlintrc.json` (move the explanatory text to a separate markdown doc like `docs/development/linting.md`).
2) If oxlint supports JSONC/JSON-with-comments, rename the file accordingly (e.g. `.oxlintrc.jsonc`) and ensure oxlint is configured/discovers it (or pass it explicitly via CLI/config option in `package.json` scripts).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

oxlint's vitest plugin does not include a no-focused-tests rule, so a stray
it.only / describe.only could silently disable the rest of a test file
after the eslint -> oxlint migration. Adds a small script that scans test
files for *.only(...) and wires it into both lint-staged (per-file on
commit) and the CI codeQuality job (full sweep, can't be skipped with
--no-verify).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread .oxlintrc.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the repo’s JavaScript/TypeScript linting/formatting workflow from ESLint to oxlint/oxfmt, and adds a replacement safeguard for focused Vitest tests that ESLint previously caught.

Changes:

  • Remove ESLint flat config and introduce .oxlintrc.json (oxlint) + .oxfmtignore (oxfmt), wiring them into yarn lint / yarn format.
  • Add a custom scripts/check-no-focused-tests.js check and run it in CI and via lint-staged.
  • Apply repo-wide formatting/structure updates across TS/JS sources, tests, docs, and package manifests.

Reviewed changes

Copilot reviewed 188 out of 191 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/check-no-focused-tests.js New focused-test guard script used by CI and lint-staged.
eslint.config.mjs Removed ESLint flat config (migration to oxlint).
docs/reference/rules.md Formatting update in documentation examples.
docs/reference/examples.md Formatting update in documentation examples.
docs/reference/configuration.md Formatting update in documentation examples.
docs/api/load.md Formatting update in documentation examples.
docs/api/lint.md Formatting update in documentation examples.
docs/.vitepress/config.ts Formatting update to VitePress config.
@packages/utils/pkg-check.js Formatting change (note: touches control-flow line).
@packages/utils/package.json Package manifest reordering/normalization.
@packages/utils/dep-check.js Formatting update.
@packages/test/src/npm.ts Formatting update.
@packages/test/package.json Package manifest reordering/normalization.
@packages/test-environment/package.json Package manifest reordering/normalization.
@commitlint/types/src/rules.ts Type formatting and minor type-shape adjustments.
@commitlint/types/src/rules.test-d.ts Formatting update to type tests.
@commitlint/types/src/prompt.ts Formatting update.
@commitlint/types/src/parse.ts Formatting update.
@commitlint/types/src/load.ts Formatting update.
@commitlint/types/src/lint.ts Formatting update.
@commitlint/types/src/format.ts Formatting update.
@commitlint/types/package.json Package manifest reordering/normalization.
@commitlint/travis-cli/src/cli.ts Formatting update.
@commitlint/travis-cli/src/cli.test.ts Formatting update.
@commitlint/travis-cli/package.json Package manifest reordering/normalization.
@commitlint/top-level/package.json Package manifest reordering/normalization.
@commitlint/to-lines/src/index.test.ts Formatting update.
@commitlint/to-lines/package.json Package manifest reordering/normalization.
@commitlint/rules/src/type-min-length.ts Formatting update.
@commitlint/rules/src/type-max-length.ts Formatting update.
@commitlint/rules/src/type-enum.ts Formatting update.
@commitlint/rules/src/type-case.test.ts Formatting update.
@commitlint/rules/src/trailer-exists.ts Formatting update.
@commitlint/rules/src/trailer-exists.test.ts Formatting update.
@commitlint/rules/src/subject-min-length.ts Formatting update.
@commitlint/rules/src/subject-max-length.ts Formatting update.
@commitlint/rules/src/subject-full-stop.ts Formatting update.
@commitlint/rules/src/subject-full-stop.test.ts Formatting update.
@commitlint/rules/src/signed-off-by.ts Formatting update.
@commitlint/rules/src/signed-off-by.test.ts Formatting update.
@commitlint/rules/src/scope-min-length.ts Formatting update.
@commitlint/rules/src/scope-max-length.ts Formatting update.
@commitlint/rules/src/scope-enum.ts Formatting update.
@commitlint/rules/src/scope-delimiter-style.ts Formatting update.
@commitlint/rules/src/scope-case.ts Formatting update.
@commitlint/rules/src/scope-case.test.ts Formatting update.
@commitlint/rules/src/references-empty.test.ts Formatting update.
@commitlint/rules/src/index.test.ts Formatting update.
@commitlint/rules/src/header-trim.ts Formatting update.
@commitlint/rules/src/header-trim.test.ts Formatting update.
@commitlint/rules/src/header-min-length.ts Formatting update.
@commitlint/rules/src/header-max-length.ts Formatting update.
@commitlint/rules/src/header-full-stop.ts Formatting update.
@commitlint/rules/src/header-case.test.ts Formatting update.
@commitlint/rules/src/footer-min-length.ts Formatting update.
@commitlint/rules/src/footer-max-line-length.ts Formatting update.
@commitlint/rules/src/footer-max-length.ts Formatting update.
@commitlint/rules/src/footer-leading-blank.ts Formatting update.
@commitlint/rules/src/footer-leading-blank.test.ts Formatting update.
@commitlint/rules/src/breaking-change-exclamation-mark.ts Formatting update.
@commitlint/rules/src/breaking-change-exclamation-mark.test.ts Formatting update.
@commitlint/rules/src/body-min-length.ts Formatting update.
@commitlint/rules/src/body-max-line-length.ts Formatting update.
@commitlint/rules/src/body-max-line-length.test.ts Formatting update.
@commitlint/rules/src/body-max-length.ts Formatting update.
@commitlint/rules/src/body-full-stop.ts Formatting update.
@commitlint/rules/package.json Package manifest reordering/normalization.
@commitlint/resolve-extends/src/index.ts Formatting update.
@commitlint/resolve-extends/src/index.test.ts Formatting update.
@commitlint/resolve-extends/package.json Package manifest reordering/normalization.
@commitlint/read/src/read.ts Formatting update.
@commitlint/read/src/read.test.ts Formatting update.
@commitlint/read/src/get-edit-file-path.ts Formatting update.
@commitlint/read/src/get-edit-commit.ts Formatting update.
@commitlint/read/package.json Package manifest reordering/normalization.
@commitlint/prompt/src/settings.ts Formatting update.
@commitlint/prompt/src/library/utils.ts Formatting update.
@commitlint/prompt/src/library/utils.test.ts Formatting update.
@commitlint/prompt/src/library/types.ts Formatting update.
@commitlint/prompt/src/library/get-prompt.ts Formatting update.
@commitlint/prompt/src/library/get-forced-leading-fn.ts Formatting update.
@commitlint/prompt/src/library/get-forced-case-fn.ts Formatting update.
@commitlint/prompt/src/library/get-forced-case-fn.test.ts Formatting update.
@commitlint/prompt/src/library/format.ts Formatting update.
@commitlint/prompt/src/inquirer/inquirer.d.ts Formatting update.
@commitlint/prompt/src/inquirer/InputCustomPrompt.ts Formatting update.
@commitlint/prompt/src/input.ts Formatting update.
@commitlint/prompt/src/input.test.ts Formatting update.
@commitlint/prompt/package.json Package manifest reordering/normalization.
@commitlint/prompt-cli/package.json Package manifest reordering/normalization.
@commitlint/prompt-cli/cli.js Formatting update.
@commitlint/parse/src/index.ts Formatting update.
@commitlint/parse/src/index.test.ts Formatting update.
@commitlint/parse/package.json Package manifest reordering/normalization.
@commitlint/message/src/index.test.ts Formatting update.
@commitlint/message/package.json Package manifest reordering/normalization.
@commitlint/load/src/utils/plugin-naming.ts Formatting update.
@commitlint/load/src/utils/load-plugin.ts Formatting update.
@commitlint/load/src/utils/load-plugin.test.ts Formatting update.
@commitlint/load/src/utils/load-parser-opts.ts Formatting update.
@commitlint/load/src/utils/load-config.ts Formatting update.
@commitlint/load/src/load.ts Formatting update.
@commitlint/load/package.json Package manifest reordering/normalization.
@commitlint/lint/src/lint.ts Formatting update.
@commitlint/lint/src/lint.test.ts Formatting update.
@commitlint/lint/src/commit-message.ts Formatting update.
@commitlint/lint/package.json Package manifest reordering/normalization.
@commitlint/is-ignored/src/is-ignored.ts Formatting update.
@commitlint/is-ignored/src/is-ignored.test.ts Formatting update.
@commitlint/is-ignored/src/defaults.ts Formatting update.
@commitlint/is-ignored/package.json Package manifest reordering/normalization.
@commitlint/format/src/format.ts Formatting update.
@commitlint/format/src/format.test.ts Formatting update.
@commitlint/format/package.json Package manifest reordering/normalization.
@commitlint/execute-rule/src/index.ts Formatting update.
@commitlint/execute-rule/package.json Package manifest reordering/normalization.
@commitlint/ensure/src/to-case.ts Formatting update.
@commitlint/ensure/src/not-empty.ts Formatting update.
@commitlint/ensure/src/max-line-length.ts Formatting update.
@commitlint/ensure/src/case.ts Formatting update.
@commitlint/ensure/package.json Package manifest reordering/normalization.
@commitlint/cz-commitlint/src/utils/rules.ts Formatting update.
@commitlint/cz-commitlint/src/utils/rules.test.ts Formatting update.
@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts Formatting update.
@commitlint/cz-commitlint/src/utils/case-fn.test.ts Formatting update.
@commitlint/cz-commitlint/src/store/rules.test.ts Formatting update.
@commitlint/cz-commitlint/src/store/prompts.ts Formatting update.
@commitlint/cz-commitlint/src/store/prompts.test.ts Formatting update.
@commitlint/cz-commitlint/src/store/defaultPromptConfigs.ts Formatting update.
@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts Formatting update.
@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts Formatting update.
@commitlint/cz-commitlint/src/SectionHeader.ts Formatting update.
@commitlint/cz-commitlint/src/SectionHeader.test.ts Formatting update.
@commitlint/cz-commitlint/src/SectionFooter.ts Formatting update.
@commitlint/cz-commitlint/src/SectionFooter.test.ts Formatting update.
@commitlint/cz-commitlint/src/Question.ts Formatting update.
@commitlint/cz-commitlint/src/Question.test.ts Formatting update.
@commitlint/cz-commitlint/src/Process.ts Formatting update.
@commitlint/cz-commitlint/src/Process.test.ts Formatting update.
@commitlint/cz-commitlint/package.json Package manifest reordering/normalization.
@commitlint/cz-commitlint/index.cjs Formatting/style update in CJS entrypoint.
@commitlint/core/package.json Package manifest reordering/normalization.
@commitlint/config-workspace-scopes/package.json Package manifest reordering/normalization.
@commitlint/config-workspace-scopes/index.test.js Formatting update.
@commitlint/config-workspace-scopes/index.js Formatting update.
@commitlint/config-validator/src/validate.ts Formatting update.
@commitlint/config-validator/src/validate.test.ts Formatting update.
@commitlint/config-validator/src/formatErrors.ts Formatting update.
@commitlint/config-validator/package.json Package manifest reordering/normalization.
@commitlint/config-rush-scopes/package.json Package manifest reordering/normalization.
@commitlint/config-rush-scopes/index.js Formatting update.
@commitlint/config-pnpm-scopes/package.json Package manifest reordering/normalization (+ exports block placement).
@commitlint/config-pnpm-scopes/index.ts Formatting update.
@commitlint/config-patternplate/package.json Package manifest reordering/normalization.
@commitlint/config-patternplate/index.js Formatting update.
@commitlint/config-nx-scopes/readme.md Formatting update.
@commitlint/config-nx-scopes/package.json Package manifest reordering/normalization.
@commitlint/config-nx-scopes/index.js Formatting update.
@commitlint/config-lerna-scopes/package.json Package manifest reordering/normalization.
@commitlint/config-lerna-scopes/index.test.js Formatting update.
@commitlint/config-lerna-scopes/index.js Formatting update.
@commitlint/config-conventional/src/index.ts Formatting update.
@commitlint/config-conventional/src/index.test.ts Formatting update.
@commitlint/config-conventional/package.json Package manifest reordering/normalization.
@commitlint/config-angular/package.json Package manifest reordering/normalization.
@commitlint/config-angular/index.test.js Formatting update.
@commitlint/config-angular/index.js Formatting update.
@commitlint/config-angular-type-enum/package.json Package manifest reordering/normalization.
@commitlint/config-angular-type-enum/index.js Formatting update.
@commitlint/cli/src/cli-error.ts Formatting update.
@commitlint/cli/package.json Package manifest reordering/normalization.
@commitlint/cli/index.cjs Formatting/style update in CJS entrypoint.
@alias/commitlint/package.json Package manifest reordering/normalization.
@alias/commitlint-config-patternplate/package.json Package manifest reordering/normalization.
@alias/commitlint-config-nx-scopes/package.json Package manifest reordering/normalization.
@alias/commitlint-config-lerna-scopes/package.json Package manifest reordering/normalization.
@alias/commitlint-config-angular/package.json Package manifest reordering/normalization.
.oxlintrc.json New oxlint configuration (replacing ESLint ruleset).
.oxfmtignore New oxfmt ignore list for formatter runs.
.github/workflows/CI.yml Adds CI step to fail on focused tests after linting.
.editorconfig Specifies 2-space indentation for JSON/YAML/MD/etc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread @packages/utils/pkg-check.js
Comment thread .oxlintrc.json Outdated
Comment thread scripts/check-no-focused-tests.js Outdated
escapedcat and others added 2 commits May 12, 2026 10:56
- pkg-check.js: split broken console.warn(...).process.exit(0) chain into
  two statements. The bug pre-dates this PR (oxfmt only collapsed the
  multi-line form to one line) and the branch is dead code on modern Node,
  but the call would have thrown if ever reached.
- .oxlintrc.json: update stale ">=v18" engines comment to ">=22.12.0",
  matching the current package.json after v21.0.0.
- check-no-focused-tests.js: scan whole-file rather than line-by-line so
  multi-line forms (`it\n  .only(...)`) are caught, and stop the regex at
  a token boundary so chained variants like `it.only.each(...)` match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Promote vitest/require-to-throw-message from default (warn) to error and
fix the three call sites that were warning. Bare .toThrow() can pass on
the wrong error type/message; asserting the expected message makes the
tests fail loudly when the thrown error changes.

- Question.test.ts: assert "Question: name is required"
- load.test.ts: assert /Cannot find module/ from resolve-extends

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@escapedcat escapedcat merged commit 6099ae5 into master May 12, 2026
15 checks passed
@escapedcat escapedcat deleted the chore/replace-eslint-with-oxlint-v2 branch May 12, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants