mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-05 13:31:47 +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
|
|
@ -1177,7 +1177,6 @@ function readConfig(file, parsers, fs, callback) {
|
|||
}
|
||||
// Read file
|
||||
file = helpers.expandTildePath(file, require("node:os"));
|
||||
// eslint-disable-next-line n/prefer-promises/fs
|
||||
fs.readFile(file, "utf8", (err, content) => {
|
||||
if (err) {
|
||||
// @ts-ignore
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ module.exports = {
|
|||
) {
|
||||
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