From 22ba54c07d956ab47edf1999ae5c6d090bc56c01 Mon Sep 17 00:00:00 2001 From: Sebastian Good <2230835+scagood@users.noreply.github.com> Date: Tue, 7 Nov 2023 07:13:25 +0100 Subject: [PATCH] chore: Remove unused "meta.docs.category" property (#133) --- lib/rules/callback-return.js | 1 - lib/rules/exports-style.js | 1 - lib/rules/file-extension-in-import.js | 1 - lib/rules/global-require.js | 1 - lib/rules/handle-callback-err.js | 1 - lib/rules/no-callback-literal.js | 1 - lib/rules/no-deprecated-api.js | 1 - lib/rules/no-exports-assign.js | 1 - lib/rules/no-extraneous-import.js | 1 - lib/rules/no-extraneous-require.js | 1 - lib/rules/no-hide-core-modules.js | 1 - lib/rules/no-missing-import.js | 1 - lib/rules/no-missing-require.js | 1 - lib/rules/no-mixed-requires.js | 1 - lib/rules/no-new-require.js | 1 - lib/rules/no-path-concat.js | 1 - lib/rules/no-process-env.js | 1 - lib/rules/no-process-exit.js | 1 - lib/rules/no-restricted-import.js | 1 - lib/rules/no-restricted-require.js | 1 - lib/rules/no-sync.js | 1 - lib/rules/no-unpublished-bin.js | 1 - lib/rules/no-unpublished-import.js | 1 - lib/rules/no-unpublished-require.js | 1 - lib/rules/no-unsupported-features.js | 1 - lib/rules/no-unsupported-features/es-builtins.js | 1 - lib/rules/no-unsupported-features/es-syntax.js | 1 - lib/rules/no-unsupported-features/node-builtins.js | 1 - lib/rules/prefer-global/buffer.js | 1 - lib/rules/prefer-global/console.js | 1 - lib/rules/prefer-global/process.js | 1 - lib/rules/prefer-global/text-decoder.js | 1 - lib/rules/prefer-global/text-encoder.js | 1 - lib/rules/prefer-global/url-search-params.js | 1 - lib/rules/prefer-global/url.js | 1 - lib/rules/prefer-promises/dns.js | 1 - lib/rules/prefer-promises/fs.js | 1 - lib/rules/process-exit-as-throw.js | 1 - lib/rules/shebang.js | 1 - 39 files changed, 39 deletions(-) diff --git a/lib/rules/callback-return.js b/lib/rules/callback-return.js index 608a5f53..30f33f74 100644 --- a/lib/rules/callback-return.js +++ b/lib/rules/callback-return.js @@ -9,7 +9,6 @@ module.exports = { type: "suggestion", docs: { description: "require `return` statements after callbacks", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md", }, diff --git a/lib/rules/exports-style.js b/lib/rules/exports-style.js index f308b686..c9b87c38 100644 --- a/lib/rules/exports-style.js +++ b/lib/rules/exports-style.js @@ -227,7 +227,6 @@ module.exports = { meta: { docs: { description: "enforce either `module.exports` or `exports`", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/exports-style.md", }, diff --git a/lib/rules/file-extension-in-import.js b/lib/rules/file-extension-in-import.js index b74a4b55..a6666f67 100644 --- a/lib/rules/file-extension-in-import.js +++ b/lib/rules/file-extension-in-import.js @@ -34,7 +34,6 @@ module.exports = { docs: { description: "enforce the style of file extensions in `import` declarations", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/file-extension-in-import.md", }, diff --git a/lib/rules/global-require.js b/lib/rules/global-require.js index 6c5bd984..70584771 100644 --- a/lib/rules/global-require.js +++ b/lib/rules/global-require.js @@ -53,7 +53,6 @@ module.exports = { docs: { description: "require `require()` calls to be placed at top-level module scope", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/global-require.md", }, diff --git a/lib/rules/handle-callback-err.js b/lib/rules/handle-callback-err.js index d8891531..6abdba7a 100644 --- a/lib/rules/handle-callback-err.js +++ b/lib/rules/handle-callback-err.js @@ -9,7 +9,6 @@ module.exports = { type: "suggestion", docs: { description: "require error handling in callbacks", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md", }, diff --git a/lib/rules/no-callback-literal.js b/lib/rules/no-callback-literal.js index ca38da82..f05da2b6 100644 --- a/lib/rules/no-callback-literal.js +++ b/lib/rules/no-callback-literal.js @@ -9,7 +9,6 @@ module.exports = { docs: { description: "enforce Node.js-style error-first callback pattern is followed", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md", }, diff --git a/lib/rules/no-deprecated-api.js b/lib/rules/no-deprecated-api.js index d9770fda..3962be6f 100644 --- a/lib/rules/no-deprecated-api.js +++ b/lib/rules/no-deprecated-api.js @@ -691,7 +691,6 @@ module.exports = { meta: { docs: { description: "disallow deprecated APIs", - category: "Best Practices", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-deprecated-api.md", }, diff --git a/lib/rules/no-exports-assign.js b/lib/rules/no-exports-assign.js index c24c5ff1..29bc9c42 100644 --- a/lib/rules/no-exports-assign.js +++ b/lib/rules/no-exports-assign.js @@ -38,7 +38,6 @@ module.exports = { meta: { docs: { description: "disallow the assignment to `exports`", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-exports-assign.md", }, diff --git a/lib/rules/no-extraneous-import.js b/lib/rules/no-extraneous-import.js index 19ba846f..c84c9df3 100644 --- a/lib/rules/no-extraneous-import.js +++ b/lib/rules/no-extraneous-import.js @@ -15,7 +15,6 @@ module.exports = { docs: { description: "disallow `import` declarations which import extraneous modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-import.md", }, diff --git a/lib/rules/no-extraneous-require.js b/lib/rules/no-extraneous-require.js index d116748f..7d3321bd 100644 --- a/lib/rules/no-extraneous-require.js +++ b/lib/rules/no-extraneous-require.js @@ -16,7 +16,6 @@ module.exports = { docs: { description: "disallow `require()` expressions which import extraneous modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-require.md", }, diff --git a/lib/rules/no-hide-core-modules.js b/lib/rules/no-hide-core-modules.js index 653af02f..a854a479 100644 --- a/lib/rules/no-hide-core-modules.js +++ b/lib/rules/no-hide-core-modules.js @@ -57,7 +57,6 @@ module.exports = { docs: { description: "disallow third-party modules which are hiding core modules", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-hide-core-modules.md", }, diff --git a/lib/rules/no-missing-import.js b/lib/rules/no-missing-import.js index 98f11e5c..00e4d2b2 100644 --- a/lib/rules/no-missing-import.js +++ b/lib/rules/no-missing-import.js @@ -16,7 +16,6 @@ module.exports = { docs: { description: "disallow `import` declarations which import non-existence modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md", }, diff --git a/lib/rules/no-missing-require.js b/lib/rules/no-missing-require.js index 626541e0..1125767c 100644 --- a/lib/rules/no-missing-require.js +++ b/lib/rules/no-missing-require.js @@ -17,7 +17,6 @@ module.exports = { docs: { description: "disallow `require()` expressions which import non-existence modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md", }, diff --git a/lib/rules/no-mixed-requires.js b/lib/rules/no-mixed-requires.js index ad077e53..07717b3d 100644 --- a/lib/rules/no-mixed-requires.js +++ b/lib/rules/no-mixed-requires.js @@ -71,7 +71,6 @@ module.exports = { docs: { description: "disallow `require` calls to be mixed with regular variable declarations", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-mixed-requires.md", }, diff --git a/lib/rules/no-new-require.js b/lib/rules/no-new-require.js index d8b04657..d67903c5 100644 --- a/lib/rules/no-new-require.js +++ b/lib/rules/no-new-require.js @@ -9,7 +9,6 @@ module.exports = { type: "suggestion", docs: { description: "disallow `new` operators with calls to `require`", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-new-require.md", }, diff --git a/lib/rules/no-path-concat.js b/lib/rules/no-path-concat.js index 3bc9d078..f0557336 100644 --- a/lib/rules/no-path-concat.js +++ b/lib/rules/no-path-concat.js @@ -166,7 +166,6 @@ module.exports = { docs: { description: "disallow string concatenation with `__dirname` and `__filename`", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md", }, diff --git a/lib/rules/no-process-env.js b/lib/rules/no-process-env.js index 531f029b..6592adbe 100644 --- a/lib/rules/no-process-env.js +++ b/lib/rules/no-process-env.js @@ -13,7 +13,6 @@ module.exports = { type: "suggestion", docs: { description: "disallow the use of `process.env`", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-env.md", }, diff --git a/lib/rules/no-process-exit.js b/lib/rules/no-process-exit.js index 0cac5420..9be6f8b2 100644 --- a/lib/rules/no-process-exit.js +++ b/lib/rules/no-process-exit.js @@ -9,7 +9,6 @@ module.exports = { type: "suggestion", docs: { description: "disallow the use of `process.exit()`", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md", }, diff --git a/lib/rules/no-restricted-import.js b/lib/rules/no-restricted-import.js index 3d5c955f..f033c475 100644 --- a/lib/rules/no-restricted-import.js +++ b/lib/rules/no-restricted-import.js @@ -13,7 +13,6 @@ module.exports = { docs: { description: "disallow specified modules when loaded by `import` declarations", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-import.md", }, diff --git a/lib/rules/no-restricted-require.js b/lib/rules/no-restricted-require.js index 56cdad6c..2bc34d03 100644 --- a/lib/rules/no-restricted-require.js +++ b/lib/rules/no-restricted-require.js @@ -13,7 +13,6 @@ module.exports = { type: "suggestion", docs: { description: "disallow specified modules when loaded by `require`", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-require.md", }, diff --git a/lib/rules/no-sync.js b/lib/rules/no-sync.js index a7cb7dcf..242b0cc4 100644 --- a/lib/rules/no-sync.js +++ b/lib/rules/no-sync.js @@ -27,7 +27,6 @@ module.exports = { type: "suggestion", docs: { description: "disallow synchronous methods", - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md", }, diff --git a/lib/rules/no-unpublished-bin.js b/lib/rules/no-unpublished-bin.js index 3c36e07d..dd62181f 100644 --- a/lib/rules/no-unpublished-bin.js +++ b/lib/rules/no-unpublished-bin.js @@ -33,7 +33,6 @@ module.exports = { meta: { docs: { description: "disallow `bin` files that npm ignores", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md", }, diff --git a/lib/rules/no-unpublished-import.js b/lib/rules/no-unpublished-import.js index 23e5ddb3..7fd34bfa 100644 --- a/lib/rules/no-unpublished-import.js +++ b/lib/rules/no-unpublished-import.js @@ -15,7 +15,6 @@ module.exports = { docs: { description: "disallow `import` declarations which import private modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-import.md", }, diff --git a/lib/rules/no-unpublished-require.js b/lib/rules/no-unpublished-require.js index 1cf3655b..7e804765 100644 --- a/lib/rules/no-unpublished-require.js +++ b/lib/rules/no-unpublished-require.js @@ -16,7 +16,6 @@ module.exports = { docs: { description: "disallow `require()` expressions which import private modules", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md", }, diff --git a/lib/rules/no-unsupported-features.js b/lib/rules/no-unsupported-features.js index 28770f49..874f4ac0 100644 --- a/lib/rules/no-unsupported-features.js +++ b/lib/rules/no-unsupported-features.js @@ -1048,7 +1048,6 @@ module.exports = { docs: { description: "disallow unsupported ECMAScript features on the specified version", - category: "Possible Errors", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features.md", diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index 4acc00fd..5499e6c9 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -143,7 +143,6 @@ module.exports = { docs: { description: "disallow unsupported ECMAScript built-ins on the specified version", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md", }, diff --git a/lib/rules/no-unsupported-features/es-syntax.js b/lib/rules/no-unsupported-features/es-syntax.js index 39cb9603..f6a0a2db 100644 --- a/lib/rules/no-unsupported-features/es-syntax.js +++ b/lib/rules/no-unsupported-features/es-syntax.js @@ -523,7 +523,6 @@ module.exports = { docs: { description: "disallow unsupported ECMAScript syntax on the specified version", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-syntax.md", }, diff --git a/lib/rules/no-unsupported-features/node-builtins.js b/lib/rules/no-unsupported-features/node-builtins.js index 5b382f74..1824e5f7 100644 --- a/lib/rules/no-unsupported-features/node-builtins.js +++ b/lib/rules/no-unsupported-features/node-builtins.js @@ -379,7 +379,6 @@ module.exports = { docs: { description: "disallow unsupported Node.js built-in APIs on the specified version", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/node-builtins.md", }, diff --git a/lib/rules/prefer-global/buffer.js b/lib/rules/prefer-global/buffer.js index bd9f7bda..7494dc68 100644 --- a/lib/rules/prefer-global/buffer.js +++ b/lib/rules/prefer-global/buffer.js @@ -23,7 +23,6 @@ module.exports = { docs: { description: 'enforce either `Buffer` or `require("buffer").Buffer`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/buffer.md", }, diff --git a/lib/rules/prefer-global/console.js b/lib/rules/prefer-global/console.js index f810dd58..73aca52b 100644 --- a/lib/rules/prefer-global/console.js +++ b/lib/rules/prefer-global/console.js @@ -20,7 +20,6 @@ module.exports = { meta: { docs: { description: 'enforce either `console` or `require("console")`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md", }, diff --git a/lib/rules/prefer-global/process.js b/lib/rules/prefer-global/process.js index 09e08601..59510158 100644 --- a/lib/rules/prefer-global/process.js +++ b/lib/rules/prefer-global/process.js @@ -20,7 +20,6 @@ module.exports = { meta: { docs: { description: 'enforce either `process` or `require("process")`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md", }, diff --git a/lib/rules/prefer-global/text-decoder.js b/lib/rules/prefer-global/text-decoder.js index 4894af6a..b0c6c7d6 100644 --- a/lib/rules/prefer-global/text-decoder.js +++ b/lib/rules/prefer-global/text-decoder.js @@ -23,7 +23,6 @@ module.exports = { docs: { description: 'enforce either `TextDecoder` or `require("util").TextDecoder`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-decoder.md", }, diff --git a/lib/rules/prefer-global/text-encoder.js b/lib/rules/prefer-global/text-encoder.js index c1071dfc..a527470e 100644 --- a/lib/rules/prefer-global/text-encoder.js +++ b/lib/rules/prefer-global/text-encoder.js @@ -23,7 +23,6 @@ module.exports = { docs: { description: 'enforce either `TextEncoder` or `require("util").TextEncoder`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md", }, diff --git a/lib/rules/prefer-global/url-search-params.js b/lib/rules/prefer-global/url-search-params.js index 376e53f5..4c1d1699 100644 --- a/lib/rules/prefer-global/url-search-params.js +++ b/lib/rules/prefer-global/url-search-params.js @@ -23,7 +23,6 @@ module.exports = { docs: { description: 'enforce either `URLSearchParams` or `require("url").URLSearchParams`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md", }, diff --git a/lib/rules/prefer-global/url.js b/lib/rules/prefer-global/url.js index ee8e7051..7d2806d1 100644 --- a/lib/rules/prefer-global/url.js +++ b/lib/rules/prefer-global/url.js @@ -22,7 +22,6 @@ module.exports = { meta: { docs: { description: 'enforce either `URL` or `require("url").URL`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md", }, diff --git a/lib/rules/prefer-promises/dns.js b/lib/rules/prefer-promises/dns.js index ec672c1f..10bfd687 100644 --- a/lib/rules/prefer-promises/dns.js +++ b/lib/rules/prefer-promises/dns.js @@ -38,7 +38,6 @@ module.exports = { meta: { docs: { description: 'enforce `require("dns").promises`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md", }, diff --git a/lib/rules/prefer-promises/fs.js b/lib/rules/prefer-promises/fs.js index 35711aa3..c7a85f2b 100644 --- a/lib/rules/prefer-promises/fs.js +++ b/lib/rules/prefer-promises/fs.js @@ -40,7 +40,6 @@ module.exports = { meta: { docs: { description: 'enforce `require("fs").promises`', - category: "Stylistic Issues", recommended: false, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/fs.md", }, diff --git a/lib/rules/process-exit-as-throw.js b/lib/rules/process-exit-as-throw.js index f7e9910c..00fe2aa9 100644 --- a/lib/rules/process-exit-as-throw.js +++ b/lib/rules/process-exit-as-throw.js @@ -149,7 +149,6 @@ module.exports = { docs: { description: "require that `process.exit()` expressions use the same code path as `throw`", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/process-exit-as-throw.md", }, diff --git a/lib/rules/shebang.js b/lib/rules/shebang.js index ea9b6d7e..01f228bb 100644 --- a/lib/rules/shebang.js +++ b/lib/rules/shebang.js @@ -70,7 +70,6 @@ module.exports = { meta: { docs: { description: "require correct usage of shebang", - category: "Possible Errors", recommended: true, url: "https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/shebang.md", },