Skip to content

Instantly share code, notes, and snippets.

@cartant
Created December 5, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cartant/919405d5e1c525f815462f28b9193594 to your computer and use it in GitHub Desktop.
Save cartant/919405d5e1c525f815462f28b9193594 to your computer and use it in GitHub Desktop.
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