mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Change ESLint ecmaVersion to 2019, remove unused catch binding.
This commit is contained in:
parent
aafd0830a2
commit
fb49877c86
2 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018
|
"ecmaVersion": 2019
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"node": true,
|
"node": true,
|
||||||
|
|
|
||||||
|
|
@ -345,8 +345,7 @@ function getEnabledRulesPerLineNumber(
|
||||||
...config,
|
...config,
|
||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
// eslint-disable-next-line unicorn/prefer-optional-catch-binding
|
} catch {
|
||||||
} catch (error) {
|
|
||||||
// Ignore parse errors for inline configuration
|
// Ignore parse errors for inline configuration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue