Skip to content

Commit 38a357e

Browse files
committed
fix: pass cwd to CSS rating
Attempts to resolve the issue where the CSS rating can't find a dependency.
1 parent ba2120d commit 38a357e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runner/ratings/built-in-ratings/valid-css-rating.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const validCssRating: PerFileRating = {
1818
rate: async (code, _filePath) => {
1919
const linterResult = await stylelint.lint({
2020
code: code,
21+
cwd: import.meta.dirname,
2122
config: {
2223
extends: ['stylelint-config-recommended-scss'],
2324
defaultSeverity: 'warning',

0 commit comments

Comments
 (0)