Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
#348 Fix rule generation script to contain new tslint import paths
Browse files Browse the repository at this point in the history
closes #348
  • Loading branch information
Chris Barr authored and HamletDRC committed Mar 17, 2017
1 parent 7141be1 commit 27410a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/rule.snippet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ts from 'typescript';
import * as Lint from 'tslint/lib/lint';
import * as Lint from 'tslint';

import {ErrorTolerantWalker} from './utils/ErrorTolerantWalker';
import {ExtendedMetadata} from './utils/ExtendedMetadata';
Expand All @@ -20,6 +20,9 @@ export class Rule extends Lint.Rules.AbstractRule {
type: 'maintainability', // one of: 'functionality' | 'maintainability' | 'style' | 'typescript'
description: '... add a meaningful one line description',
options: null,
optionsDescription: '',
optionExamples: [], //Remove this property if the rule has no options
typescriptOnly: false,
issueClass: 'Non-SDL', // one of: 'SDL' | 'Non-SDL' | 'Ignored'
issueType: 'Warning', // one of: 'Error' | 'Warning'
severity: 'Low', // one of: 'Critical' | 'Important' | 'Moderate' | 'Low'
Expand Down

0 comments on commit 27410a9

Please sign in to comment.