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

Fix infinite loop on 404 page #191

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Fix infinite loop on 404 page #191

merged 1 commit into from
Nov 14, 2022

Conversation

blittle
Copy link
Contributor

@blittle blittle commented Nov 14, 2022

No description provided.

@blittle blittle merged commit 1ee6ab2 into main Nov 14, 2022
@blittle blittle deleted the bl-fix-loop branch November 14, 2022 23:27
Copy link
Contributor

@juanpprieto juanpprieto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@liady liady mentioned this pull request Jan 28, 2025
5 tasks
liady added a commit that referenced this pull request Feb 6, 2025
<!--
  How to write a good PR title:
  - Start with a verb, for example: Add, Delete, Improve, Fix…
  - Give as much context as necessary and as little as possible
-->

### WHY are these changes introduced?

Fixes #191

<!--
  Context about the problem that this PR is addressing. If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered.
-->

### WHAT is this pull request doing?
This PR:
- upgrades eslint to v9 and its corresponding plugins, packages and configs
- removes individual eslint from all of our packages, except `templates/skeleton`
- unifies our basic lint configuation to be in the root of the monorepo (it was empty until now)
- fixes our `lint-staged` script to run on the changed files
- removes deprecated dependencies of remix-run lint plugin and hydrogen lint plugin (not maintained)

### The relevant files in the PR are:

- **eslint.config.js** - this is the base eslint config for linting our codebase
- **templates/skeleton/eslint.config.js** - this is the skeleton-specific configuration, and it can be removed by the skeleton users if they want.
- the rest are (stylistic only) lint fixes

I tried to find the best subset of rules so that we will be able to have even minimal linting over our codebase, but at the same time not to flood many warnings over packages that weren't linted until now. If in the future we will want to add/enable a new rule, we can do it and fix its errors.

<!-- ℹ️ Delete the following for small / trivial changes -->

### HOW to test your changes?
1. `npm i && npm run lint` from the root folder
2. `npm i && npm run lint` from the `templates/skeleton` folder

#### Checklist

- [x] I've read the [Contributing Guidelines](https://github.com/Shopify/hydrogen/blob/main/CONTRIBUTING.md)
- [x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [x] I've added a [changeset](https://github.com/Shopify/hydrogen/blob/main/CONTRIBUTING.md#changesets) if this PR contains user-facing or noteworthy changes
- [ ] I've added [tests](https://github.com/Shopify/hydrogen/blob/main/CONTRIBUTING.md#testing) to cover my changes
- [ ] I've added or updated the documentation

<!--
 THANK YOU for your pull request! Members from the Hydrogen team will review these changes and provide feedback as soon as they are available.
-->
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