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, {
options: {
value: [{ types: ["Array"] }],
writable: false
}
});
return baseRule.create(contextForBaseRule);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment