You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Angular: According to the configuration html will report an error #494
Reload VScode first, if it still occurs, that means you were using different end_of_line previously, so run prettier --write . on all files once would fix this.
Activity
JounQin commentedon Jul 4, 2022
See angular-eslint/angular-eslint#1071
vnpp commentedon Jul 4, 2022
Same thing happened when I tried using the provided config


resolved:
Add to
endOfLine: 'auto'why-do-i-keep-getting-delete-cr-prettier-prettier
JounQin commentedon Jul 4, 2022
It seems you're missing a
.editorconfigwith correct config, for exampleend_of_line = lf.Take https://github.com/prettier/eslint-plugin-prettier/blob/master/.editorconfig as an example.
And you didn't follow angular-eslint/angular-eslint#1071 at all.
vnpp commentedon Jul 4, 2022
噢噢噢 thanks
vnpp commentedon Jul 4, 2022
hi @JounQin

The problem still occurs after adding
JounQin commentedon Jul 4, 2022
Reload VScode first, if it still occurs, that means you were using different end_of_line previously, so run
prettier --write .on all files once would fix this.vnpp commentedon Jul 4, 2022
npx prettier --write .resolvedthank you again
JounQin commentedon Jul 4, 2022
You'd better to have a
.gitattributeswith* text=auto eol=lffor git at the same time.