Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Vite #749

Merged
merged 7 commits into from
May 25, 2023
Merged

Switch to Vite #749

merged 7 commits into from
May 25, 2023

Conversation

nimbleghost
Copy link
Contributor

This is baed on #748, so should either probably be rebased and reviewed after merging that. It's not that simple to do chained PRs across forks haha.

Actual diff: https://github.com/nimbleghost/ntfy/compare/add-eslint...switch-to-vite?expand=1

(This is also required for Vite later)
These are safe fixes, more complicated fixes can be done separately
(just disabled those errors for now).

- Reorder declarations to fix `no-use-before-define`
- Rename parameters for `no-shadow`
- Remove unused parameters, functions, imports
- Switch from `++` and `—` to `+= 1` and `-= 1` for `no-unary`
- Use object spreading instead of parameter reassignment in auth utils
- Use `window.location` instead of `location` global
- Use inline JSX strings instead of unescaped values
-
Changes according to Vite defaults:

- Move index.html to root
- Replace `%PUBLIC_URL%` with plain `/`
@binwiederhier
Copy link
Owner

I "rebased" and tried this out locally and here #752, and I got the same error when building.

I had to re-add emotion for it to work

    "@emotion/react": "^11.11.0",
    "@emotion/styled": "^11.11.0",

@binwiederhier binwiederhier merged commit d1e59fe into binwiederhier:main May 25, 2023
@nimbleghost nimbleghost deleted the switch-to-vite branch May 25, 2023 05:15
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.

2 participants