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
Create a "strict" config between "recommended-requiring-type-checking" and "all" #4648
Comments
The recommended set should be that set of best-practice rules. What rules do you propose we remove for the "strict" set? |
Exactly: those are the ones I'm proposing be added to the "strict" set. Or, maybe "opinionated" would be another good -perhaps better- name for it? From a quick pass over https://typescript-eslint.io/rules/#supported-rules...
...and so on. My exclusion criteria was pretty much anything related to formatting or that you wouldn't want to enable 80% of the time. Perhaps that's a good criteria for the rulesets?
|
oh sorry - I misunderstood your intention! |
Reference PR here with the list of rules I think would be reasonable to try starting with: #4706 A couple of notes:
|
Does the type definition rule default to “interface” or “type”? |
@stefee great question, but we generally ask that you don't post unrelated comments or questions on existing issues or PRs -- especially those that are already closed. It's hard for us to keep track of them and they're not very searchable for other users. Would you mind filing a new issue reporting that our docs are missing saying what the default is on https://typescript-eslint.io/rules/consistent-type-definitions? (hint: check https://github.com/typescript-eslint/typescript-eslint/blob/4a500b2/packages/eslint-plugin/src/rules/consistent-type-definitions.ts; it looks like there isn't a default -> you have to provide it yourself) |
Overview
Moving discussion out of https://twitter.com/JoshuaKGoldberg/status/1500610010576994306: it seems to me that there are at least two classifications of lint users we should target:
recommended
orrecommend-requiring-type-checking
I propose we create a
plugin:@typescript-eslint/strict
config that adds a suite of best practice rules on top ofrecommended-requiring-type-checking
.The text was updated successfully, but these errors were encountered: