From 27410a9ba4cbc6a649a7e459e1aea4a3f15153fb Mon Sep 17 00:00:00 2001 From: Chris Barr Date: Thu, 16 Mar 2017 08:39:20 -0400 Subject: [PATCH] #348 Fix rule generation script to contain new tslint import paths closes #348 --- templates/rule.snippet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/rule.snippet b/templates/rule.snippet index 4030bdd66..58d427c9d 100644 --- a/templates/rule.snippet +++ b/templates/rule.snippet @@ -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'; @@ -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'