@hsnaydd/stylelint-config 8.0.0 → 9.0.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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +0 -1
  3. package/package.json +13 -11
package/README.md CHANGED
@@ -36,14 +36,14 @@ Set your stylelint config to:
36
36
 
37
37
  Simply add a `"rules"` key to your config and add your overrides there.
38
38
 
39
- For example, to change the `indentation` to tabs and turn off the `number-leading-zero` rule:
39
+ For example, to allow `!important` and named colors:
40
40
 
41
41
  ```json
42
42
  {
43
43
  "extends": "@hsnaydd/stylelint-config",
44
44
  "rules": {
45
- "indentation": "tab",
46
- "number-leading-zero": null
45
+ "declaration-no-important": null,
46
+ "color-named": null
47
47
  }
48
48
  }
49
49
  ```
package/index.js CHANGED
@@ -17,7 +17,6 @@ module.exports = {
17
17
  'declaration-block-no-duplicate-custom-properties': true,
18
18
  'declaration-block-no-duplicate-properties': true,
19
19
  'declaration-block-no-shorthand-property-overrides': true,
20
- 'declaration-block-single-line-max-declarations': 1,
21
20
  'declaration-no-important': true,
22
21
  'declaration-property-value-disallowed-list': {
23
22
  '/^border/': ['none'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hsnaydd/stylelint-config",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Shareable stylelint config for CSS and SCSS, with Prettier formatting and property ordering.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -14,8 +14,9 @@
14
14
  "prettier"
15
15
  ],
16
16
  "scripts": {
17
- "test": "echo \"Error: no test specified\" && exit 1",
18
- "format": "prettier ./index.js --write"
17
+ "test": "node --test",
18
+ "format": "prettier index.js test --write",
19
+ "format:check": "prettier index.js test --check"
19
20
  },
20
21
  "repository": {
21
22
  "type": "git",
@@ -29,22 +30,23 @@
29
30
  "homepage": "https://github.com/hsnaydd/stylelint-config#readme",
30
31
  "packageManager": "pnpm@10.18.3",
31
32
  "engines": {
32
- "node": ">=20.19.0"
33
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
33
34
  },
34
35
  "peerDependencies": {
35
- "postcss": "^8.4.39",
36
+ "postcss": "^8.5.33",
36
37
  "prettier": "^3.5.3",
37
- "stylelint": "^16.15.0"
38
+ "stylelint": "^18.0.0"
38
39
  },
39
40
  "dependencies": {
40
41
  "postcss-scss": "^4.0.9",
41
42
  "stylelint-config-prettier-scss": "^1.0.0",
42
- "stylelint-config-standard-scss": "^17.0.0",
43
- "stylelint-order": "^7.0.1",
44
- "stylelint-prettier": "^5.0.3"
43
+ "stylelint-config-standard-scss": "^18.0.0",
44
+ "stylelint-order": "^8.1.3",
45
+ "stylelint-prettier": "^5.1.0"
45
46
  },
46
47
  "devDependencies": {
47
- "prettier": "^3.8.1",
48
- "stylelint": "^17.0.0"
48
+ "postcss": "^8.5.33",
49
+ "prettier": "^3.10.1",
50
+ "stylelint": "^18.1.0"
49
51
  }
50
52
  }