mirror of
https://github.com/sasjs/lint.git
synced 2026-01-05 11:40:06 +00:00
feat(*): add line endings rule, add automatic formatting for fixable violations
This commit is contained in:
@@ -17,6 +17,7 @@ const test = (value: string, lineNumber: number) =>
|
||||
severity: Severity.Warning
|
||||
}
|
||||
]
|
||||
const fix = (value: string) => value.trimEnd()
|
||||
|
||||
/**
|
||||
* Lint rule that checks for the presence of trailing space(s) in a given line of text.
|
||||
@@ -26,5 +27,6 @@ export const noTrailingSpaces: LineLintRule = {
|
||||
name,
|
||||
description,
|
||||
message,
|
||||
test
|
||||
test,
|
||||
fix
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user