Skip to content

Commit e4ff60e

Browse files
committed
Seperate npm commands for linting js and scss
This allows these commands to be executed seperately, needed if we want to run these task as seperate job in GitHub Actions.
1 parent f0302f0 commit e4ff60e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"scripts": {
1616
"test": "vitest run",
1717
"test:watch": "vitest watch",
18-
"lint": "standard | snazzy && stylelint 'app/**/*.scss'",
18+
"lint": "npm run lint:javascript && npm run lint:scss",
19+
"lint:scss": "stylelint 'app/**/*.scss'",
20+
"lint:javascript": "standard | snazzy",
1921
"format": "standard --fix && stylelint 'app/**/*.scss' --fix",
2022
"ci": "bin/setup && bin/rails server",
2123
"dev": "vite dev"

0 commit comments

Comments
 (0)