Skip to content

Commit 036eb38

Browse files
committed
chore: pr feedback
1 parent 2cdb513 commit 036eb38

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.cursor/rules/code-style.mdc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ interface Props {
6060
- **Legal requirements**: Copyright notices, license headers
6161
- **Performance workarounds**: When you've tried to make it readable but performance requires the complex version
6262

63+
## SCSS Imports
64+
65+
Do not include `@use` imports in `.module.scss` files for modules that are already globally available via Vite's preprocessor configuration. The `@/styles/Helpers` module is globally available and should never be re-imported in individual component stylesheets.
66+
67+
```scss
68+
// Bad: Remove this line - @/styles/Helpers is globally available
69+
@use '@/styles/Helpers' as *;
70+
71+
.root {
72+
padding: toRem(20);
73+
}
74+
```
75+
6376
## Refactoring Tips
6477

6578
1. **Extract complex logic** into well-named functions

src/components/Common/UI/DescriptionList/DescriptionList.module.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@use '@/styles/Helpers' as *;
2-
31
.root {
42
width: 100%;
53

0 commit comments

Comments
 (0)