Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const task: TaskFn = (absPath) => {
const editorConfig = new IniFile(absPath, '.editorconfig')
editorConfig.set('*', {
indent_style: 'space',
indent_size: 2,
end_of_line: 'lf',
charset: 'utf-8',
trim_trailing_whitespace: true,
insert_final_newline: true,
})
editorConfig.set('*.json', {
insert_final_newline: 'ignore',
})
editorConfig.set('*.md', {
trim_trailing_whitespace: false,