Skip to content

Commit e866df3

Browse files
committed
Configure auto end-of-line for Prettier
Which cannot be set in .editorconfig. Also remove old workaround for NPM.
1 parent f978bae commit e866df3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.gitattributes

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@
33

44
# Set svg to binary type, as SVG is unlikely to be editted by hand. Can be treated as checked in blob
55
*.svg binary
6-
7-
# .gitattributes in project root
8-
# npm now seems to be insisting on LF - see https://github.com/npm/npm/issues/17161
9-
package.json text eol=lf
10-
package-lock.json text eol=lf

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"test": "vscode-test"
112112
},
113113
"prettier": {
114+
"endOfLine": "auto",
114115
"plugins": [
115116
"prettier-plugin-organize-imports"
116117
]

0 commit comments

Comments
 (0)