Skip to content

Commit

Permalink
feat(eslint-config): set endOfLine to auto in prettier rules (#1029)
Browse files Browse the repository at this point in the history
Set `endOfLine` to auto in prettier rules
  • Loading branch information
tszhong0411 authored Feb 9, 2025
2 parents 38fac91 + f57ea28 commit 04d46fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-jokes-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tszhong0411/eslint-config': patch
---

Set `endOfLine` to auto in prettier rules
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/prettier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const prettier: Linter.Config[] = [
// Avoid conflicts
...prettierConfig.rules,

'prettier/prettier': 'error',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off'
}
Expand Down

0 comments on commit 04d46fa

Please sign in to comment.