mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Remove leftover references to eslint-plugin-es.
This commit is contained in:
parent
0ddbffdecf
commit
f694a56254
2 changed files with 3 additions and 2 deletions
|
@ -69,9 +69,9 @@
|
|||
"sourceType": "script"
|
||||
},
|
||||
"plugins": [
|
||||
"es",
|
||||
"jsdoc",
|
||||
"n",
|
||||
"regexp",
|
||||
"unicorn"
|
||||
],
|
||||
"reportUnusedDisableDirectives": true,
|
||||
|
|
|
@ -17,7 +17,7 @@ const languageJavaScript = /js|javascript/i;
|
|||
function cleanJsdocRulesFromEslintConfig(config) {
|
||||
const cleanedConfig = { ...config };
|
||||
for (const rule in config.rules) {
|
||||
if (/^(?:es|jsdoc|n|regexp|unicorn)\//.test(rule)) {
|
||||
if (/^(?:jsdoc|n|regexp|unicorn)\//.test(rule)) {
|
||||
delete cleanedConfig.rules[rule];
|
||||
}
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ module.exports = {
|
|||
config = cleanJsdocRulesFromEslintConfig(config);
|
||||
const results = linter.verify(fence.content, config);
|
||||
for (const result of results) {
|
||||
// @ts-ignore
|
||||
const lineNumber = fence.lineNumber + result.line;
|
||||
onError({
|
||||
"lineNumber": lineNumber,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue