-
Notifications
You must be signed in to change notification settings - Fork 64
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
New Rule: Sentences per line #317
Comments
It's funny, I have the exact opposite opinion on this. 😄 Is this something that Prettier can enforce? |
They chose not to in prettier/prettier#3302. The difficulty there was determining what constitutes a "sentence": prettier/prettier#3302 (comment). This could be done as a Prettier plugin though, which I personally would be satisfied with. 🙂 |
Yeah, I have the same concern over what constitutes a sentence. I think a Prettier plugin is probably a better way to go. |
Rule details
Enforce that each line of text has at most one sentence
What type of rule is this?
Warns about a potential problem
Example code
Participation
Additional comments
I'd previously made https://github.com/JoshuaKGoldberg/sentences-per-line as a contributed rule for Markdownlint. IMO keeping to one sentence per line is a good practice. Copying from its README: sentences-per-line makes sure no line contains more than one sentence. This is useful because:
We can define a "sentence" here as any characters followed by a text punctuation.
Abc.
would be a sentence;Abc. Def.
andAbc! Def?
would be two sentences.I'd understand if this is too opinionated for
@eslint/markdown
core - but do want to propose at least providing it as a rule.The text was updated successfully, but these errors were encountered: