@atomicsmash/coding-standards 14.0.1-beta.0 → 15.0.0-beta.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
@@ -1,5 +1,19 @@
1
1
  # @atomicsmash/coding-standards
2
2
 
3
+ ## 15.0.0-beta.1
4
+
5
+ ### Minor Changes
6
+
7
+ - [#355](https://github.com/AtomicSmash/packages/pull/355) [`4b84661`](https://github.com/AtomicSmash/packages/commit/4b84661f893e68a3b5b58f6beccb87672d9c8c7d) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Prevent rules nested within media queries for consistency
8
+
9
+ ### Patch Changes
10
+
11
+ - [#385](https://github.com/AtomicSmash/packages/pull/385) [`d767d3d`](https://github.com/AtomicSmash/packages/commit/d767d3d0db1dfa54f8b777a54486b8ff42a2e756) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update deps
12
+
13
+ - Updated dependencies [[`bdf6201`](https://github.com/AtomicSmash/packages/commit/bdf62013941a052b4168ddd75a4850904ae69570), [`d767d3d`](https://github.com/AtomicSmash/packages/commit/d767d3d0db1dfa54f8b777a54486b8ff42a2e756)]:
14
+ - @atomicsmash/eslint-config@15.0.0-beta.1
15
+ - @atomicsmash/browserslist-config@15.0.0-beta.1
16
+
3
17
  ## 14.0.1-beta.0
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicsmash/coding-standards",
3
- "version": "14.0.1-beta.0",
3
+ "version": "15.0.0-beta.1",
4
4
  "description": "A collection of coding standards configurations.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,15 +8,16 @@
8
8
  "@cspell/cspell-types": "^8.19.4"
9
9
  },
10
10
  "peerDependencies": {
11
- "@atomicsmash/browserslist-config": "^14.0.1-beta.0",
12
- "@atomicsmash/eslint-config": "^14.0.1-beta.0",
11
+ "@atomicsmash/browserslist-config": "^15.0.0-beta.1",
12
+ "@atomicsmash/eslint-config": "^15.0.0-beta.1",
13
13
  "@commitlint/cli": "^19.8.1",
14
14
  "@commitlint/config-conventional": "^19.8.1",
15
- "@wordpress/stylelint-config": "^23.16.0",
16
- "prettier": "^3.5.3",
17
- "stylelint": "^16.20.0",
15
+ "@wordpress/stylelint-config": "^23.19.0",
16
+ "prettier": "^3.6.2",
17
+ "stylelint": "^16.22.0",
18
18
  "stylelint-config-standard": "^36.0.1",
19
19
  "stylelint-config-standard-scss": "^14.0.0",
20
+ "stylelint-no-restricted-syntax": "^2.2.1",
20
21
  "stylelint-order": "^6.0.4"
21
22
  },
22
23
  "keywords": [
@@ -29,6 +29,15 @@ const commonRules = {
29
29
  },
30
30
  "rules",
31
31
  ],
32
+ "plugin/no-restricted-syntax": [
33
+ [
34
+ {
35
+ selector: ":matches(atrule[name=media], atrule[name=container]) rule",
36
+ message:
37
+ "Don't nest rules inside of media/container blocks. Instead, nest the rule and use the at rule within that.",
38
+ },
39
+ ],
40
+ ],
32
41
  "selector-class-pattern": [
33
42
  "^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
34
43
  {
@@ -49,7 +58,7 @@ module.exports = {
49
58
  reportDescriptionlessDisables: true,
50
59
  reportInvalidScopeDisables: true,
51
60
  reportNeedlessDisables: true,
52
- plugins: ["stylelint-order"],
61
+ plugins: ["stylelint-order", "stylelint-no-restricted-syntax"],
53
62
  rules: commonRules,
54
63
  overrides: [
55
64
  {
@@ -29,6 +29,15 @@ const commonRules = {
29
29
  },
30
30
  "rules",
31
31
  ],
32
+ "plugin/no-restricted-syntax": [
33
+ [
34
+ {
35
+ selector: ":matches(atrule[name=media], atrule[name=container]) rule",
36
+ message:
37
+ "Don't nest rules inside of media/container blocks. Instead, nest the rule and use the at rule within that.",
38
+ },
39
+ ],
40
+ ],
32
41
  "selector-class-pattern": [
33
42
  "^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
34
43
  {