Skip to content

Commit

Permalink
Add eslint & stylelint scripts, update lint script, update ci label
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleemboyer committed Feb 13, 2024
1 parent f2862f7 commit 1424a35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
- name: Run linters
run: npm run lint
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"scripts": {
"build": "next build",
"lint": "next lint",
"eslint:check": "next lint",
"eslint:fix": "next lint --fix",
"lint": "npm run stylelint:check && npm run eslint:check",
"prepare": "husky",
"prettier:check": "npx prettier . --check",
"prettier:write": "npx prettier . --write",
"start": "next dev"
"prettier:fix": "npx prettier . --write",
"start": "next dev",
"stylelint:check": "npx stylelint **/*.css",
"stylelint:fix": "npx stylelint **/*.css --fix"
},
"dependencies": {
"next": "^14.1.0",
Expand Down

0 comments on commit 1424a35

Please sign in to comment.