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

@ -251,7 +251,6 @@ test("configBadHybrid", (t) => new Promise((resolve) => {
t.truthy(err, "Did not get an error for bad child JSON.");
t.true(err instanceof Error, "Error not instance of Error.");
t.truthy(err.message.match(
// eslint-disable-next-line max-len
/^Unable to parse '[^']*'; Parser \d+: (Unexpected token|Expected property name)/
), "Error message unexpected.");
t.true(!result, "Got result for bad child JSON.");
@ -332,7 +331,6 @@ test("configBadJsonSync", (t) => {
},
{
"message":
// eslint-disable-next-line max-len
/Unable to parse '[^']*'; Parser \d+: (Unexpected token|Expected property name)/
},
"Did not get correct exception for bad JSON."
@ -347,7 +345,6 @@ test("configBadChildJsonSync", (t) => {
},
{
"message":
// eslint-disable-next-line max-len
/Unable to parse '[^']*'; Parser \d+: (Unexpected token|Expected property name)/
},
"Did not get correct exception for bad child JSON."
@ -441,7 +438,6 @@ test("configBadHybridSync", (t) => {
[ JSON.parse, require("toml").parse, require("js-yaml").load ]);
},
{
// eslint-disable-next-line max-len
"message": /^Unable to parse '[^']*'; Parser \d+: (Unexpected token|Expected property name)/
},
"Did not get correct exception for bad content."

View file

@ -656,7 +656,6 @@ test("customRulesOnErrorNull", (t) => new Promise((resolve) => {
t.is(
// @ts-ignore
err.message,
// eslint-disable-next-line max-len
"Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.",
"Did not get correct exception for null object."
);
@ -687,7 +686,6 @@ test("customRulesOnErrorNullSync", (t) => {
markdownlint.sync(options);
},
{
// eslint-disable-next-line max-len
"message": "Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'."
},
"Did not get correct exception for null object."
@ -777,7 +775,6 @@ test("customRulesOnErrorBad", (t) => {
},
{
"message":
// eslint-disable-next-line max-len
`Value of '${propertyNames}' passed to onError by 'NAME' is incorrect for 'string'.`
},
"Did not get correct exception for bad object."
@ -848,7 +845,6 @@ test("customRulesOnErrorInvalid", (t) => {
},
{
"message":
// eslint-disable-next-line max-len
`Value of '${propertyNames}' passed to onError by 'NAME' is incorrect for 'string'.`
},
"Did not get correct exception for invalid object."
@ -1056,7 +1052,6 @@ test("customRulesOnErrorInvalidHandled", (t) => new Promise((resolve) => {
"ruleDescription": "description",
"ruleInformation": null,
"errorDetail": "This rule threw an exception: " +
// eslint-disable-next-line max-len
"Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.",
"errorContext": null,
"errorRange": null,
@ -1098,7 +1093,6 @@ test("customRulesOnErrorInvalidHandledSync", (t) => {
"ruleDescription": "description",
"ruleInformation": null,
"errorDetail": "This rule threw an exception: " +
// eslint-disable-next-line max-len
"Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.",
"errorContext": null,
"errorRange": null,