Skip to content

Commit a349b66

Browse files
authored
stylelint-config: Resolve nested selectors with selector-class-pattern (#10563)
changelog: Internal, Build Tooling, Resolve nested selectors with Stylelint selector-class-pattern configuration
1 parent 5d858cd commit a349b66

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

app/javascript/packages/stylelint-config/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 4.1.0
2+
3+
### Improvements
4+
5+
- 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.
6+
17
## 4.0.0
28

39
### Breaking Changes

app/javascript/packages/stylelint-config/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
{
1313
message:
1414
'Class selectors should be named using "Two Dashes Style" BEM format. See: https://en.bem.info/methodology/naming-convention/#two-dashes-style',
15+
resolveNestedSelectors: true,
1516
},
1617
],
1718
},

app/javascript/packages/stylelint-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@18f/identity-stylelint-config",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"private": false,
55
"description": "Stylelint shareable configuration for Login.gov CSS/SASS standards",
66
"exports": {

0 commit comments

Comments
 (0)