mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update to ESLint 9's "flat" configuration file format.
This commit is contained in:
parent
36844eefef
commit
c6716f9bac
9 changed files with 155 additions and 191 deletions
|
|
@ -1723,7 +1723,7 @@ function validateRuleList(ruleList, synchronous) {
|
|||
const allIds = {};
|
||||
for (const [ index, rule ] of ruleList.entries()) {
|
||||
const customIndex = index - rules.length;
|
||||
// eslint-disable-next-line no-inner-declarations, jsdoc/require-jsdoc
|
||||
// eslint-disable-next-line jsdoc/require-jsdoc
|
||||
function newError(property, value) {
|
||||
return new Error(
|
||||
`Property '${property}' of custom rule at index ${customIndex} is incorrect: '${value}'.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue