Update .bashrc
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / eslint / lib / rules / no-this-before-super.js
index 6975ea060bf00dfa29f61482cb0c296340a1797a..5bfba66fc65c32ced16069fadda06224dfd1f862 100644 (file)
@@ -45,7 +45,11 @@ module.exports = {
             url: "https://eslint.org/docs/rules/no-this-before-super"
         },
 
-        schema: []
+        schema: [],
+
+        messages: {
+            noBeforeSuper: "'{{kind}}' is not allowed before 'super()'."
+        }
     },
 
     create(context) {
@@ -167,7 +171,7 @@ module.exports = {
             /**
              * Removes the top of stack item.
              *
-             * And this treverses all segments of this code path then reports every
+             * And this traverses all segments of this code path then reports every
              * invalid node.
              * @param {CodePath} codePath A code path which was ended.
              * @returns {void}
@@ -187,7 +191,7 @@ module.exports = {
                         const invalidNode = info.invalidNodes[i];
 
                         context.report({
-                            message: "'{{kind}}' is not allowed before 'super()'.",
+                            messageId: "noBeforeSuper",
                             node: invalidNode,
                             data: {
                                 kind: invalidNode.type === "Super" ? "super" : "this"