Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 7e56ec1

Browse files
committed
chore: use the same linter names as m
Use the same script names (e.g. yarn format:write) as we do in the monorepo, so that it's easier to switch between projects.
1 parent 6ec7c23 commit 7e56ec1

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
node-version: 12.x
3232

3333
- name: Install Node Modules
34-
run: yarn
34+
run: yarn install
3535

3636
- name: Lint
37-
run: |
38-
yarn lint
39-
yarn fmt
37+
run: yarn lint
38+
39+
- name: Formatting
40+
run: yarn format:check

.github/workflows/preview.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
path: "/node_modules"
3838
key: node-${{ hashFiles('yarn.lock') }}
3939

40+
- name: Install Node Modules
41+
run: yarn install
42+
4043
- name: Create Deployment
4144
id: deployment
4245
run: ./ci/scripts/github_deployment.sh create

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
3-
"fmt": "prettier --check '**/*.{json,md,yaml,yml}'",
4-
"fmt:fix": "prettier --write '**/*.{json,md,yaml,yml}'",
3+
"format:check": "prettier --check '**/*.{css,html,js,json,md,scss,ts,tsx}'",
4+
"format:write": "prettier --write '**/*.{css,html,js,json,md,scss,ts,tsx}'",
55
"lint": "markdownlint '**/*.md'",
66
"lint:fix": "markdownlint --fix '**/*.md'"
77
},
@@ -18,10 +18,11 @@
1818
}
1919
},
2020
"lint-staged": {
21-
"*.{json,yaml,yml}": "prettier --write",
22-
"*.md": [
23-
"markdownlint --fix",
21+
"*.{css,html,json,md,yaml,yml}": [
2422
"prettier --write"
23+
],
24+
"*.md": [
25+
"markdownlint --fix"
2526
]
2627
}
2728
}

0 commit comments

Comments
 (0)