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
Auto-fix typescript's no-unused-var rule using --init #13233
Comments
I don't think we should get in the business of picking specific rules to enable in |
adding of @kaicataldo maybe we should add the typescript-eslint/recommended added irrespective of |
It's a bit confusing, but we add What I suggested above is doing the following: {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
} |
I didnt know there are two recommended configs from typescript-eslint 😄
yes, this is much better. 👍 |
In the init process I did specify that typescript is in use, so those extends are present in config:
If so, adding the additional extend when typescript is chosen should be fine. Otherwise, I would simply include those rules, without an explicit question (actually some rules might be asked, but I think this one is not needed since typescript related). |
@aladdin-add Can you explain why this is marked as accepted? |
it is as you suggested in #13233 (comment) ? or we need 3+ 👍 from the team? |
Yeah, I don't think we should bypass our standard approval process. I'd like for other members of the team to have the chance to give their input. |
I'm championing this, but for the sake of making it easier to understand where we stand, can supporting team members please put 👍s on the corresponding PR rather than this issue? |
The version of ESLint you are using.
6.8.0
The problem you want to solve.
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
Your take on the correct solution to problem.
Using eslint --init, if chosen that typescript is in use, those rules should be added automatically.
Are you willing to submit a pull request to implement this change?
No
The text was updated successfully, but these errors were encountered: