CRMR: replace gale with stylelint for CSS linting - #6
Merged
Merged
Conversation
- drop `@lyricalstring/gale` from `devDependencies`, `trustedDependencies`, and `lint-staged`
- add `stylelint`, `stylelint-config-standard`, `stylelint-config-standard-scss`
- `lint:css`/`lint:css:fix` and the `*.{css,scss}` `lint-staged` entry run `stylelint`
- `stylelint.config.js` scopes `selector-class-pattern` camelCase to `*.module.{css,scss}` so global sheets keep third-party `.hljs-*` names
- pin `media-feature-range-notation` to `prefix` — range syntax is newer than Vite's default build target
- disable `custom-property-empty-line-before` and `no-descending-specificity`
- autofix CSS: modern `rgb()` notation, `#fff` shorthand, blank line between rules
- `DesignSystem.module.css` swaps deprecated `word-break: break-word` for `overflow-wrap`
- quote `Roboto`/`SFMono-Regular`/`Menlo`/`Consolas` in `global.css` font stacks to keep their casing
- `pr-format` skill examples reference `stylelint`
✅ Deploy Preview for crammr ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
codebend3r
added a commit
that referenced
this pull request
Sep 6, 2026
## Changes
- drop `@lyricalstring/gale` from `devDependencies`,
`trustedDependencies`, and `lint-staged`
- add `stylelint`, `stylelint-config-standard`,
`stylelint-config-standard-scss`
- `lint:css`/`lint:css:fix` and the `*.{css,scss}` `lint-staged` entry
run `stylelint`
- `stylelint.config.js` scopes the camelCase `selector-class-pattern` to
`*.module.{css,scss}` so global sheets keep third-party `.hljs-*` names
- `media-feature-range-notation` pinned to `prefix` — range syntax
(`width <= 640px`) is newer than Vite's default build target
- `custom-property-empty-line-before` off (blank lines group the
`global.css` tokens) and `no-descending-specificity` off (base/variant
module pattern trips it without a cascade conflict)
- autofix across `src/**/*.css`: modern `rgb()` notation, `#fff`
shorthand, blank line between rules
- `DesignSystem.module.css` swaps deprecated `word-break: break-word`
for `overflow-wrap`
- `global.css` quotes `Roboto`/`SFMono-Regular`/`Menlo`/`Consolas` so
`value-keyword-case` doesn't lowercase them
- `pr-format` skill examples reference `stylelint`
## Test notes
- no gale-era config existed, so the rule set is
`stylelint-config-standard` minus the three deviations above
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
@lyricalstring/galefromdevDependencies,trustedDependencies, andlint-stagedstylelint,stylelint-config-standard,stylelint-config-standard-scsslint:css/lint:css:fixand the*.{css,scss}lint-stagedentry runstylelintstylelint.config.jsscopes the camelCaseselector-class-patternto*.module.{css,scss}so global sheets keep third-party.hljs-*namesmedia-feature-range-notationpinned toprefix— range syntax (width <= 640px) is newer than Vite's default build targetcustom-property-empty-line-beforeoff (blank lines group theglobal.csstokens) andno-descending-specificityoff (base/variant module pattern trips it without a cascade conflict)src/**/*.css: modernrgb()notation,#fffshorthand, blank line between rulesDesignSystem.module.cssswaps deprecatedword-break: break-wordforoverflow-wrapglobal.cssquotesRoboto/SFMono-Regular/Menlo/Consolassovalue-keyword-casedoesn't lowercase thempr-formatskill examples referencestylelintTest notes
stylelint-config-standardminus the three deviations above