@readme/stylelint-config 6.0.8 → 6.1.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.1.1](https://github.com/readmeio/standards/compare/@readme/stylelint-config@6.1.0...@readme/stylelint-config@6.1.1) (2024-03-20)
7
+
8
+ **Note:** Version bump only for package @readme/stylelint-config
9
+
10
+
11
+
12
+
13
+
14
+ # [6.1.0](https://github.com/readmeio/standards/compare/@readme/stylelint-config@6.0.8...@readme/stylelint-config@6.1.0) (2024-02-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * **stylelint-config:** allow zero units for css props ([#817](https://github.com/readmeio/standards/issues/817)) ([15ab8d7](https://github.com/readmeio/standards/commit/15ab8d7adfbd7be7f5cf1361bc42b9d785812de5))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [6.0.8](https://github.com/readmeio/standards/compare/@readme/stylelint-config@6.0.7...@readme/stylelint-config@6.0.8) (2024-02-16)
7
26
 
8
27
  **Note:** Version bump only for package @readme/stylelint-config
@@ -11,6 +11,7 @@ $media-query-width: 300px;
11
11
 
12
12
  :root {
13
13
  --brand-red: rgb(112, 94, 92);
14
+ --zero-unit: 0px;
14
15
  }
15
16
 
16
17
  #id-selector {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readme/stylelint-config",
3
- "version": "6.0.8",
3
+ "version": "6.1.1",
4
4
  "description": "ReadMe coding standards for styles",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -33,9 +33,9 @@
33
33
  "postcss": "^8.4.12"
34
34
  },
35
35
  "devDependencies": {
36
- "@readme/eslint-config": "^13.5.0",
36
+ "@readme/eslint-config": "^13.5.1",
37
37
  "vitest": "^1.1.1"
38
38
  },
39
39
  "prettier": "@readme/eslint-config/prettier",
40
- "gitHead": "90fc3d495f84370d35dd0e3263e2e7e28ac19937"
40
+ "gitHead": "065e839543a491a284262622e7f758e15b0f0938"
41
41
  }
package/src/index.js CHANGED
@@ -51,6 +51,18 @@ module.exports = {
51
51
  },
52
52
  ],
53
53
 
54
+ // Allows zero length units when defined by custom CSS properties. There are
55
+ // cases where we often use the "calc" function to perform operations on CSS
56
+ // properties, e.g. `calc(100% - var(--sponge) - var(--bob))`. Those always
57
+ // require units to work properly, including 0 values.
58
+ // https://stylelint.io/user-guide/rules/length-zero-no-unit
59
+ 'length-zero-no-unit': [
60
+ true,
61
+ {
62
+ ignore: ['custom-properties'],
63
+ },
64
+ ],
65
+
54
66
  // ReadMe breaks this rule in many places.
55
67
  'max-nesting-depth': null,
56
68