Skip to content

Commit

Permalink
Add lint and format scripts for pipeline. Update code quality workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Dec 19, 2024
1 parent 4bfa464 commit c1142e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: npm ci

- name: Lint code
run: npm run lint
run: npm run lint:ci

run-formatting-checks:
runs-on: ubuntu-latest
Expand All @@ -78,4 +78,4 @@ jobs:
run: npm ci

- name: Format code
run: npm run format
run: npm run format:ci
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"test": "vitest --run",
"test:coverage": "vitest --run --coverage",
"lint": "npx eslint packages/**/src/ --fix --config eslint.config.js",
"lint:ci": "npx eslint packages/**/src/ --config eslint.config.js",
"format": "npx prettier packages/**/src --write",
"format:ci": "npx prettier packages/**/src --check",
"build:storybook": "storybook build",
"build:comet-uswds": "cd packages/comet-uswds && rollup -c",
"build:comet-data-viz": "cd packages/comet-data-viz && rollup -c",
Expand Down

0 comments on commit c1142e7

Please sign in to comment.