@atomicsmash/coding-standards 14.0.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 +24 -0
- package/package.json +7 -6
- package/stylelint/base.cjs +18 -2
- package/stylelint/base.mjs +17 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
17
|
+
## 14.0.1-beta.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#378](https://github.com/AtomicSmash/packages/pull/378) [`46af602`](https://github.com/AtomicSmash/packages/commit/46af602c7a9b80fb5091fb943453cdd9f380d98f) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fix at rule order so non-block at rules are first in order
|
|
22
|
+
|
|
23
|
+
- Updated dependencies []:
|
|
24
|
+
- @atomicsmash/eslint-config@14.0.1-beta.0
|
|
25
|
+
- @atomicsmash/browserslist-config@14.0.1-beta.0
|
|
26
|
+
|
|
3
27
|
## 14.0.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/coding-standards",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
12
|
-
"@atomicsmash/eslint-config": "^
|
|
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
|
-
"prettier": "^3.
|
|
17
|
-
"stylelint": "^16.
|
|
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": [
|
package/stylelint/base.cjs
CHANGED
|
@@ -16,12 +16,28 @@ const commonRules = {
|
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
"order/order": [
|
|
19
|
+
{
|
|
20
|
+
type: "at-rule",
|
|
21
|
+
hasBlock: false,
|
|
22
|
+
},
|
|
19
23
|
"custom-properties",
|
|
20
24
|
"dollar-variables",
|
|
21
25
|
"declarations",
|
|
22
|
-
|
|
26
|
+
{
|
|
27
|
+
type: "at-rule",
|
|
28
|
+
hasBlock: true,
|
|
29
|
+
},
|
|
23
30
|
"rules",
|
|
24
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
|
+
],
|
|
25
41
|
"selector-class-pattern": [
|
|
26
42
|
"^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
|
|
27
43
|
{
|
|
@@ -42,7 +58,7 @@ module.exports = {
|
|
|
42
58
|
reportDescriptionlessDisables: true,
|
|
43
59
|
reportInvalidScopeDisables: true,
|
|
44
60
|
reportNeedlessDisables: true,
|
|
45
|
-
plugins: ["stylelint-order"],
|
|
61
|
+
plugins: ["stylelint-order", "stylelint-no-restricted-syntax"],
|
|
46
62
|
rules: commonRules,
|
|
47
63
|
overrides: [
|
|
48
64
|
{
|
package/stylelint/base.mjs
CHANGED
|
@@ -16,12 +16,28 @@ const commonRules = {
|
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
"order/order": [
|
|
19
|
+
{
|
|
20
|
+
type: "at-rule",
|
|
21
|
+
hasBlock: false,
|
|
22
|
+
},
|
|
19
23
|
"custom-properties",
|
|
20
24
|
"dollar-variables",
|
|
21
25
|
"declarations",
|
|
22
|
-
|
|
26
|
+
{
|
|
27
|
+
type: "at-rule",
|
|
28
|
+
hasBlock: true,
|
|
29
|
+
},
|
|
23
30
|
"rules",
|
|
24
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
|
+
],
|
|
25
41
|
"selector-class-pattern": [
|
|
26
42
|
"^([a-z][a-z0-9]*)([_-]+[a-z0-9]+)*$",
|
|
27
43
|
{
|