Meta: Add eslint/css#9275
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/749e024f-1667-4032-9fc6-7f3f6dc1da83 Co-authored-by: fregante <[email protected]>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/749e024f-1667-4032-9fc6-7f3f6dc1da83 Co-authored-by: fregante <[email protected]>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/749e024f-1667-4032-9fc6-7f3f6dc1da83 Co-authored-by: fregante <[email protected]>
|
Yes there's room for custom rules, for example to avoid #9298 Let's add it, even if it means disabling most native rules. |
|
@copilot disable |
…o-invalid-properties exclusions Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/d5e8e282-de39-44b4-9163-14e23bdda5f5 Co-authored-by: fregante <[email protected]>
Done in 247f827:
The failing lint now shows 13 errors across 3 files:
|
eslint/css recommended rules and fix violations|
@copilot merge conflicts, disable css/no-invalid-properties and css/font-family-fallbacks globally, explain why you're using |
…lbacks globally, explain tolerant Co-authored-by: fregante <[email protected]>
Done in 6f1d7e1:
|
|
@copilot fix svelte config, then restore your previous fix for that code: |
…ion, re-add tolerant and font-family-fallbacks Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/97650c59-9480-4ebb-8d37-892e682db23c Co-authored-by: fregante <[email protected]>
... Done in 4bf3936:
|
|
|
||
| span:is([class*='emptyText'], [class*='developmentHelpText']):not( | ||
| :has(> button) | ||
| ) { |
There was a problem hiding this comment.
@g-plane strangely an extra & changed the indentation here, but shouldn't.
There was a problem hiding this comment.
Can you provide a minimal reproduction with playground?
There was a problem hiding this comment.
Interestingly this depends on whether the first selector exists. Also linebreakInPseudoParens: true
Co-authored-by: fregante <[email protected]> Co-authored-by: fregante <[email protected]>
Adds
@eslint/cssto lint all*.cssfiles in the project.Config changes (
eslint.config.js)@eslint/cssand add it as a CSS language plugin for**/*.csstolerant: true— required to parse modern CSS features (@containerrange syntax, nesting, etc.) without errorscss/no-important: 'off'—!importantis intentionally used throughout to override GitHub's stylescss/use-baseline: 'off'— we support the latest browsers onlycss/no-invalid-properties: 'off'— Bug:css/no-invalid-propertiescan't parse valid nested color functions eslint/css#434css/font-family-fallbacks: 'off'— GitHub-defined font stacks may not have generic fallbackssvelte/*rules for**/*.cssfiles — Svelte rules require the Svelte parser and crash when applied to CSS filesCSS fixes
clean-conversation-sidebar.cssspan:is(...)nested selector to& span:is(...)— corrects CSS nesting spec compliance (bare type selectors require&)clean-rich-text-editor.cssclip: rect(...)withclip-path: inset(50%)readable-title-change-events.cssword-break: break-wordwith standardoverflow-wrap: break-wordshow-associated-branch-prs-on-fork.cssfont: 600 12px / 1 inheritshorthand into individualfont-weight,font-size,line-height, andfont-familypropertiesTest URLs
Screenshot