This restructure is an effort to not only improve readability and follow React conventions,
but also to minimize number of directories that are right under src/.
After this PR, there will be only three subdirectories: components/, extension/, static/.
Renamed and reorganized
Move src/icons/ to src/static/icons/
Move .tsx files to src/components/ (index.tsx, Popup.tsx)
Rename src/ts/ to src/extension/
Update tsconfig.json to have chrome types (@types/chrome) to resolve TypeScript errors.
Update webpack.config.js with the updated paths
Made sure npm run dev runs fine.
My default linter made some automatic lint changes, which are unintentionally included in this PR.
If PRs of @junhur and me keep making different lint changes back to back, we could discuss how to synchronize our IDE lint settings.
This restructure is an effort to not only improve readability and follow React conventions, but also to minimize number of directories that are right under
src/
. After this PR, there will be only three subdirectories:components/
,extension/
,static/
.Renamed and reorganized
src/icons/
tosrc/static/icons/
.tsx
files tosrc/components/
(index.tsx
,Popup.tsx
)src/ts/
tosrc/extension/
tsconfig.json
to have chrome types (@types/chrome
) to resolve TypeScript errors.webpack.config.js
with the updated pathsMade sure
npm run dev
runs fine.My default linter made some automatic lint changes, which are unintentionally included in this PR. If PRs of @junhur and me keep making different lint changes back to back, we could discuss how to synchronize our IDE lint settings.