-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Enable JavaScript specific warning behavior #6802
Comments
From our own usage for Salsa for editing JS, we miss a warning about undefined variables. In eslint: {
"rules": {
"no-undef": 2,
"no-unused-vars": 1
}
} The other warning we got used is the one about unused local variables. |
From #9132, it is clear that point 2 and 3 are valid for these type of issues. When importing just for emitting purposes (e.g. |
Hey TS team, there is currently a somewhat relevant discussion to this in #9694. (A flow-style system of allowing fully checked type annotations in comments in .js files). It seems already a little bit contentious and there is a bit of noise in that issue (sorry!) |
See #6658 for background.
Currently for JavaScript files we provide a very limited set of errors, mostly for syntax errors. There are a number of grammatical and type errors that would be useful to display also.
Brief notes from ad hoc discussion in the team room include:
More detailed design to come...
The text was updated successfully, but these errors were encountered: