mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Add @stylistic/eslint-plugin to ESLint configuration.
This commit is contained in:
parent
fe02674ce0
commit
164bbac651
21 changed files with 103 additions and 78 deletions
|
|
@ -25,8 +25,8 @@ module.exports = {
|
|||
punctuation = String((punctuation === undefined) ? allPunctuation : punctuation);
|
||||
const punctuationRe = new RegExp("[" + punctuation + "]$");
|
||||
const paragraphTokens =
|
||||
filterByTypesCached([ "paragraph" ]).
|
||||
filter((token) =>
|
||||
filterByTypesCached([ "paragraph" ])
|
||||
.filter((token) =>
|
||||
(token.parent?.type === "content") && !token.parent?.parent && (token.children.length === 1)
|
||||
);
|
||||
for (const paragraphToken of paragraphTokens) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue