Skip to content

Commit

Permalink
stylelint-config: Resolve nested selectors with selector-class-pattern (
Browse files Browse the repository at this point in the history
#10563)

changelog: Internal, Build Tooling, Resolve nested selectors with Stylelint selector-class-pattern configuration
  • Loading branch information
aduth authored May 7, 2024
1 parent 5d858cd commit a349b66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/javascript/packages/stylelint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.1.0

### Improvements

- The `selector-class-pattern` configuration now specifies [`resolveNestedSelectors: true`](https://stylelint.io/user-guide/rules/selector-class-pattern/#resolvenestedselectors-true--false-default-false) to resolve nested selectors using `&` interpolation.

## 4.0.0

### Breaking Changes
Expand Down
1 change: 1 addition & 0 deletions app/javascript/packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
{
message:
'Class selectors should be named using "Two Dashes Style" BEM format. See: https://en.bem.info/methodology/naming-convention/#two-dashes-style',
resolveNestedSelectors: true,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@18f/identity-stylelint-config",
"version": "4.0.0",
"version": "4.1.0",
"private": false,
"description": "Stylelint shareable configuration for Login.gov CSS/SASS standards",
"exports": {
Expand Down

0 comments on commit a349b66

Please sign in to comment.