Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const baseRule = require("./no-foreach");
module.exports = {
meta: {
/* ... */
deprecated: true,
replacedBy: ["no-foreach"]
},
create(context) {
context.options = [{ types: ["Array"] }];
return baseRule.create(context);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment