mirror of
https://github.com/sasjs/lint.git
synced 2026-01-05 03:30:06 +00:00
Revert "feat(*): add line endings rule, add automatic formatting for fixable violations"
This reverts commit 33a57c3163.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { LineEndings } from './LineEndings'
|
||||
import { LintConfig } from './LintConfig'
|
||||
import { LintRuleType } from './LintRuleType'
|
||||
|
||||
@@ -109,33 +108,6 @@ describe('LintConfig', () => {
|
||||
expect(config.indentationMultiple).toEqual(0)
|
||||
})
|
||||
|
||||
it('should create an instance with the line endings set to LF', () => {
|
||||
const config = new LintConfig({ lineEndings: 'lf' })
|
||||
|
||||
expect(config).toBeTruthy()
|
||||
expect(config.lineEndings).toEqual(LineEndings.LF)
|
||||
})
|
||||
|
||||
it('should create an instance with the line endings set to CRLF', () => {
|
||||
const config = new LintConfig({ lineEndings: 'crlf' })
|
||||
|
||||
expect(config).toBeTruthy()
|
||||
expect(config.lineEndings).toEqual(LineEndings.CRLF)
|
||||
})
|
||||
|
||||
it('should create an instance with the line endings set to LF by default', () => {
|
||||
const config = new LintConfig({})
|
||||
|
||||
expect(config).toBeTruthy()
|
||||
expect(config.lineEndings).toEqual(LineEndings.LF)
|
||||
})
|
||||
|
||||
it('should throw an error with an invalid value for line endings', () => {
|
||||
expect(() => new LintConfig({ lineEndings: 'test' })).toThrowError(
|
||||
`Invalid value for lineEndings: can be ${LineEndings.LF} or ${LineEndings.CRLF}`
|
||||
)
|
||||
})
|
||||
|
||||
it('should create an instance with all flags set', () => {
|
||||
const config = new LintConfig({
|
||||
noTrailingSpaces: true,
|
||||
|
||||
Reference in New Issue
Block a user