1
0
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:
2023-01-11 19:51:07 +05:00
parent 985ed41a4b
commit 7a46e9857e
10 changed files with 251 additions and 13 deletions

View File

@@ -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
}