-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Deprecate formatting rules #987
Comments
Hi, as a user of this plugin and prettier, I'd maybe support the removal of formatting rules such as indent - that one's better handled by things like prettier. 2 thoughts, though:
|
The term “styling rules” was ambiguous.🙏 What I meant was that I want to remove rules from ESLint that can be handled by “prettier.” In other words, rules that do not modify the AST. |
Yeah, that's what I meant by "formatting rules", the naming here sucks generally :) That leaves my second point - some people prefer to use eslint rules over prettier and that I think is a valid choice as well... |
This depends on our policy, and deciding that is exactly the purpose of this issue. |
To clarify, this issue does not propose removing stylistic rules. It suggests considering the removal of rules that can be enforced by Prettier. related: #193 |
I am really opposed to being forced to use an entirely different formatting tool which is very opinionated I gave prettier a shot, but it created more annoyance for me than it solved. Here are my arguments against requiring an additional tool in the development stack:
Do we have another option: Having Edit |
I wrote a comment on another issue, but maybe I should have commented here 😓 So I'm reposting the same comment here.
However, maintainers have limited resources, so we give low priority to fixing/adding stylistic rules. I hope that those in the community who want to do it will submit a PR. |
I think to ease the load of stylistic rules for ESLint rules for formatting Typescript code already exist, and I feel and believe that there is no need for the This removes much of the complexity of essentially having to write a whole bunch of code that is capable of handling indentation for all the typescript nodes (which is error prone, complex and even may conflict with other stylistic typescript ESLint rules) |
If that's a possible idea, feel free to submit a PR :) |
Close this issue because we have reached an agreement on the conclusion. |
Conclusion
Ultimately, we maintainers have decided not to actively maintain formatting rules. However, we welcome PRs from the community.
Description
Styling rules can be handled by Prettier. I think we don’t need to support such rules in ESLint.
If possible, I’d like to deprecate all formatting-related rules in v3. What do you think?
Styling issues: https://github.com/sveltejs/eslint-plugin-svelte/issues?q=is%3Aopen+is%3Aissue+label%3Aformatting
The text was updated successfully, but these errors were encountered: