]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/no-buffer-constructor.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / no-buffer-constructor.js
index bf4c8891ad1adfff8eabc35aae2ff9b445711526..0b73c7674b614c00c1c256d6b57119de7677eb89 100644 (file)
@@ -1,6 +1,7 @@
 /**
  * @fileoverview disallow use of the Buffer() constructor
  * @author Teddy Katz
+ * @deprecated in ESLint v7.0.0
  */
 "use strict";
 
@@ -8,15 +9,19 @@
 // Rule Definition
 //------------------------------------------------------------------------------
 
+/** @type {import('../shared/types').Rule} */
 module.exports = {
     meta: {
+        deprecated: true,
+
+        replacedBy: [],
+
         type: "problem",
 
         docs: {
-            description: "disallow use of the `Buffer()` constructor",
-            category: "Node.js and CommonJS",
+            description: "Disallow use of the `Buffer()` constructor",
             recommended: false,
-            url: "https://eslint.org/docs/rules/no-buffer-constructor"
+            url: "https://eslint.org/docs/latest/rules/no-buffer-constructor"
         },
 
         schema: [],