mirror of
https://github.com/sasjs/lint.git
synced 2026-01-15 00:00:05 +00:00
feat: add new config maxDataLineLength
This commit is contained in:
@@ -13,6 +13,11 @@ export interface LintRule {
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface LineLintRuleOptions {
|
||||
isHeaderLine?: boolean
|
||||
isDataLine?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* A LineLintRule is run once per line of text.
|
||||
*/
|
||||
@@ -22,7 +27,7 @@ export interface LineLintRule extends LintRule {
|
||||
value: string,
|
||||
lineNumber: number,
|
||||
config?: LintConfig,
|
||||
isHeaderLine?: boolean
|
||||
options?: LineLintRuleOptions
|
||||
) => Diagnostic[]
|
||||
fix?: (value: string, config?: LintConfig) => string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user