mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Remove deprecated ESLint rules after version update, sort rules by name.
This commit is contained in:
parent
ada9f6888d
commit
3db8b258dc
2 changed files with 13 additions and 16 deletions
|
|
@ -158,34 +158,33 @@
|
||||||
"jsdoc/tag-lines": ["error", "never", {"startLines":1}],
|
"jsdoc/tag-lines": ["error", "never", {"startLines":1}],
|
||||||
"jsdoc/valid-types": "error",
|
"jsdoc/valid-types": "error",
|
||||||
|
|
||||||
|
"n/callback-return": "error",
|
||||||
|
"n/exports-style": "error",
|
||||||
|
"n/file-extension-in-import": "error",
|
||||||
|
"n/global-require": "off",
|
||||||
"n/handle-callback-err": "error",
|
"n/handle-callback-err": "error",
|
||||||
"n/no-callback-literal": "error",
|
"n/no-callback-literal": "error",
|
||||||
|
"n/no-deprecated-api": "error",
|
||||||
"n/no-exports-assign": "error",
|
"n/no-exports-assign": "error",
|
||||||
"n/no-extraneous-import": "error",
|
"n/no-extraneous-import": "error",
|
||||||
"n/no-extraneous-require": "error",
|
"n/no-extraneous-require": "error",
|
||||||
|
"n/no-hide-core-modules": "error",
|
||||||
"n/no-missing-import": "error",
|
"n/no-missing-import": "error",
|
||||||
"n/no-missing-require": "error",
|
"n/no-missing-require": "error",
|
||||||
|
"n/no-mixed-requires": "error",
|
||||||
"n/no-new-require": "error",
|
"n/no-new-require": "error",
|
||||||
"n/no-path-concat": "error",
|
"n/no-path-concat": "error",
|
||||||
|
"n/no-process-env": "error",
|
||||||
"n/no-process-exit": "error",
|
"n/no-process-exit": "error",
|
||||||
|
"n/no-restricted-import": "error",
|
||||||
|
"n/no-restricted-require": "error",
|
||||||
|
"n/no-sync": "off",
|
||||||
"n/no-unpublished-bin": "error",
|
"n/no-unpublished-bin": "error",
|
||||||
"n/no-unpublished-import": "error",
|
"n/no-unpublished-import": "error",
|
||||||
"n/no-unpublished-require": "error",
|
"n/no-unpublished-require": "error",
|
||||||
"n/no-unsupported-features/es-builtins": "error",
|
"n/no-unsupported-features/es-builtins": "error",
|
||||||
"n/no-unsupported-features/es-syntax": "error",
|
"n/no-unsupported-features/es-syntax": "error",
|
||||||
"n/no-unsupported-features/node-builtins": "error",
|
"n/no-unsupported-features/node-builtins": "error",
|
||||||
"n/process-exit-as-throw": "error",
|
|
||||||
"n/shebang": "error",
|
|
||||||
"n/no-deprecated-api": "error",
|
|
||||||
"n/callback-return": "error",
|
|
||||||
"n/exports-style": "error",
|
|
||||||
"n/file-extension-in-import": "error",
|
|
||||||
"n/global-require": "off",
|
|
||||||
"n/no-mixed-requires": "error",
|
|
||||||
"n/no-process-env": "error",
|
|
||||||
"n/no-restricted-import": "error",
|
|
||||||
"n/no-restricted-require": "error",
|
|
||||||
"n/no-sync": "off",
|
|
||||||
"n/prefer-global/buffer": "error",
|
"n/prefer-global/buffer": "error",
|
||||||
"n/prefer-global/console": "error",
|
"n/prefer-global/console": "error",
|
||||||
"n/prefer-global/process": "error",
|
"n/prefer-global/process": "error",
|
||||||
|
|
@ -195,6 +194,8 @@
|
||||||
"n/prefer-global/url": "error",
|
"n/prefer-global/url": "error",
|
||||||
"n/prefer-promises/dns": "error",
|
"n/prefer-promises/dns": "error",
|
||||||
"n/prefer-promises/fs": "error",
|
"n/prefer-promises/fs": "error",
|
||||||
|
"n/process-exit-as-throw": "error",
|
||||||
|
"n/shebang": "error",
|
||||||
|
|
||||||
"regexp/no-super-linear-backtracking": "off",
|
"regexp/no-super-linear-backtracking": "off",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -916,7 +916,6 @@ test("readme", async(t) => {
|
||||||
test("validateJsonUsingConfigSchemaStrict", async(t) => {
|
test("validateJsonUsingConfigSchemaStrict", async(t) => {
|
||||||
t.plan(168);
|
t.plan(168);
|
||||||
const { addSchema, validate } =
|
const { addSchema, validate } =
|
||||||
// eslint-disable-next-line n/file-extension-in-import
|
|
||||||
await import("@hyperjump/json-schema/draft-07");
|
await import("@hyperjump/json-schema/draft-07");
|
||||||
addSchema(configSchemaStrict, configSchemaStrictUri);
|
addSchema(configSchemaStrict, configSchemaStrictUri);
|
||||||
const validateConfigSchema = await validate(configSchemaStrictUri);
|
const validateConfigSchema = await validate(configSchemaStrictUri);
|
||||||
|
|
@ -955,7 +954,6 @@ test("validateJsonUsingConfigSchemaStrict", async(t) => {
|
||||||
test("validateConfigSchemaAllowsUnknownProperties", async(t) => {
|
test("validateConfigSchemaAllowsUnknownProperties", async(t) => {
|
||||||
t.plan(4);
|
t.plan(4);
|
||||||
const { addSchema, validate } =
|
const { addSchema, validate } =
|
||||||
// eslint-disable-next-line n/file-extension-in-import
|
|
||||||
await import("@hyperjump/json-schema/draft-07");
|
await import("@hyperjump/json-schema/draft-07");
|
||||||
addSchema(configSchema, configSchemaUri);
|
addSchema(configSchema, configSchemaUri);
|
||||||
addSchema(configSchemaStrict, configSchemaStrictUri);
|
addSchema(configSchemaStrict, configSchemaStrictUri);
|
||||||
|
|
@ -990,7 +988,6 @@ test("validateConfigSchemaAllowsUnknownProperties", async(t) => {
|
||||||
test("validateConfigSchemaAppliesToUnknownProperties", async(t) => {
|
test("validateConfigSchemaAppliesToUnknownProperties", async(t) => {
|
||||||
t.plan(4);
|
t.plan(4);
|
||||||
const { addSchema, validate } =
|
const { addSchema, validate } =
|
||||||
// eslint-disable-next-line n/file-extension-in-import
|
|
||||||
await import("@hyperjump/json-schema/draft-07");
|
await import("@hyperjump/json-schema/draft-07");
|
||||||
addSchema(configSchema, configSchemaUri);
|
addSchema(configSchema, configSchemaUri);
|
||||||
const validateConfigSchema = await validate(configSchemaUri);
|
const validateConfigSchema = await validate(configSchemaUri);
|
||||||
|
|
@ -1014,7 +1011,6 @@ test("validateConfigExampleJson", async(t) => {
|
||||||
|
|
||||||
// Validate schema
|
// Validate schema
|
||||||
const { addSchema, validate } =
|
const { addSchema, validate } =
|
||||||
// eslint-disable-next-line n/file-extension-in-import
|
|
||||||
await import("@hyperjump/json-schema/draft-07");
|
await import("@hyperjump/json-schema/draft-07");
|
||||||
const schemaResult =
|
const schemaResult =
|
||||||
await validate(jsonSchemaVersion, configSchema, "BASIC");
|
await validate(jsonSchemaVersion, configSchema, "BASIC");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue