Skip to content

Commit

Permalink
feat: add endOfLine config to defineConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 committed Feb 10, 2025
1 parent 6520c00 commit 36e992e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ export function defineConfig(options: DefineConfigOptions = {}): Config {
builtinPlugins.push('prettier-plugin-packagejson')
}

const config = {
const config: Config = {
printWidth: 120,
singleQuote: true,
semi: false,
importOrder: importsOrder,
packageSortOrder: packageJsonOrder,
endOfLine: 'auto',
plugins: [...builtinPlugins, ...normalizeToArray(plugins)],
...rest,
}
Expand Down

0 comments on commit 36e992e

Please sign in to comment.