-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Getting Started guide causes ESLint complaints in .eslintrc.(c)js #6825
Comments
to be precise you actually want to enable eaither this is described in https://eslint.org/docs/latest/use/configure/language-options in teory we could add override to config that enables it for
|
Related: eslint/create-config#59 |
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, we tell folks to use this as their
.eslintrc.cjs
config:However, that results in an ESLint error on the
.eslintrc.cjs
file when viewed in VS Code!This is confusing. We should fix the code and/or docs so that our first run experience doesn't include ESLint errors for problems that don't exist. I'm not sure what the correct solution is, though. A few options:
env: { node: true }
for specifically this file or files like it?...I don't love any of those 🤔. How are users "supposed" to fix this?
(using the flat config system is not a viable solution yet, as flat configs are still considered experimental)
This issue came out of a Twitch stream with @Jutanium. 👋
Affected URL(s)
https://typescript-eslint.io/getting-started
The text was updated successfully, but these errors were encountered: