mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update and simplify .eslintrc.json.
This commit is contained in:
parent
a4ff6061b3
commit
0ddbffdecf
5 changed files with 9 additions and 104 deletions
|
|
@ -2926,7 +2926,6 @@ function readConfig(file, parsers, fs, callback) {
|
|||
}
|
||||
// Read file
|
||||
file = helpers.expandTildePath(file, __webpack_require__(/*! node:os */ "?e6c4"));
|
||||
// eslint-disable-next-line n/prefer-promises/fs
|
||||
fs.readFile(file, "utf8", function (err, content) {
|
||||
if (err) {
|
||||
// @ts-ignore
|
||||
|
|
@ -3540,6 +3539,7 @@ module.exports = {
|
|||
while (current = getTokenParentOfType(current, unorderedParentTypes)) {
|
||||
if (current.type === "listUnordered") {
|
||||
nesting++;
|
||||
// eslint-disable-next-line no-continue
|
||||
continue;
|
||||
} else if (current.type === "listOrdered") {
|
||||
nesting = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue