Commit 61f8479
Configure stylelint to lint both styled-components and plain CSS files
Added dual stylelint configuration to support the hybrid migration approach
where styled-components (.tsx) and plain CSS (.css) coexist during the
transition period.
Changes:
- Created .stylelintrc.css.json for plain CSS files
- Uses stylelint-config-standard without styled-components processor
- Maintains same linting rules as .stylelintrc for consistency
- Updated package.json scripts:
- lint:css now runs both lint:css:tsx and lint:css:plain
- lint:css:tsx: Lints .tsx files with styled-components (existing)
- lint:css:plain: Lints .css files with new config
This addresses Copilot's review comment about Modal.css not being covered
by CI stylelint. Now both legacy styled-components and new plain CSS files
will be linted during the build process.
Eventually, when all styled-components are migrated to plain CSS, we can
simplify to a single stylelint configuration for .css files only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix remaining CSS lint errors across the codebase
Addressed all remaining stylelint errors and warnings identified in review #21:
1. src/index.css:
- Moved @import statements to top of file (lines 1-2) to fix no-invalid-position-at-import-rule errors
2. src/app/components/Checkbox.css:
- Added stylelint-disable comment for intentional duplicate outline (webkit fallback)
- Added stylelint-disable block for no-descending-specificity warnings (focus-within selectors intentionally override input state selectors for proper CSS cascade)
3. src/app/components/ScrollLock.css:
- Added stylelint-disable comment for !important on overflow (must override scroll lock for printing)
4. src/app/content/components/ContentPane.css:
- Added stylelint-disable comments for !important on padding-left (must override responsive padding when sidebar is closed)
- Added stylelint-disable block for BEM modifier class names with double dashes
5. src/app/components/Typography/Links.css:
- Added stylelint-disable block for BEM modifier class names with double dashes
All lint disables include explanatory comments. These intentional overrides are necessary for proper functionality (focus states, print styles, responsive behavior, BEM naming convention).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix (most) css lint issues
Fix stylelint errors in Modal.css
Fixed all stylelint errors identified in lint.output:
- Added empty lines before comments (comment-empty-line-before)
- Converted hex colors to lowercase (#027EB5 → #027eb5, #0064A0 → #0064a0)
- Removed trailing zeros from rem values (3.0rem → 3rem)
All changes are formatting/style-only and don't affect functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
accommodate BEM patterns
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent 021d96b commit 61f8479
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
108 | | - | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | | - | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| |||
0 commit comments