Skip to content

Instantly share code, notes, and snippets.

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