Skip to content

Commit ca80521

Browse files
josephperrottatscott
authored andcommitted
ci: use prettier to format yml files (angular#42136)
Use prettier to format all yml files in the repo via the ng-dev format tooling. PR Close angular#42136
1 parent 4259945 commit ca80521

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.ng-dev/format.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import {FormatConfig} from '../dev-infra/format/config';
44
* Configuration for the `ng-dev format` command.
55
*/
66
export const format: FormatConfig = {
7+
'prettier': {
8+
'matchers': [
9+
'**/*.{yaml,yml}',
10+
]
11+
},
712
'clang-format': {
813
'matchers': [
914
'**/*.{js,ts}',

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"tabs": false,
5+
"singleQuote": true,
6+
"semicolon": true,
7+
"quoteProps": "preserve",
8+
"bracketSpacing": false
9+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
"mutation-observer": "^1.0.3",
195195
"nock": "^13.0.3",
196196
"ora": "^5.0.0",
197+
"prettier": "^2.3.0",
197198
"rollup-plugin-hashbang": "^2.2.2",
198199
"sauce-connect": "https://saucelabs.com/downloads/sc-4.6.2-linux.tar.gz",
199200
"semver": "^7.3.5",

yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10800,6 +10800,11 @@ prepend-http@^2.0.0:
1080010800
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
1080110801
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
1080210802

10803+
prettier@^2.3.0:
10804+
version "2.3.0"
10805+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
10806+
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
10807+
1080310808
pretty-bytes@^5.3.0:
1080410809
version "5.6.0"
1080510810
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"
@@ -11880,7 +11885,6 @@ sauce-connect-launcher@^1.2.4:
1188011885

1188111886
"sauce-connect@https://saucelabs.com/downloads/sc-4.6.2-linux.tar.gz":
1188211887
version "0.0.0"
11883-
uid "7b7f35433af9c3380758e048894d7b9aecf3754e"
1188411888
resolved "https://saucelabs.com/downloads/sc-4.6.2-linux.tar.gz#7b7f35433af9c3380758e048894d7b9aecf3754e"
1188511889

1188611890
saucelabs@^1.5.0:

0 commit comments

Comments
 (0)