Last active
August 18, 2018 06:43
-
-
Save phenomnomnominal/8227319af9e6d1a032fe2c86836a91f9 to your computer and use it in GitHub Desktop.
Example of the basic Rule API from TSLint
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
// Dependencies: | |
import { RuleFailure, Rules } from 'tslint'; | |
import { SourceFile } from 'typescript'; | |
export class Rule extends Rules.AbstractRule { | |
public apply (sourceFile: SourceFile): Array<RuleFailure> { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment