Skip to content

chore: modernize tooling and bump to v2#48

Merged
xfsnowind merged 11 commits into
mainfrom
chore/tooling-modernization
Apr 9, 2026
Merged

chore: modernize tooling and bump to v2#48
xfsnowind merged 11 commits into
mainfrom
chore/tooling-modernization

Conversation

@xfsnowind

@xfsnowind xfsnowind commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Modernize the development toolchain and bump the package version to 2.0.0-rc.1 for Rspack v2 compatibility.

Tooling

  • Linting: Replace ESLint with oxlint
  • Formatting: Replace Prettier with oxfmt (100 width, single quotes, no semi, sortImports)
  • Testing: Replace Jest + Babel with Vitest
  • Git hooks: Add Husky with pre-commit hook running oxfmt --write src/
  • pnpm: Upgrade to 10.33.0

Cleanup

  • Remove unused webpack devDependency
  • Remove unused debug variables and catch parameter
  • Remove ESLint, Prettier, Jest, Babel and all related configs/dependencies

Tests

Added unit tests for: normalizeError, makeRspackConfig, CypressCTRspackPlugin, createRspackDevServer, patchImportMeta

Docs

  • Update README with Rspack v2 compatibility info and migration guide (v1 → v2)
  • Bump package version to 2.0.0-rc.1

Removed dependencies

eslint, @eslint/js, @eslint/eslintrc, @typescript-eslint/parser, eslint-config-prettier, prettier, jest, @jest/globals, @types/jest, babel-jest, @babel/core, @babel/preset-env, @babel/preset-typescript, webpack

Added dependencies

oxlint, oxfmt, vitest, husky

- Remove eslint, @eslint/*, @typescript-eslint/parser, eslint-config-prettier, prettier
- Add oxlint and oxfmt
- Add .oxlintrc.json and .oxfmtrc.json (migrated from prettier config)
- Remove eslint.config.mjs, .prettierrc.js, .prettierignore
- Update lint script, add fmt and fmt:check scripts
- Remove unused debug variables in CypressCTRspackPlugin and makeDefaultRspackConfig
- Remove unused catch parameter in CypressCTRspackPlugin
- Remove jest, @jest/globals, @types/jest, babel-jest, and babel config
- Add vitest
- Migrate test imports from @jest/globals to vitest
- Replace jest.mock/jest.fn with vi.mock/vi.fn
- normalizeError: string/Error handling
- makeRspackConfig: user config merging, plugin filtering, entry handling
- CypressCTRspackPlugin: construction, hook registration, event emission
- createRspackDevServer: server creation, liveReload mode
- patchImportMeta: Module._extensions patching
@xfsnowind xfsnowind self-assigned this Apr 9, 2026
@socket-security

socket-security Bot commented Apr 9, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhusky@​9.1.71001006280100
Addedvitest@​4.1.4981007999100
Addedoxfmt@​0.44.0901008996100
Addedoxlint@​1.59.0991009196100

View full report

@xfsnowind xfsnowind changed the title Chore/tooling modernization chore: modernize tooling — oxlint, oxfmt, vitest, husky Apr 9, 2026
- Rename .oxfmtrc.json to .oxfmtrc.jsonc
- Add .oxfmtignore for dist/node_modules
- Enable sortImports in oxfmt config
- Apply formatting to all files
@xfsnowind xfsnowind changed the title chore: modernize tooling — oxlint, oxfmt, vitest, husky chore: modernize tooling and bump to v2 Apr 9, 2026
@xfsnowind xfsnowind merged commit 255d8d8 into main Apr 9, 2026
4 checks passed
@xfsnowind xfsnowind deleted the chore/tooling-modernization branch April 9, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant