Skip to content

Instantly share code, notes, and snippets.

@cartant
Created December 5, 2020 12:55
Show Gist options
  • Save cartant/edbbc632cb4ea0b5ab3266b4bd3f4765 to your computer and use it in GitHub Desktop.
Save cartant/edbbc632cb4ea0b5ab3266b4bd3f4765 to your computer and use it in GitHub Desktop.
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