Created
December 5, 2020 12:54
-
-
Save cartant/02d681e26fbd3c6e3a4e44bf514494c4 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 = 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