diff --git a/.eslintrc.json b/.eslintrc.json index 859c5227..ac6dade5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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", @@ -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", diff --git a/test/markdownlint-cli2-test.js b/test/markdownlint-cli2-test.js index 432f10b9..c088f200 100644 --- a/test/markdownlint-cli2-test.js +++ b/test/markdownlint-cli2-test.js @@ -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, @@ -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,