Skip to content

Commit 7ea731e

Browse files
committed
feat: implement automated code formatting
1 parent aaea93a commit 7ea731e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030

3131
- name: Install Dependencies
3232
run: npm install --workspaces
33-
33+
3434
- name: Code Linting
3535
run: |
3636
npm run lint
37-
npm run lint --workspaces --if-present
37+
npm run lint --workspaces --if-present
38+
39+
- name: Check formatting
40+
run: npm run format:check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"prepare": "node ./scripts/prepare.js",
2222
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx,json}\" \"test/**/*.{js,jsx,ts,tsx,json}\"",
2323
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx,json}\" \"test/**/*.{js,jsx,ts,tsx,json}\"",
24-
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,css,md,json,scss} test/**/*.{js,jsx,ts,tsx,json} packages/git-proxy-cli/test/**/*.{js,jsx,ts,tsx,json} packages/git-proxy-cli/index.js --config ./.prettierrc",
24+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml,css,scss}\" --ignore-path .gitignore --config ./.prettierrc",
25+
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml,css,scss}\" --ignore-path .gitignore --config ./.prettierrc",
2526
"gen-schema-doc": "node ./scripts/doc-schema.js",
2627
"cypress:run": "cypress run"
2728
},

0 commit comments

Comments
 (0)