1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-14 07:40:05 +00:00

feat: add a new config maxHeaderLineLength

This commit is contained in:
2023-01-10 14:48:18 +05:00
parent 4cb2fe8a69
commit b6e9ee0825
10 changed files with 107 additions and 10 deletions

View File

@@ -18,7 +18,12 @@ export interface LintRule {
*/
export interface LineLintRule extends LintRule {
type: LintRuleType.Line
test: (value: string, lineNumber: number, config?: LintConfig) => Diagnostic[]
test: (
value: string,
lineNumber: number,
config?: LintConfig,
isHeaderLine?: boolean
) => Diagnostic[]
fix?: (value: string, config?: LintConfig) => string
}