url: "https://eslint.org/docs/rules/no-this-before-super"
},
- schema: []
+ schema: [],
+
+ messages: {
+ noBeforeSuper: "'{{kind}}' is not allowed before 'super()'."
+ }
},
create(context) {
/**
* 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}
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"