Skip to content

Commit e82257e

Browse files
committed
Replace stylelint-config-recommended-scss with stylelint-config-standard-scss
changelog: Internal, Build Tools, Replace stylelint-config-recommended-scss with stylelint-config-standard-scss
1 parent a349b66 commit e82257e

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 5.0.0-beta.1
2+
3+
### Breaking Changes
4+
5+
- The ruleset now extends [`stylelint-config-standard-scss`](https://github.com/stylelint-scss/stylelint-config-standard-scss) instead of [`stylelint-config-recommended-scss`](https://github.com/stylelint-scss/stylelint-config-recommended-scss). This configures a number of additional rules which may identify existing issues in your code.
6+
- This is intended to bring the ruleset into closer alignment with the [TTS Engineering CSS Coding Standards](https://guides.18f.gov/engineering/languages-runtimes/css/), which recommends the "standard" Stylelint rules.
7+
- Many of these rules can be fixed automatically using [Stylelint's `--fix` option](https://stylelint.io/user-guide/options/#fix).
8+
- Some rules have been disabled to permit more flexibility in code arrangement, particularly rules affecting blank line enforcement with comments and Sass `@`-rules:
9+
- [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before/)
10+
- [`declaration-empty-line-before`](https://stylelint.io/user-guide/rules/declaration-empty-line-before/)
11+
- [`rule-empty-line-before`](https://stylelint.io/user-guide/rules/rule-empty-line-before/)
12+
- [`scss/dollar-variable-empty-line-before`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-before/README.md)
13+
- [`scss/double-slash-comment-empty-line-before`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-empty-line-before/README.md)
14+
115
## 4.1.0
216

317
### Improvements

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
module.exports = {
2-
extends: ['stylelint-config-recommended-scss', 'stylelint-prettier/recommended'],
2+
extends: ['stylelint-config-standard-scss', 'stylelint-prettier/recommended'],
33
rules: {
4+
'at-rule-empty-line-before': null,
5+
'declaration-empty-line-before': null,
46
'no-descending-specificity': null,
7+
'rule-empty-line-before': null,
58
'scss/comment-no-empty': null,
9+
'scss/dollar-variable-empty-line-before': null,
10+
'scss/double-slash-comment-empty-line-before': null,
611
'scss/no-global-function-names': null,
712
'scss/operator-no-newline-after': null,
813
'scss/operator-no-newline-before': null,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/18f/identity-idp",
2222
"dependencies": {
23-
"stylelint-config-recommended-scss": "^14.0.0",
23+
"stylelint-config-standard-scss": "^13.1.0",
2424
"stylelint-prettier": "^5.0.0"
2525
},
2626
"peerDependencies": {

yarn.lock

+15
Original file line numberDiff line numberDiff line change
@@ -6467,6 +6467,21 @@ stylelint-config-recommended@^14.0.0:
64676467
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-14.0.0.tgz#b395c7014838d2aaca1755eebd914d0bb5274994"
64686468
integrity sha512-jSkx290CglS8StmrLp2TxAppIajzIBZKYm3IxT89Kg6fGlxbPiTiyH9PS5YUuVAFwaJLl1ikiXX0QWjI0jmgZQ==
64696469

6470+
stylelint-config-standard-scss@^13.1.0:
6471+
version "13.1.0"
6472+
resolved "https://registry.yarnpkg.com/stylelint-config-standard-scss/-/stylelint-config-standard-scss-13.1.0.tgz#2be36ca13087325a42c1f26df8267808667cc886"
6473+
integrity sha512-Eo5w7/XvwGHWkeGLtdm2FZLOMYoZl1omP2/jgFCXyl2x5yNz7/8vv4Tj6slHvMSSUNTaGoam/GAZ0ZhukvalfA==
6474+
dependencies:
6475+
stylelint-config-recommended-scss "^14.0.0"
6476+
stylelint-config-standard "^36.0.0"
6477+
6478+
stylelint-config-standard@^36.0.0:
6479+
version "36.0.0"
6480+
resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-36.0.0.tgz#6704c044d611edc12692d4a5e37b039a441604d4"
6481+
integrity sha512-3Kjyq4d62bYFp/Aq8PMKDwlgUyPU4nacXsjDLWJdNPRUgpuxALu1KnlAHIj36cdtxViVhXexZij65yM0uNIHug==
6482+
dependencies:
6483+
stylelint-config-recommended "^14.0.0"
6484+
64706485
stylelint-prettier@^5.0.0:
64716486
version "5.0.0"
64726487
resolved "https://registry.yarnpkg.com/stylelint-prettier/-/stylelint-prettier-5.0.0.tgz#515a87800228f6bea603966462f7119755ee9b82"

0 commit comments

Comments
 (0)