Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit db75575

Browse files
authored
Updated prettier script so it works in Azure DevOps CI (#182)
* changed end of line to AUTO * updated prettier script in package.json
1 parent ce5a509 commit db75575

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.prettierrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
trailingComma: "es5"
22
tabWidth: 4
33
semi: true
4-
endOfLine: lf
4+
endOfLine: auto
55
printWidth: 80

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@
284284
"lint:ts": "tslint -c tslint.json src/**/*.{ts,tsx}",
285285
"lint:python": "pylint src",
286286
"format": "npm-run-all format:*",
287-
"format:ts": "prettier --write src/**/*.{css,ts,tsx}",
287+
"format:ts": "prettier --config .prettierrc.yaml --write src/**/*.{css,ts,tsx}",
288288
"format:python": "black src",
289289
"check": "npm-run-all check:*",
290-
"check:ts": "prettier --check src/**/*.{css,ts,tsx}",
290+
"check:ts": "prettier --config .prettierrc.yaml --check src/**/*.{css,ts,tsx}",
291291
"check:python": "black src --check",
292292
"package": "vsce package"
293293
},

0 commit comments

Comments
 (0)