Skip to content

Add maintainability preset#102

Merged
bartveneman merged 1 commit intomainfrom
claude/add-maintainability-preset
Mar 28, 2026
Merged

Add maintainability preset#102
bartveneman merged 1 commit intomainfrom
claude/add-maintainability-preset

Conversation

@bartveneman
Copy link
Copy Markdown
Member

Summary

  • Adds a new maintainability preset config (src/configs/maintainability.ts)
  • Includes rules that limit complexity and enforce conventions to keep CSS easy to reason about and manage over time
  • Documents the preset in the Usage section of README.md

Rules included

Rule Reason
max-average-declarations-per-rule Limits bloated rules
max-average-selector-complexity Keeps selectors simple on average
max-average-selectors-per-rule Limits overly broad rules
max-average-specificity Prevents specificity creep
max-declarations-per-rule Limits bloated individual rules
max-important-ratio Discourages overuse of !important
max-selector-complexity Prevents excessively complex selectors
max-selectors-per-rule Limits selector lists
max-unique-units Encourages a consistent unit system
min-declaration-uniqueness-ratio Catches repetitive declarations
min-selector-uniqueness-ratio Catches repetitive selectors
no-anonymous-layers Enforces named layers for reorderability
no-property-browserhacks Disallows legacy browser hacks

https://claude.ai/code/session_01CAf77nH8mZGYP7Rrx24PvB

Includes rules that limit complexity and enforce conventions to keep
CSS easy to reason about and manage over time.

https://claude.ai/code/session_01CAf77nH8mZGYP7Rrx24PvB
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.85%. Comparing base (de1fba3) to head (7e5f58e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #102   +/-   ##
=======================================
  Coverage   97.85%   97.85%           
=======================================
  Files          34       34           
  Lines         981      981           
  Branches      250      250           
=======================================
  Hits          960      960           
  Misses         18       18           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov-commenter
Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 1.76kB (2.57%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
stylelintPlugin-esm 70.24kB 1.76kB (2.57%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: stylelintPlugin-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
configs/maintainability.d.mts (New) 886 bytes 886 bytes 100.0% 🚀
configs/maintainability.mjs (New) 871 bytes 871 bytes 100.0% 🚀

Files in configs/maintainability.mjs:

  • ./src/configs/maintainability.ts → Total Size: 824 bytes

@bartveneman bartveneman merged commit eb02166 into main Mar 28, 2026
4 of 5 checks passed
@bartveneman bartveneman deleted the claude/add-maintainability-preset branch March 28, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants