Skip to content

Commit

Permalink
CI: enable Prettier checking (open-telemetry#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Feb 7, 2023
1 parent 7d1c558 commit 896507e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gitpod config. For details, see https://www.gitpod.io/docs/config-gitpod-file.

tasks:
- init: npm install && npm run check-links
- init: npm install && npm run check
5 changes: 3 additions & 2 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ params:
# version ID in the filename below. Otherwise, for new paths, start at version
# `001`. Note that social-media images must be preserved (or redirected)
# forever.
images: ["img/social/logo-wordmark-001.png"]
images:
- img/social/logo-wordmark-001.png

ui:
footer_about_disable: true
Expand Down Expand Up @@ -109,7 +110,7 @@ params:
url: https://github.com/open-telemetry
icon: fab fa-github
desc: Find us on GitHub.
- name: "Slack #opentelemetry"
- name: 'Slack #opentelemetry'
url: https://cloud-native.slack.com/archives/CJFCJHG4Q
icon: fab fa-slack
desc: >-
Expand Down
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"scripts": {
"_build": "hugo --cleanDestinationDir -e dev -DFE",
"_check-links": "make check-links",
"_check:links": "make check-links",
"_get:no": "echo SKIPPING get operation",
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
Expand All @@ -20,19 +20,21 @@
"build:production": "hugo --cleanDestinationDir --minify",
"build": "npm run _build",
"cd:public": "cd public &&",
"check-links:all": "HTMLTEST_ARGS= npm run _check-links",
"check-links": "npm run _check-links",
"check": "npm run all -- check:*",
"check:formatting": "npm run prettier:check-all",
"check:links:all": "HTMLTEST_ARGS= npm run _check:links",
"check:links": "npm run _check:links",
"clean": "make clean",
"cp:spec": "./scripts/cp-spec-pages.sh",
"get:submodule": "npm run _get:${GET:-submodule}",
"make:public": "make public ls-public",
"postbuild:preview": "npm run _check-links",
"postbuild:production": "npm run _check-links",
"prebuild:preview": "npm run _prebuild",
"prebuild:production": "npm run _prebuild",
"postbuild:preview": "npm run _check:links",
"postbuild:production": "npm run _check:links",
"prebuild:preview": "run-s _prebuild check:formatting",
"prebuild:production": "run-s _prebuild check:formatting",
"prebuild": "npm run _prebuild",
"precheck-links:all": "npm run build",
"precheck-links": "npm run build",
"precheck:links:all": "npm run build",
"precheck:links": "npm run build",
"prepare": "run-s get:submodule _prepare:docsy",
"preserve:hugo": "npm run _prebuild",
"prettier:check-all": "npx prettier --check .",
Expand All @@ -42,7 +44,7 @@
"schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
"serve:hugo": "npm run _serve:hugo",
"serve": "npm run _serve",
"test": "npm run check-links",
"test": "npm run check:links",
"update:pkg:docsy-dep": "npm install --save-dev autoprefixer@latest postcss@latest postcss-cli@latest",
"update:pkg:hugo": "npm install --save-dev --save-exact hugo-extended@latest",
"update:pkg:hugo+": "npm run update:pkg:hugo && npm run update:pkg:docsy-dep",
Expand All @@ -53,7 +55,8 @@
},
"private": true,
"prettier": {
"proseWrap": "always"
"proseWrap": "always",
"singleQuote": true
},
"textlint": {
"rules": {
Expand Down

0 comments on commit 896507e

Please sign in to comment.