Created
December 5, 2020 12:50
-
-
Save cartant/85ed115b63701446146e6a9f1b6849ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const baseRule = require("./no-foreach"); | |
module.exports = { | |
meta: { | |
/* ... */ | |
}, | |
create(context) { | |
const contextForBaseRule = { | |
...context, | |
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