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
Suggestion: Be more clear in differentiating "formatting" vs "style" #419
Comments
By "stylistic", we mean anything that enforces a preference, which could be formatting or, as you point out, something that could affect runtime behavior but isn't necessarily a problem (like Our problem as maintainers is that we keep getting little nitpicky options suggested to support someone's personal preferences, because on a Thursday that also falls on a full moon indents should be two spaces but every other day it should be three spaces. We just don't want to keep adding exceptions to support every possible preference. Eventually, I'd like to get rid of these rules altogether as I think they are generally a waste of time to build and maintain when you can just use a source code formatter, but in the meantime, we keep them for people to use but we don't want to maintain them. I really don't want to start introducing new terms or changing the meanings of terms at this point. We already have too many and during the rewrite I'd like to go through and be more intentional about which terms we use and why. |
👍 perfect, thanks @nzakas! I think we're using a fairly similar shared vocab - the blog post is referring to "stylistic" as both formatting & styles. I can just update the typescript-eslint.io docs site to mention this. |
What problem do you want to solve?
On typescript-eslint.io, we generally use the following vocabulary to describe areas of lint rule responsibilities:
However, https://eslint.org/blog/2020/05/changes-to-rules-policies/#what-are-the-changes%3F 1 -which we link to in the typescript-eslint What About Formatting? page- uses "stylistic" to describe both what we call 💩 "formatting" and 💅 "stylistic":
As a reader of that post, I'm actually now not sure - has ESLint frozen what we call 💅 "stylistic" rules? Or are both 💩 "formatting" and 💅 "stylistic" frozen?
Has the ESLint team been intentional about vocabulary in this area?
What do you think is the correct solution?
I'm a fan of 💩 formatting vs. 💅 stylistic vs. 🧠 logical as the nomenclature. Many -in my experience, most!- developers don't have strong grasp of the conceptual differences between 💩 formatting and 💅 stylistic, even if they understand generally the differences between formatters and linters.
Participation
Additional comments
I realize the silliness of suggesting vocabulary changes to a nearly 3 year old blog post 😄. But this shared vocab is something that would really benefit our work in explaining the differences between formatting & linting concerns.
Corresponding typescript-eslint issue: typescript-eslint/typescript-eslint#6495
Footnotes
Original PR adding the ESLint blog post: https://github.com/eslint/archive-website/pull/732 ↩
The text was updated successfully, but these errors were encountered: