Open Daydreamer-riri opened 7 months ago
I don't use Windows and couldn't test out - can you help verify if it's still an issue with the latest version?
I've just upgraded to the latest version, but the issue still persists.
https://github.com/antfu/eslint-config/assets/70067449/3c22bd12-28b3-409c-97b3-761cbf2abc98
This seems to be a problem with 'CRLF' when I switch 'CRLF' to 'LF' in vscode, the error disappears...
Hi @antfu , I made a minimum repo: https://github.com/daydreamer-riri/exlint-prettier-crf-error
https://github.com/antfu/eslint-config/assets/70067449/2508fb79-9eff-4791-9aa7-1e3763c0b7c2
This is a problem that may be upstream.
This seems to be a problem with 'CRLF' when I switch 'CRLF' to 'LF' in vscode, the error disappears...
@Daydreamer-riri I think if you just set VSCode, Prettier options, and Gitattributes to use LF
, the error won't exist. This is probably just a mismatch between ESLint rules' EOL and Prettier's EOL.
Describe the bug
It's OK on Linux.
Reproduction
https://github.com/Daydreamer-riri/vite-react-ssg README file
System Info
Used Package Manager
pnpm
Validations