chore: update repo tooling and demo dependencies#218
Open
benpsnyder wants to merge 1 commit into
Open
Conversation
- Added peer dependency rules for `tsconfck` in package.json. - Updated linting command to include type-aware checks and ignore patterns. - Upgraded various dependencies in package.json and pnpm-lock.yaml, including `typescript`, `oxlint`, `oxfmt`, and `rolldown`. - Set `rootDir` in tsconfig.json for better project structure. - Modified demo package.json to use updated versions of `express`, `react`, and `vite`. - Adjusted server routing in demo/server.mjs for improved path handling. - Introduced a new tsconfig.json for scripts to ensure type checking for Node.js. - Updated main.jsx to use the new React 18 API for rendering.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Modernizes repo tooling and brings the demo app up to date with current ecosystem versions.
Oxlint Type-Aware Linting
--type-awareand--type-checkflags in the lint script, leveragingoxlint-tsgolintfor TypeScript type-checked lintingtest/andscripts/(previously onlysrc/)--ignore-patternfortest/__fixtures__and**/distto skip generated/fixture filesscripts/tsconfig.jsonso type-aware linting covers build scriptsRoot Dependency Updates
typescript: 5.x → 6.0.2oxlint: → ^1.57.0 (with type-aware support)oxfmt: → ^0.42.0oxc-transform: → ^0.121.0rolldown: → 1.0.0-rc.12pnpm.peerDependencyRulesfortsconfck > typescript^6.0.0Demo App Modernization
ReactDOM.render→createRoot)'*'→'/{*path}')*→>=5.0.0 <=7(pinned to supported range)demo/tsconfig.json: removed deprecatedbaseUrl, addedisolatedDeclarations: false, setrootDir, fixedpathsto use relative prefixesTest Fixes
test/plugin.test.tsfor untypedresolvedByproperty onResolvedIdTest plan
pnpm lintpasses with type-aware linting acrosssrc/,test/, andscripts/pnpm testpasses@/*path aliases correctly🤖 Generated with Claude Code