mirror of
https://github.com/sasjs/lint.git
synced 2026-01-13 15:20:05 +00:00
fix: maxLineLength rule should be off when non positive number is provided
This commit is contained in:
@@ -68,12 +68,9 @@ export class LintConfig {
|
||||
this.lineLintRules.pop()
|
||||
}
|
||||
|
||||
if (json?.maxLineLength) {
|
||||
if (json?.maxLineLength > 0) {
|
||||
this.lineLintRules.push(maxLineLength)
|
||||
|
||||
if (!isNaN(json?.maxLineLength)) {
|
||||
this.maxLineLength = json.maxLineLength
|
||||
}
|
||||
this.maxLineLength = json.maxLineLength
|
||||
|
||||
if (!isNaN(json?.maxHeaderLineLength)) {
|
||||
this.maxHeaderLineLength = json.maxHeaderLineLength
|
||||
|
||||
Reference in New Issue
Block a user