Last active
September 16, 2018 01:06
-
-
Save phenomnomnominal/8b1e486dd6491c3ef077c8fa3d16623c 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
import { AbstractWalker } from 'tslint'; | |
import { forEachChild, Node, SourceFile } from 'typescript'; | |
class NoFDescribeOrFItWalker extends AbstractWalker { | |
public walk (sourceFile: SourceFile) { | |
const walkNode = (node: Node): void => { | |
// ... | |
// evaluate rule | |
// ... | |
return forEachChild(node, walkNode); | |
}; | |
return forEachChild(sourceFile, walkNode); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment