Skip to content

Commit 896507e

Browse files
authored
CI: enable Prettier checking (open-telemetry#2290)
1 parent 7d1c558 commit 896507e

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.gitpod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Gitpod config. For details, see https://www.gitpod.io/docs/config-gitpod-file.
22

33
tasks:
4-
- init: npm install && npm run check-links
4+
- init: npm install && npm run check

hugo.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ params:
6464
# version ID in the filename below. Otherwise, for new paths, start at version
6565
# `001`. Note that social-media images must be preserved (or redirected)
6666
# forever.
67-
images: ["img/social/logo-wordmark-001.png"]
67+
images:
68+
- img/social/logo-wordmark-001.png
6869

6970
ui:
7071
footer_about_disable: true
@@ -109,7 +110,7 @@ params:
109110
url: https://github.com/open-telemetry
110111
icon: fab fa-github
111112
desc: Find us on GitHub.
112-
- name: "Slack #opentelemetry"
113+
- name: 'Slack #opentelemetry'
113114
url: https://cloud-native.slack.com/archives/CJFCJHG4Q
114115
icon: fab fa-slack
115116
desc: >-

package.json

+14-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"scripts": {
99
"_build": "hugo --cleanDestinationDir -e dev -DFE",
10-
"_check-links": "make check-links",
10+
"_check:links": "make check-links",
1111
"_get:no": "echo SKIPPING get operation",
1212
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
1313
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
@@ -20,19 +20,21 @@
2020
"build:production": "hugo --cleanDestinationDir --minify",
2121
"build": "npm run _build",
2222
"cd:public": "cd public &&",
23-
"check-links:all": "HTMLTEST_ARGS= npm run _check-links",
24-
"check-links": "npm run _check-links",
23+
"check": "npm run all -- check:*",
24+
"check:formatting": "npm run prettier:check-all",
25+
"check:links:all": "HTMLTEST_ARGS= npm run _check:links",
26+
"check:links": "npm run _check:links",
2527
"clean": "make clean",
2628
"cp:spec": "./scripts/cp-spec-pages.sh",
2729
"get:submodule": "npm run _get:${GET:-submodule}",
2830
"make:public": "make public ls-public",
29-
"postbuild:preview": "npm run _check-links",
30-
"postbuild:production": "npm run _check-links",
31-
"prebuild:preview": "npm run _prebuild",
32-
"prebuild:production": "npm run _prebuild",
31+
"postbuild:preview": "npm run _check:links",
32+
"postbuild:production": "npm run _check:links",
33+
"prebuild:preview": "run-s _prebuild check:formatting",
34+
"prebuild:production": "run-s _prebuild check:formatting",
3335
"prebuild": "npm run _prebuild",
34-
"precheck-links:all": "npm run build",
35-
"precheck-links": "npm run build",
36+
"precheck:links:all": "npm run build",
37+
"precheck:links": "npm run build",
3638
"prepare": "run-s get:submodule _prepare:docsy",
3739
"preserve:hugo": "npm run _prebuild",
3840
"prettier:check-all": "npx prettier --check .",
@@ -42,7 +44,7 @@
4244
"schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
4345
"serve:hugo": "npm run _serve:hugo",
4446
"serve": "npm run _serve",
45-
"test": "npm run check-links",
47+
"test": "npm run check:links",
4648
"update:pkg:docsy-dep": "npm install --save-dev autoprefixer@latest postcss@latest postcss-cli@latest",
4749
"update:pkg:hugo": "npm install --save-dev --save-exact hugo-extended@latest",
4850
"update:pkg:hugo+": "npm run update:pkg:hugo && npm run update:pkg:docsy-dep",
@@ -53,7 +55,8 @@
5355
},
5456
"private": true,
5557
"prettier": {
56-
"proseWrap": "always"
58+
"proseWrap": "always",
59+
"singleQuote": true
5760
},
5861
"textlint": {
5962
"rules": {

0 commit comments

Comments
 (0)