feat: upgrade to React 19 + modernize TypeScript config, tooling #130
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.
This pull request introduces several improvements to the project, including configuration updates, TypeScript enhancements, and modernisation of the codebase. The changes aim to improve code quality, maintainability, and developer experience.
Configuration Updates:
.prettierignore
file to exclude directories likedist/
,node_modules/
, and temporary files from Prettier formatting..prettierrc
configuration file with formatting rules, such as enabling semicolons and setting a print width of 80 characters..vscode/settings.json
to enable Prettier as the default formatter, format on save, and exclude unnecessary files from search and file explorer.eslint.config.js
file with configurations for TypeScript, React, and React Hooks, including rules and plugins for improved linting.TypeScript Enhancements:
src/BlocklyWorkspaceProps.ts
to add explicit_
prefixes to unused parameters and refinedRefObject
types for better type safety.useRef
, callbacks, and other parts of the code insrc/BlocklyWorkspace.tsx
andsrc/dev-index.tsx
. [1] [2]Code Modernisation:
ReactDOM.render
withcreateRoot
fromreact-dom/client
to align with React 18+ best practices.src/initContent/content.tsx
for better readability and maintainability.Dependency and Script Updates:
package.json
to include new scripts for cleaning, building, and formatting, as well as updated dependencies for React 19, TypeScript 5, and other tools.Minor Fixes: