diff --git a/.prettierrc.mjs b/.prettierrc.mjs index 31e43b8a..bf6965a4 100644 --- a/.prettierrc.mjs +++ b/.prettierrc.mjs @@ -18,6 +18,11 @@ const config = { '^@mantine-tests/(.*)$', '^@docs/(.*)$', '^@/.*$', + // scss as second to bottom + '^../(?!.*.scss$).*$', + '^./(?!.*.scss$).*$', + '\\.scss$', + // css at last '^../(?!.*.css$).*$', '^./(?!.*.css$).*$', '\\.css$', @@ -32,4 +37,4 @@ const config = { ], }; -export default config; \ No newline at end of file +export default config; diff --git a/package.json b/package.json index da956532..3b535995 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "start": "next start", "typecheck": "tsc --noEmit", "lint": "next lint && npm run lint:stylelint", - "lint:stylelint": "stylelint '**/*.css' --cache", + "lint:stylelint": "stylelint '**/*.*.{css,scss}' --cache", "jest": "jest", "jest:watch": "jest --watch", "prettier:check": "prettier --check \"**/*.{ts,tsx}\"",