.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / eslint / lib / rules / no-global-assign.js
index 4ab0c706446256a48b4af21b45d1efd4b0e13d53..ea854c4aa8cd9bf8fe4b6544a21d6ec40821f2c5 100644 (file)
@@ -32,7 +32,11 @@ module.exports = {
                 },
                 additionalProperties: false
             }
-        ]
+        ],
+
+        messages: {
+            globalShouldNotBeModified: "Read-only global '{{name}}' should not be modified."
+        }
     },
 
     create(context) {
@@ -60,8 +64,10 @@ module.exports = {
             ) {
                 context.report({
                     node: identifier,
-                    message: "Read-only global '{{name}}' should not be modified.",
-                    data: identifier
+                    messageId: "globalShouldNotBeModified",
+                    data: {
+                        name: identifier.name
+                    }
                 });
             }
         }