@atomicsmash/coding-standards 11.0.0 → 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 -0
- 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,5 +1,23 @@
|
|
|
1
1
|
# @atomicsmash/coding-standards
|
|
2
2
|
|
|
3
|
+
## 12.0.0-beta.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
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
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
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
|
|
12
|
+
|
|
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
|
|
14
|
+
|
|
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
|
|
16
|
+
|
|
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
|
|
20
|
+
|
|
3
21
|
## 11.0.0
|
|
4
22
|
|
|
5
23
|
### Minor 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
|
};
|