@atomicsmash/coding-standards 11.0.0-beta.8 → 12.0.0-beta.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/CHANGELOG.md +18 -116
- package/beta/stylelint/base.js +1 -6
- package/beta/stylelint/theme-json.js +1 -1
- package/package.json +9 -4
- package/phpcs/phpcs.xml +8 -0
- package/prettier/index.js +11 -0
- package/typescript/vitest.json +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,100 +1,48 @@
|
|
|
1
1
|
# @atomicsmash/coding-standards
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 12.0.0-beta.0
|
|
4
4
|
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
- [`5c3f178`](https://github.com/AtomicSmash/packages/commit/5c3f178ca0ff62eddddfa7c919e76108ea3aa3fb) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fix local paths
|
|
8
|
-
|
|
9
|
-
- Updated dependencies []:
|
|
10
|
-
- @atomicsmash/eslint-config@11.0.0-beta.8
|
|
11
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.8
|
|
12
|
-
|
|
13
|
-
## 11.0.0-beta.7
|
|
14
|
-
|
|
15
|
-
### Patch Changes
|
|
16
|
-
|
|
17
|
-
- Update dependencies
|
|
18
|
-
|
|
19
|
-
## 11.0.0-beta.6
|
|
5
|
+
### Major Changes
|
|
20
6
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- [`0f28480`](https://github.com/AtomicSmash/packages/commit/0f28480d58d4473404e5b2e5d7e4fd491015c031) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add beta Stylelint config
|
|
7
|
+
- [#221](https://github.com/AtomicSmash/packages/pull/221) [`04cc5ed`](https://github.com/AtomicSmash/packages/commit/04cc5ed6b9ecad553fcdae977034a65d4cfc0f44) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Remove vitest typescript config
|
|
24
8
|
|
|
25
9
|
### Patch Changes
|
|
26
10
|
|
|
27
|
-
-
|
|
28
|
-
- @atomicsmash/eslint-config@11.0.0-beta.6
|
|
29
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.6
|
|
11
|
+
- [#224](https://github.com/AtomicSmash/packages/pull/224) [`b87a1a7`](https://github.com/AtomicSmash/packages/commit/b87a1a72d52618e10771d78afa04900a4a3b5f28) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Remove class filename rules for lib and classes folders
|
|
30
12
|
|
|
31
|
-
|
|
13
|
+
- [#220](https://github.com/AtomicSmash/packages/pull/220) [`04cdfd8`](https://github.com/AtomicSmash/packages/commit/04cdfd8c2f975bd0611377202f5648bad54936c9) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fix yml files being broken by prettier
|
|
32
14
|
|
|
33
|
-
|
|
15
|
+
- [#222](https://github.com/AtomicSmash/packages/pull/222) [`9ba7476`](https://github.com/AtomicSmash/packages/commit/9ba7476be1a544097d7143ce0f68625fbb994cf1) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update beta stylelint config
|
|
34
16
|
|
|
35
|
-
- Updated dependencies [[`
|
|
36
|
-
- @atomicsmash/eslint-config@
|
|
37
|
-
- @atomicsmash/browserslist-config@
|
|
17
|
+
- Updated dependencies [[`5706bd5`](https://github.com/AtomicSmash/packages/commit/5706bd51a20b2f7ac540dcd2ab4bcbc8f7482129), [`dea7593`](https://github.com/AtomicSmash/packages/commit/dea7593ef42d864fe765902887d516dfe6b0d429), [`bddfeb3`](https://github.com/AtomicSmash/packages/commit/bddfeb3f78e82a4dc8f3bb3aea03505a2442e26c)]:
|
|
18
|
+
- @atomicsmash/eslint-config@12.0.0-beta.0
|
|
19
|
+
- @atomicsmash/browserslist-config@12.0.0-beta.0
|
|
38
20
|
|
|
39
|
-
## 11.0.0
|
|
21
|
+
## 11.0.0
|
|
40
22
|
|
|
41
23
|
### Minor Changes
|
|
42
24
|
|
|
43
|
-
- [`
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- Updated dependencies []:
|
|
48
|
-
- @atomicsmash/eslint-config@11.0.0-beta.4
|
|
49
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.4
|
|
50
|
-
|
|
51
|
-
## 11.0.0-beta.3
|
|
52
|
-
|
|
53
|
-
### Minor Changes
|
|
25
|
+
- [`db462fe`](https://github.com/AtomicSmash/packages/commit/db462fecd0ceb0a46e5bd65748f65089fa6fc2d1) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add more allowed words to cSpell config
|
|
54
26
|
|
|
55
27
|
- [`321c4e9`](https://github.com/AtomicSmash/packages/commit/321c4e9e18bd7a7e23e19b37a553249f57135138) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add shortcode
|
|
56
28
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
- Updated dependencies []:
|
|
60
|
-
- @atomicsmash/eslint-config@11.0.0-beta.3
|
|
61
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.3
|
|
62
|
-
|
|
63
|
-
## 11.0.0-beta.2
|
|
64
|
-
|
|
65
|
-
### Minor Changes
|
|
29
|
+
- [`b518b50`](https://github.com/AtomicSmash/packages/commit/b518b501e3bedc5e32ba7bdb19f64c765f0aea2a) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add wp_kses and sprintf to allowed words
|
|
66
30
|
|
|
67
31
|
- [`14c4cf9`](https://github.com/AtomicSmash/packages/commit/14c4cf9de75eab9286be33821dbba8ed560631b8) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add WPMDB to allowed words for licence key
|
|
68
32
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
- Updated dependencies []:
|
|
72
|
-
- @atomicsmash/eslint-config@11.0.0-beta.2
|
|
73
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.2
|
|
74
|
-
|
|
75
|
-
## 11.0.0-beta.1
|
|
76
|
-
|
|
77
|
-
### Minor Changes
|
|
33
|
+
- [`0f28480`](https://github.com/AtomicSmash/packages/commit/0f28480d58d4473404e5b2e5d7e4fd491015c031) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add beta Stylelint config
|
|
78
34
|
|
|
79
35
|
- [`2ec63f6`](https://github.com/AtomicSmash/packages/commit/2ec63f6893c67ce504a93633816fb3040d698c61) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add phpmailer to allowed words
|
|
80
36
|
|
|
81
37
|
### Patch Changes
|
|
82
38
|
|
|
83
|
-
-
|
|
84
|
-
- @atomicsmash/eslint-config@11.0.0-beta.1
|
|
85
|
-
- @atomicsmash/browserslist-config@11.0.0-beta.1
|
|
86
|
-
|
|
87
|
-
## 11.0.0-beta.0
|
|
88
|
-
|
|
89
|
-
### Minor Changes
|
|
90
|
-
|
|
91
|
-
- [`db462fe`](https://github.com/AtomicSmash/packages/commit/db462fecd0ceb0a46e5bd65748f65089fa6fc2d1) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Add more allowed words to cSpell config
|
|
39
|
+
- [`d3e69d5`](https://github.com/AtomicSmash/packages/commit/d3e69d5bf718f48d5683180736e51b52e411cddb) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update dependencies
|
|
92
40
|
|
|
93
|
-
|
|
41
|
+
- [`5c3f178`](https://github.com/AtomicSmash/packages/commit/5c3f178ca0ff62eddddfa7c919e76108ea3aa3fb) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fix local paths
|
|
94
42
|
|
|
95
|
-
- Updated dependencies []:
|
|
96
|
-
- @atomicsmash/
|
|
97
|
-
- @atomicsmash/
|
|
43
|
+
- Updated dependencies [[`d3e69d5`](https://github.com/AtomicSmash/packages/commit/d3e69d5bf718f48d5683180736e51b52e411cddb), [`9376010`](https://github.com/AtomicSmash/packages/commit/93760109b9db51564208239f929e6261ed067d69)]:
|
|
44
|
+
- @atomicsmash/browserslist-config@11.0.0
|
|
45
|
+
- @atomicsmash/eslint-config@11.0.0
|
|
98
46
|
|
|
99
47
|
## 10.0.1
|
|
100
48
|
|
|
@@ -106,16 +54,6 @@
|
|
|
106
54
|
- @atomicsmash/eslint-config@10.0.1
|
|
107
55
|
- @atomicsmash/browserslist-config@10.0.1
|
|
108
56
|
|
|
109
|
-
## 10.0.1-beta.0
|
|
110
|
-
|
|
111
|
-
### Patch Changes
|
|
112
|
-
|
|
113
|
-
- [`9ebcd42`](https://github.com/AtomicSmash/packages/commit/9ebcd42720afe49e08bd0b3b45e21f34f9d09f22) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update dependencies
|
|
114
|
-
|
|
115
|
-
- Updated dependencies [[`9ebcd42`](https://github.com/AtomicSmash/packages/commit/9ebcd42720afe49e08bd0b3b45e21f34f9d09f22)]:
|
|
116
|
-
- @atomicsmash/eslint-config@10.0.1-beta.0
|
|
117
|
-
- @atomicsmash/browserslist-config@10.0.1-beta.0
|
|
118
|
-
|
|
119
57
|
## 10.0.0
|
|
120
58
|
|
|
121
59
|
### Major Changes
|
|
@@ -128,18 +66,6 @@
|
|
|
128
66
|
- @atomicsmash/eslint-config@10.0.0
|
|
129
67
|
- @atomicsmash/browserslist-config@10.0.0
|
|
130
68
|
|
|
131
|
-
## 10.0.0-beta.0
|
|
132
|
-
|
|
133
|
-
### Minor Changes
|
|
134
|
-
|
|
135
|
-
- [`5972517`](https://github.com/AtomicSmash/packages/commit/59725170d7252d23d06e90a43d7f02fb1057e661) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Stabilise PHPCS config
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- Updated dependencies []:
|
|
140
|
-
- @atomicsmash/eslint-config@10.0.0-beta.0
|
|
141
|
-
- @atomicsmash/browserslist-config@10.0.0-beta.0
|
|
142
|
-
|
|
143
69
|
## 9.0.0
|
|
144
70
|
|
|
145
71
|
### Major Changes
|
|
@@ -156,30 +82,6 @@
|
|
|
156
82
|
- @atomicsmash/eslint-config@9.0.0
|
|
157
83
|
- @atomicsmash/browserslist-config@9.0.0
|
|
158
84
|
|
|
159
|
-
## 9.0.0-beta.1
|
|
160
|
-
|
|
161
|
-
### Patch Changes
|
|
162
|
-
|
|
163
|
-
- Fix builds
|
|
164
|
-
|
|
165
|
-
- Updated dependencies []:
|
|
166
|
-
- @atomicsmash/browserslist-config@9.0.0-beta.1
|
|
167
|
-
- @atomicsmash/eslint-config@9.0.0-beta.1
|
|
168
|
-
|
|
169
|
-
## 9.0.0-beta.0
|
|
170
|
-
|
|
171
|
-
### Major Changes
|
|
172
|
-
|
|
173
|
-
- [`38d8dac`](https://github.com/AtomicSmash/packages/commit/38d8dac02de80f2a0dfa673194a401e2a69aed55) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update dependencies
|
|
174
|
-
|
|
175
|
-
- [`38d8dac`](https://github.com/AtomicSmash/packages/commit/38d8dac02de80f2a0dfa673194a401e2a69aed55) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update typescript config files
|
|
176
|
-
|
|
177
|
-
### Patch Changes
|
|
178
|
-
|
|
179
|
-
- Updated dependencies [[`38d8dac`](https://github.com/AtomicSmash/packages/commit/38d8dac02de80f2a0dfa673194a401e2a69aed55)]:
|
|
180
|
-
- @atomicsmash/eslint-config@9.0.0-beta.0
|
|
181
|
-
- @atomicsmash/browserslist-config@9.0.0-beta.0
|
|
182
|
-
|
|
183
85
|
## 8.0.0
|
|
184
86
|
|
|
185
87
|
### Major Changes
|
package/beta/stylelint/base.js
CHANGED
|
@@ -41,18 +41,13 @@ module.exports = {
|
|
|
41
41
|
overrides: [
|
|
42
42
|
{
|
|
43
43
|
files: ["*.css", "**/*.css"],
|
|
44
|
-
extends: [
|
|
45
|
-
"stylelint-config-standard",
|
|
46
|
-
"@wordpress/stylelint-config",
|
|
47
|
-
"stylelint-config-prettier",
|
|
48
|
-
],
|
|
44
|
+
extends: ["stylelint-config-standard", "@wordpress/stylelint-config"],
|
|
49
45
|
},
|
|
50
46
|
{
|
|
51
47
|
files: ["*.scss", "**/*.scss"],
|
|
52
48
|
extends: [
|
|
53
49
|
"stylelint-config-standard-scss",
|
|
54
50
|
"@wordpress/stylelint-config/scss",
|
|
55
|
-
"stylelint-config-prettier",
|
|
56
51
|
],
|
|
57
52
|
rules: {
|
|
58
53
|
"scss/operator-no-newline-after": null,
|
|
@@ -135,7 +135,7 @@ const rules = {
|
|
|
135
135
|
return `Most values for this type of property should be defined in theme.json. (declaration-property-value-allowed-list)`;
|
|
136
136
|
// The following code is not complete, it has been left to show how this function could provide more helpful error
|
|
137
137
|
// messages once an update to stylelint is possible.
|
|
138
|
-
/* eslint-disable no-unreachable */
|
|
138
|
+
/* eslint-disable no-unreachable -- See above */
|
|
139
139
|
let message = `Invalid property provided for ${property}.`;
|
|
140
140
|
let ruleKey;
|
|
141
141
|
if (new RegExp(/color/).test(property)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/coding-standards",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-beta.0",
|
|
4
4
|
"description": "A collection of coding standards configurations.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -8,11 +8,16 @@
|
|
|
8
8
|
"@cspell/cspell-types": "^8.13.3"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@atomicsmash/browserslist-config": "^
|
|
12
|
-
"@atomicsmash/eslint-config": "^
|
|
11
|
+
"@atomicsmash/browserslist-config": "^12.0.0-beta.0",
|
|
12
|
+
"@atomicsmash/eslint-config": "^12.0.0-beta.0",
|
|
13
13
|
"@commitlint/cli": "^19.4.0",
|
|
14
14
|
"@commitlint/config-conventional": "^19.2.2",
|
|
15
|
-
"
|
|
15
|
+
"@wordpress/stylelint-config": "^23.2.0",
|
|
16
|
+
"prettier": "^3.3.3",
|
|
17
|
+
"stylelint": "^16.10.0",
|
|
18
|
+
"stylelint-config-standard": "^36.0.1",
|
|
19
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
20
|
+
"stylelint-order": "^6.0.4"
|
|
16
21
|
},
|
|
17
22
|
"keywords": [
|
|
18
23
|
"atomic",
|
package/phpcs/phpcs.xml
CHANGED
|
@@ -37,4 +37,12 @@
|
|
|
37
37
|
<include-pattern>*\.php$</include-pattern>
|
|
38
38
|
</rule>
|
|
39
39
|
<rule ref="VariableAnalysis"/>
|
|
40
|
+
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
|
|
41
|
+
<exclude-pattern>*/lib/*</exclude-pattern>
|
|
42
|
+
<exclude-pattern>*/classes/*</exclude-pattern>
|
|
43
|
+
</rule>
|
|
44
|
+
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
|
|
45
|
+
<exclude-pattern>*/lib/*</exclude-pattern>
|
|
46
|
+
<exclude-pattern>*/classes/*</exclude-pattern>
|
|
47
|
+
</rule>
|
|
40
48
|
</ruleset>
|
package/prettier/index.js
CHANGED
|
@@ -21,4 +21,15 @@ module.exports = {
|
|
|
21
21
|
|
|
22
22
|
// Helps clean up git diffs by removing changes of a single comma on a line if adding a new line to the bottom
|
|
23
23
|
trailingComma: "all",
|
|
24
|
+
|
|
25
|
+
overrides: [
|
|
26
|
+
{
|
|
27
|
+
// yml files require specific indentation rules
|
|
28
|
+
files: ["*.yml", "*.yaml"],
|
|
29
|
+
options: {
|
|
30
|
+
useTabs: false,
|
|
31
|
+
tabWidth: 2,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
],
|
|
24
35
|
};
|