Skip to content

Instantly share code, notes, and snippets.

@phenomnomnominal
Last active August 18, 2018 06:43
Show Gist options
  • Save phenomnomnominal/8227319af9e6d1a032fe2c86836a91f9 to your computer and use it in GitHub Desktop.
Save phenomnomnominal/8227319af9e6d1a032fe2c86836a91f9 to your computer and use it in GitHub Desktop.
Example of the basic Rule API from TSLint
// 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