Created
May 15, 2020 17:27
-
-
Save beeman/3a5e174a3b055077f0d684b853184f9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export const myRule = (_: any): Rule => { | |
return (tree: Tree): Tree => { | |
const files: any[] = []; | |
tree.visit((file) => { | |
files.push(file); | |
}); | |
console.log("Files count", files.length); | |
return tree; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment