@benhigham/stylelint-config 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/package.json +8 -8
- package/src/index.js +2 -2
package/README.md
CHANGED
|
@@ -60,12 +60,11 @@ This configuration includes several plugins:
|
|
|
60
60
|
- [`stylelint-high-performance-animation`](https://github.com/kristerkari/stylelint-high-performance-animation): Prevents using low-performance animation properties
|
|
61
61
|
- [`stylelint-media-use-custom-media`](https://github.com/csstools/stylelint-media-use-custom-media): Enforces the use of custom media queries
|
|
62
62
|
- [`stylelint-use-nesting`](https://github.com/csstools/stylelint-use-nesting): Enforces proper CSS nesting
|
|
63
|
-
- [`stylelint-plugin-
|
|
63
|
+
- [`stylelint-plugin-use-baseline`](https://github.com/ryo-manba/stylelint-plugin-use-baseline): Disallow CSS features not in [Baseline](https://web.dev/baseline)
|
|
64
64
|
- [`stylelint-no-unresolved-module`](https://github.com/niksy/stylelint-no-unresolved-module): Ensures all imported modules can be resolved
|
|
65
65
|
- [`stylelint-no-indistinguishable-colors`](https://github.com/ierhyna/stylelint-no-indistinguishable-colors): Prevents colors that are too similar
|
|
66
66
|
- [`stylelint-gamut`](https://github.com/csstools/stylelint-gamut): Prevents colors outside of supported gamut range
|
|
67
67
|
- [`stylelint-selector-bem-pattern`](https://github.com/simonsmith/stylelint-selector-bem-pattern): Enforces BEM naming convention
|
|
68
|
-
- [`stylelint-no-browser-hacks`](https://github.com/stylelint/stylelint-no-browser-hacks): Disallows browser hacks
|
|
69
68
|
- [`stylelint-no-unsupported-browser-features`](https://github.com/ismay/stylelint-no-unsupported-browser-features): Warns about unsupported browser features
|
|
70
69
|
|
|
71
70
|
### Key Rules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@benhigham/stylelint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "My personal Stylelint configuration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/benhigham/stylelint-config#readme",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"stylelint-no-indistinguishable-colors": "^2.3.1",
|
|
61
61
|
"stylelint-no-unresolved-module": "^2.3.0",
|
|
62
62
|
"stylelint-no-unsupported-browser-features": "^8.0.4",
|
|
63
|
-
"stylelint-plugin-
|
|
63
|
+
"stylelint-plugin-use-baseline": "^0.4.1",
|
|
64
64
|
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
65
65
|
"stylelint-use-nesting": "^6.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@benhigham/commitlint-config": "^0.1.
|
|
69
|
-
"@benhigham/prettier-config": "^0.1.
|
|
68
|
+
"@benhigham/commitlint-config": "^0.1.3",
|
|
69
|
+
"@benhigham/prettier-config": "^0.1.1",
|
|
70
70
|
"@changesets/changelog-github": "^0.5.1",
|
|
71
|
-
"@changesets/cli": "^2.
|
|
71
|
+
"@changesets/cli": "^2.29.3",
|
|
72
72
|
"@commitlint/cli": "^19.8.0",
|
|
73
|
-
"lefthook": "^1.11.
|
|
73
|
+
"lefthook": "^1.11.12",
|
|
74
74
|
"prettier": "^3.5.3",
|
|
75
|
-
"stylelint": "^16.
|
|
75
|
+
"stylelint": "^16.19.1",
|
|
76
76
|
"stylelint-find-new-rules": "^5.0.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"stylelint": ">=16.
|
|
79
|
+
"stylelint": ">=16.19.1"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"format": "prettier --write .",
|
package/src/index.js
CHANGED
|
@@ -13,12 +13,12 @@ const config = {
|
|
|
13
13
|
'stylelint-selector-bem-pattern',
|
|
14
14
|
'stylelint-media-use-custom-media',
|
|
15
15
|
'stylelint-use-nesting',
|
|
16
|
-
'stylelint-plugin-
|
|
16
|
+
'stylelint-plugin-use-baseline',
|
|
17
17
|
'stylelint-no-unsupported-browser-features',
|
|
18
18
|
],
|
|
19
19
|
rules: {
|
|
20
20
|
// Browser compatibility
|
|
21
|
-
'plugin/
|
|
21
|
+
'plugin/use-baseline': [true, { available: 'newly' }],
|
|
22
22
|
'plugin/no-unsupported-browser-features': true,
|
|
23
23
|
|
|
24
24
|
// SCSS-specific rules
|