Remove deprecated ESLint rules after version update.

This commit is contained in:
David Anson 2023-11-05 20:13:12 -08:00
parent 760055e129
commit 3b1dfe42df
10 changed files with 8 additions and 57 deletions

View file

@ -12,7 +12,7 @@ const helpers = require("../helpers");
const cache = require("./cache");
// @ts-ignore
// eslint-disable-next-line camelcase, max-len, no-inline-comments, no-undef
// eslint-disable-next-line camelcase, no-inline-comments, no-undef
const dynamicRequire = (typeof __non_webpack_require__ === "undefined") ? require : /* c8 ignore next */ __non_webpack_require__;
// Capture native require implementation for dynamic loading of modules
@ -604,7 +604,6 @@ function lintContent(
// eslint-disable-next-line jsdoc/require-jsdoc
function throwError(property) {
throw new Error(
// eslint-disable-next-line max-len
`Value of '${property}' passed to onError by '${ruleName}' is incorrect for '${name}'.`);
}
// eslint-disable-next-line jsdoc/require-jsdoc

View file

@ -42,7 +42,6 @@ function convertHeadingToHTMLFragment(headingText) {
inlineText
.toLowerCase()
// RegExp source with Ruby's \p{Word} expanded into its General Categories
// eslint-disable-next-line max-len
// https://github.com/gjtorikian/html-pipeline/blob/main/lib/html/pipeline/toc_filter.rb
// https://ruby-doc.org/core-3.0.2/Regexp.html
.replace(