Docs: Typed Linting guide causes ESLint complaints in .eslintrc.(c)js #6826
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
documentation
Documentation ("docs") that needs adding/updating
Before You File a Documentation Request Please Confirm You Have Done The Following...
Suggested Changes
When starting a TypeScript repository from scratch using our docs, the typical flow is:
...however, we don't mention anything about how to get typed linting working (or excluded) for the
.eslintrc.(c)js
file we tell the user to write. As a result, the file receives this lovely complaint:That's a very wordy complaint for a first-time typed linting user to receive. Not ideal.
I'm not sure what the best way to resolve this is. A few starting options:
overrides
to restrict type checking to.ts
,.tsx
,.cts
, etc. files (I'm a little negative on this, as it makes the config more complex)allowJs
in their TSConfig used for ESLint (I really don't like this - users will need to either add a new TSConfig for linting or modify their main project's compiler options)...I don't love any of those 🤔. How are users "supposed" to fix this?
This issue came out of a Twitch stream with @Jutanium. 👋
Affected URL(s)
https://typescript-eslint.io/linting/typed-linting
The text was updated successfully, but these errors were encountered: