1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-09 21:40:06 +00:00

feat(*): add line endings rule, add automatic formatting for fixable violations

This commit is contained in:
Krishna Acondy
2021-04-19 20:06:45 +01:00
parent 031a323839
commit 33a57c3163
32 changed files with 930 additions and 318 deletions

7
src/format/formatText.ts Normal file
View File

@@ -0,0 +1,7 @@
import { getLintConfig } from '../utils'
import { processText } from './shared'
export const formatText = async (text: string) => {
const config = await getLintConfig()
return processText(text, config)
}