mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +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
|
|
@ -16,9 +16,9 @@ module.exports = {
|
|||
"function": function MD041(params, onError) {
|
||||
const level = Number(params.config.level || 1);
|
||||
if (!frontMatterHasTitle(params.frontMatterLines, params.config.front_matter_title)) {
|
||||
params.parsers.micromark.tokens.
|
||||
filter((token) => !nonContentTokens.has(token.type) && !isHtmlFlowComment(token)).
|
||||
every((token) => {
|
||||
params.parsers.micromark.tokens
|
||||
.filter((token) => !nonContentTokens.has(token.type) && !isHtmlFlowComment(token))
|
||||
.every((token) => {
|
||||
let isError = true;
|
||||
if ((token.type === "atxHeading") || (token.type === "setextHeading")) {
|
||||
isError = (getHeadingLevel(token) !== level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue