Skip to content

Commit d2300c2

Browse files
committed
Add stylelint to GH actions
1 parent 60188d5 commit d2300c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm run lint
5-
npm run lint:styles
65
npm test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test:coverage": "vitest run --coverage",
1414
"test:ui": "vitest --ui --open",
1515
"test:watch": "vitest",
16-
"lint": "eslint -c .eslintrc --ext .svelte,.ts src",
16+
"lint": "npm run lint:js && npm run lint:styles",
17+
"lint:js": "eslint -c .eslintrc --ext .svelte,.ts src",
1718
"lint:styles": "stylelint --config .stylelintrc \"src/**/*.{css,scss}\"",
1819
"format": "eslint -c .eslintrc --fix --ext .svelte,.ts --fix src",
1920
"format:prettier": "prettier --write src/**/{*.svelte,*.ts,*.scss}",
@@ -55,4 +56,4 @@
5556
"vite-plugin-pwa": "^0.17.2",
5657
"vitest": "^0.34.6"
5758
}
58-
}
59+
}

0 commit comments

Comments
 (0)