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

Commit 260b0c5

Browse files
committed
chore: use the same linter settings as the monorepo
Use the same script names (e.g. yarn format:write) and extension settings as we do in the monorepo, so that it's easier to switch between projects
1 parent af6b4a9 commit 260b0c5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ 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+
if: always()
41+
run: yarn format:check

package.json

Lines changed: 5 additions & 3 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,jsx,ts,tsx,yaml,yml}'",
4+
"format:write": "prettier --write '**/*.{css,html,js,json,jsx,ts,tsx,yaml,yml}'",
55
"lint": "markdownlint '**/*.md'",
66
"lint:fix": "markdownlint --fix '**/*.md'",
77
"prepare": "husky install"
@@ -14,7 +14,9 @@
1414
"prettier": "^2.2.1"
1515
},
1616
"lint-staged": {
17-
"*.{json,yaml,yml}": "prettier --write",
17+
"*.{css,html,js,json,jsx,ts,tsx,yaml,yml}": [
18+
"prettier --write"
19+
],
1820
"*.md": [
1921
"markdownlint --fix",
2022
"prettier --write"

0 commit comments

Comments
 (0)