refactor: modernize tech stack#12
Open
kurechon wants to merge 11 commits intoryonakae:mainfrom
Open
Conversation
- React 17 → 18.3.1, react-dom 17 → 18.3.1 - TypeScript 4.9.5 → 5.9.3 - react-hotkeys-hook 3.4.7 → 4.6.2 - @figma/plugin-typings 1.109.0 → 1.123.0 - monaco-editor 0.52.2 → 0.55.1, @emotion/react → 11.14.0 - Add zustand 5.0.11, remove unstated-next - Remove webpack and related loaders/plugins - Add vite 7.3.1 and related plugins - ESLint 8 → 10, Prettier 2 → 3 - Update @types/react and @types/react-dom to v18
- target: ES6 → ES2020 - lib: ES6 → ES2020 - moduleResolution: Node → bundler - Add skipLibCheck: true - Remove .eslintrc.js and .prettierrc.js from include
- Replace .eslintrc.js with eslint.config.js (flat config format) - Use typescript-eslint config helper - Add @eslint/js recommended rules - Preserve existing custom rules
Renamed .prettierrc.js to .prettierrc (JSON) for ESM compatibility with package.json "type": "module". Settings unchanged.
- Replace ReactDOM.render() with createRoot() - Remove unnecessary React default import
- Replace createContainer() with Zustand create() - Define StoreState type with all state and actions - Add try-catch and res.ok check to theme fetch - Fallback to 'light' theme on fetch error
- Replace Store.useContainer() with useStore() selectors - Remove Store.Provider wrapper from App.tsx - Migrate enableOnTags to enableOnFormTags (react-hotkeys-hook v4) - Use ?raw import for figma.d.ts (Vite ESM compatible) - Fix monaco-editor import to use public API - Remove unnecessary React default imports
- Remove unnecessary React default imports - Add PropsWithChildren for components accepting children - Fix VStack component name (was incorrectly named HStack)
- Use new Function('figma', code)(figma) instead of eval()
- Add try-catch with figma.notify() for error feedback
- Fallback to eval() if new Function() is not supported in sandbox
- Add /// <reference types="vite/client" /> for ?raw import support - Remove obsolete .dts module declaration (replaced by Vite client types)
- Project overview and architecture diagram - Build commands and development workflow - Figma Plugin constraints (sandbox, postMessage, HTML inlining) - Coding conventions and debugging guide
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
Test plan
pnpm run buildビルド成功確認