-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Inclusion of barely-more-than-formatting rules? #26
Comments
All of those are stylistic - stylistic rules objectively prevent bugs, despite the incorrect belief of some that they’re purely aesthetic. |
@ljharb I agree but don't see how that's relevant here? Does part of this issue imply otherwise accidentally? |
ah, maybe i misread. I think that it's better for the scope of this plugin to be stylistic and not just formatting, since it's likely that eslint will continue to remove swaths of rules over time and punt the work to the community. |
From my point of view, I named it
I think the current problem might not be "how we categorized them", but rather "what ESLint would let go". If ESLint team wants to keep maintaining In short, I'd be happy to have them here as long as ESLint team also agrees on that. |
Close in favor of eslint/eslint#17681 |
Following up on eslint/eslint#17522 & #19: I think there is a small discrepancy between the name (stylistic) of this plugin and what it's going to be used by most devs as at time of announcement (formatting). eslint/eslint#17522 mentions several rules that aren't covered by some or all formatters, but debatably may fall into the category of stylistic rules this plugin should cover:
curly
padding-line-between-statements
no-unexpected-multiline
no-mixed-operators
Would it be reasonable to include these rules in eslint-stylistic, but only enable them in a dedicated config for non-formatting stylistic rules? If not, and this config really is just for the formatting rules, maybe it should be named eslint-formatting after all? (is that a false dichotomy?)
For anecdotal context/evidence, in https://github.com/JoshuaKGoldberg/create-typescript-app (which uses Prettier for formatting):
@typescript-eslint/padding-line-between-statements
is being run in ESLint (https://github.com/JoshuaKGoldberg/create-typescript-app/blob/ae148f607cdd79e829d8c7dfcec28045a3eb3953/.eslintrc.cjs#L163)cc @bradzacher
The text was updated successfully, but these errors were encountered: