Skip to content

Commit

Permalink
Remove deprecated ESLint rules after version update, sort rules by name.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Nov 8, 2023
1 parent 0600eb1 commit 560dbfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 12 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,32 @@
"require-atomic-updates": "off",
"sort-keys": "off",

"n/callback-return": "error",
"n/exports-style": "error",
"n/file-extension-in-import": "error",
"n/global-require": "off",
"n/handle-callback-err": "error",
"n/no-callback-literal": "error",
"n/no-deprecated-api": "error",
"n/no-exports-assign": "error",
"n/no-extraneous-import": "error",
"n/no-extraneous-require": "error",
"n/no-missing-import": "error",
"n/no-missing-require": "error",
"n/no-mixed-requires": "error",
"n/no-new-require": "error",
"n/no-path-concat": "error",
"n/no-process-env": "error",
"n/no-process-exit": "error",
"n/no-restricted-import": "error",
"n/no-restricted-require": "error",
"n/no-sync": "error",
"n/no-unpublished-bin": "error",
"n/no-unpublished-import": "error",
"n/no-unpublished-require": "error",
"n/no-unsupported-features/es-builtins": "error",
"n/no-unsupported-features/es-syntax": "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": "error",
"n/prefer-global/buffer": "error",
"n/prefer-global/console": "error",
"n/prefer-global/process": "error",
Expand All @@ -78,6 +76,8 @@
"n/prefer-global/url": "error",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",
"n/process-exit-as-throw": "error",
"n/shebang": "error",

"unicorn/no-null": "off",
"unicorn/prefer-module": "off",
Expand Down
2 changes: 0 additions & 2 deletions test/markdownlint-cli2-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ test("validateMarkdownlintConfigSchema", async (t) => {

// Validate schema
const { addSchema, validate } =
// eslint-disable-next-line n/file-extension-in-import
await import("@hyperjump/json-schema/draft-07");
const schemaResult = await validate(
jsonSchemaVersion,
Expand Down Expand Up @@ -113,7 +112,6 @@ test("validateMarkdownlintCli2ConfigSchema", async (t) => {

// Validate schema
const { addSchema, validate } =
// eslint-disable-next-line n/file-extension-in-import
await import("@hyperjump/json-schema/draft-07");
const schemaResult = await validate(
jsonSchemaVersion,
Expand Down

0 comments on commit 560dbfc

Please sign in to comment.