From af6a47b08d45f3430da387f9a385d145f957fad6 Mon Sep 17 00:00:00 2001 From: wafuwafu13 Date: Sun, 22 Aug 2021 11:22:36 +0900 Subject: [PATCH] Docs: Update deprecated information --- docs/rules/lines-around-comment.md | 2 ++ lib/rules/callback-return.js | 1 + lib/rules/global-require.js | 1 + lib/rules/handle-callback-err.js | 1 + lib/rules/id-blacklist.js | 1 + lib/rules/indent-legacy.js | 1 + lib/rules/lines-around-directive.js | 2 +- lib/rules/newline-after-var.js | 2 +- lib/rules/newline-before-return.js | 2 +- lib/rules/no-buffer-constructor.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-modules.js | 1 + lib/rules/no-sync.js | 1 + lib/rules/require-jsdoc.js | 1 + lib/rules/valid-jsdoc.js | 1 + 19 files changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/rules/lines-around-comment.md b/docs/rules/lines-around-comment.md index ae543bd837b..70282513da0 100644 --- a/docs/rules/lines-around-comment.md +++ b/docs/rules/lines-around-comment.md @@ -1,5 +1,7 @@ # require empty lines around comments (lines-around-comment) +This rule was **deprecated** in ESLint v4.0.0 and replaced by the [`padding-line-between-statements`](padding-line-between-statements.md) rule. + Many style guides require empty lines before or after comments. The primary goal of these rules is to make the comments easier to read and improve readability of the code. diff --git a/lib/rules/callback-return.js b/lib/rules/callback-return.js index fa66e6383b7..e3c394d9526 100644 --- a/lib/rules/callback-return.js +++ b/lib/rules/callback-return.js @@ -1,6 +1,7 @@ /** * @fileoverview Enforce return after a callback. * @author Jamund Ferguson + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/global-require.js b/lib/rules/global-require.js index 09d0332007e..99e05dd1474 100644 --- a/lib/rules/global-require.js +++ b/lib/rules/global-require.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule for disallowing require() outside of the top-level module context * @author Jamund Ferguson + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/handle-callback-err.js b/lib/rules/handle-callback-err.js index b92490ad16b..5aecf7a95c8 100644 --- a/lib/rules/handle-callback-err.js +++ b/lib/rules/handle-callback-err.js @@ -1,6 +1,7 @@ /** * @fileoverview Ensure handling of errors when we know they exist. * @author Jamund Ferguson + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/id-blacklist.js b/lib/rules/id-blacklist.js index 60f6e73ed05..361e87dddab 100644 --- a/lib/rules/id-blacklist.js +++ b/lib/rules/id-blacklist.js @@ -2,6 +2,7 @@ * @fileoverview Rule that warns when identifier names that are * specified in the configuration are used. * @author Keith Cirkel (http://keithcirkel.co.uk) + * @deprecated in ESLint v7.5.0 */ "use strict"; diff --git a/lib/rules/indent-legacy.js b/lib/rules/indent-legacy.js index a26ee87b130..06fb51607a3 100644 --- a/lib/rules/indent-legacy.js +++ b/lib/rules/indent-legacy.js @@ -4,6 +4,7 @@ * This rule has been ported and modified from nodeca. * @author Vitaly Puzrin * @author Gyandeep Singh + * @deprecated in ESLint v4.0.0 */ "use strict"; diff --git a/lib/rules/lines-around-directive.js b/lib/rules/lines-around-directive.js index fb439dad6a3..5bdcc927114 100644 --- a/lib/rules/lines-around-directive.js +++ b/lib/rules/lines-around-directive.js @@ -1,7 +1,7 @@ /** * @fileoverview Require or disallow newlines around directives. * @author Kai Cataldo - * @deprecated + * @deprecated in ESLint v4.0.0 */ "use strict"; diff --git a/lib/rules/newline-after-var.js b/lib/rules/newline-after-var.js index 4809d9bfc5a..d6a5e060fc6 100644 --- a/lib/rules/newline-after-var.js +++ b/lib/rules/newline-after-var.js @@ -1,7 +1,7 @@ /** * @fileoverview Rule to check empty newline after "var" statement * @author Gopal Venkatesan - * @deprecated + * @deprecated in ESLint v4.0.0 */ "use strict"; diff --git a/lib/rules/newline-before-return.js b/lib/rules/newline-before-return.js index de94b5bea88..0825ffdf2eb 100644 --- a/lib/rules/newline-before-return.js +++ b/lib/rules/newline-before-return.js @@ -1,7 +1,7 @@ /** * @fileoverview Rule to require newlines before `return` statement * @author Kai Cataldo - * @deprecated + * @deprecated in ESLint v4.0.0 */ "use strict"; diff --git a/lib/rules/no-buffer-constructor.js b/lib/rules/no-buffer-constructor.js index 152dda0ceae..7e9e6e77c3b 100644 --- a/lib/rules/no-buffer-constructor.js +++ b/lib/rules/no-buffer-constructor.js @@ -1,6 +1,7 @@ /** * @fileoverview disallow use of the Buffer() constructor * @author Teddy Katz + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-mixed-requires.js b/lib/rules/no-mixed-requires.js index a02de9104bd..023b059a14f 100644 --- a/lib/rules/no-mixed-requires.js +++ b/lib/rules/no-mixed-requires.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to enforce grouped require statements for Node.JS * @author Raphael Pigulla + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-new-require.js b/lib/rules/no-new-require.js index 063f783e70c..4317e9ab603 100644 --- a/lib/rules/no-new-require.js +++ b/lib/rules/no-new-require.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to disallow use of new operator with the `require` function * @author Wil Moore III + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-path-concat.js b/lib/rules/no-path-concat.js index fc1f894f878..e1dabc98974 100644 --- a/lib/rules/no-path-concat.js +++ b/lib/rules/no-path-concat.js @@ -1,6 +1,7 @@ /** * @fileoverview Disallow string concatenation when using __dirname and __filename * @author Nicholas C. Zakas + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-process-env.js b/lib/rules/no-process-env.js index 49d1734906e..788f3a94541 100644 --- a/lib/rules/no-process-env.js +++ b/lib/rules/no-process-env.js @@ -1,6 +1,7 @@ /** * @fileoverview Disallow the use of process.env() * @author Vignesh Anand + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-process-exit.js b/lib/rules/no-process-exit.js index 77c9cfd7cbd..a3d64e7897c 100644 --- a/lib/rules/no-process-exit.js +++ b/lib/rules/no-process-exit.js @@ -1,6 +1,7 @@ /** * @fileoverview Disallow the use of process.exit() * @author Nicholas C. Zakas + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-restricted-modules.js b/lib/rules/no-restricted-modules.js index b4d798daea8..043a4415094 100644 --- a/lib/rules/no-restricted-modules.js +++ b/lib/rules/no-restricted-modules.js @@ -1,6 +1,7 @@ /** * @fileoverview Restrict usage of specified node modules. * @author Christian Schulz + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/no-sync.js b/lib/rules/no-sync.js index c114a662a5b..c8d6f6587eb 100644 --- a/lib/rules/no-sync.js +++ b/lib/rules/no-sync.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to check for properties whose identifier ends with the string Sync * @author Matt DuVall + * @deprecated in ESLint v7.0.0 */ "use strict"; diff --git a/lib/rules/require-jsdoc.js b/lib/rules/require-jsdoc.js index e581b2bee46..08d8cebbc34 100644 --- a/lib/rules/require-jsdoc.js +++ b/lib/rules/require-jsdoc.js @@ -1,6 +1,7 @@ /** * @fileoverview Rule to check for jsdoc presence. * @author Gyandeep Singh + * @deprecated in ESLint v5.10.0 */ "use strict"; diff --git a/lib/rules/valid-jsdoc.js b/lib/rules/valid-jsdoc.js index 9ec6938e35a..ca8ea0b2ba8 100644 --- a/lib/rules/valid-jsdoc.js +++ b/lib/rules/valid-jsdoc.js @@ -1,6 +1,7 @@ /** * @fileoverview Validates JSDoc comments are syntactically correct * @author Nicholas C. Zakas + * @deprecated in ESLint v5.10.0 */ "use strict";