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
using the default .eslintrc.js does not lint any files that exist in .server or .client folders #9068
Comments
This is default https://eslint.org/docs/latest/use/configure/ignore#the-eslintignore-file |
@brophdawg11 I'm specifically talking about updating the templates. you guys made changes to the tsconfig.json https://github.com/remix-run/remix/blob/main/templates/vite/tsconfig.json#L5-L8 why not the eslintrc? |
Huh, I didn't know that had been added. IMO it feels a bit odd to configure templates not for stuff they already have, but for stuff that may be added in the future. It feels like a slippery slope that could bloat the template configs over time for tons of "maybe" use cases (see YAGNI). That said, if it's in the TS configs, I don't mind adding it to the eslint setup for consistency. Want to open a PR? It seems like it needs to be done via a negated
|
@brophdawg11 yep, can do, I've figured out how to get this working in my own project, and |
Reproduction
Using the vite template eslint fails to lint any files in app/.client or app/.server
System Info
Used Package Manager
npm
Expected Behavior
eslint lints correctly with default remix config
Actual Behavior
eslint lints incorrectly with default remix config
The text was updated successfully, but these errors were encountered: