Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

'type: dependencies':
- package.json
- yarn.lock
- pnpm-lock.yaml
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint -e && echo "\nHey! Did you Val(e)date your changes? 💡🤡\n"
pnpm commitlint -e && echo "\nHey! Did you Val(e)date your changes? 💡🤡\n"
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/
package.json
yarn.lock
pnpm-lock.yaml
*.mdx
2 changes: 1 addition & 1 deletion bin/check-pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

[[ $(bin/count-invalid-slugs) == "0" ]] && \
[ ! -d node_modules/ ] && echo "⚠️ You need to install node_modules first" && exit 1; \
yarn lint-staged || \
pnpm lint-staged || \
(echo "💔 Slug error(s):" && bin/list-invalid-slugs \
echo "⚠️ You must fix slugs in 'menu/navigation.json' before commit"; exit 1)
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ git clone [email protected]:scaleway/docs-content.git | bash -s -- cd docs-content

Helpful pre-commit commands:

- `yarn check-slugs` Output slugs that are not kebab-case well formatted.
- `pnpm check-slugs` Output slugs that are not kebab-case well formatted.

### Commit conventions

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"repository": "github:scaleway/docs-content",
"lint-staged": {
"*.json": [
"yarn format"
"pnpm format"
]
},
"devDependencies": {
Expand All @@ -30,7 +30,6 @@
"scripts": {
"prepare": "husky install",
"check-slugs": "bin/list-invalid-slugs",
"clean-categories": "bin/clean-categories",
"format": "yarn run prettier --config .prettierrc --write \"**/*.json\""
"format": "pnpm prettier --config .prettierrc --write \"**/*.json\""
}
}
Loading