mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02: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
|
@ -267,8 +267,7 @@
|
|||
if (hashPrefix === decodedHash.substring(0, hashPrefix.length)) {
|
||||
markdown.value = decodedHash.substring(hashPrefix.length);
|
||||
}
|
||||
/* eslint-disable-next-line unicorn/prefer-optional-catch-binding */
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Invalid
|
||||
}
|
||||
}
|
||||
|
@ -277,8 +276,7 @@
|
|||
try {
|
||||
/* eslint-disable-next-line no-new */
|
||||
new URL("https://example.com/");
|
||||
/* eslint-disable-next-line unicorn/prefer-optional-catch-binding */
|
||||
} catch (error) {
|
||||
} catch {
|
||||
markdown.value = [
|
||||
"# Sorry",
|
||||
"",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue