mirror of
https://github.com/sasjs/lint.git
synced 2026-01-10 14:00:05 +00:00
feat(lint): add rules for lowercase file names, max line length and no tab indentation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Diagnostic } from './Diagnostic'
|
||||
import { LintConfig } from './LintConfig'
|
||||
import { LintRuleType } from './LintRuleType'
|
||||
|
||||
/**
|
||||
@@ -17,7 +18,7 @@ export interface LintRule {
|
||||
*/
|
||||
export interface LineLintRule extends LintRule {
|
||||
type: LintRuleType.Line
|
||||
test: (value: string, lineNumber: number) => Diagnostic[]
|
||||
test: (value: string, lineNumber: number, config?: LintConfig) => Diagnostic[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user