Skip to content

Commit d7f032b

Browse files
authored
Merge pull request #50 from t-hamano/wp6.0
WordPress6.0対応
2 parents 323d0c2 + 178c035 commit d7f032b

22 files changed

+4138
-5453
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
printWidth: 100,
2424
bracketSpacing: true,
2525
parenSpacing: true,
26+
bracketSameLine: false,
2627
},
2728
],
2829
},

.github/workflows/run-test-and-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
npm ci
2222
npm run build
2323
24+
- name: Composer install
25+
run: composer install
26+
27+
- name: Set phpcs
28+
run: composer phpcs
29+
2430
- name: Running the tests
2531
run: npm run lint
2632

.github/workflows/run-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
npm ci
2323
npm run build
2424
25+
- name: Composer install
26+
run: composer install
27+
28+
- name: Set phpcs
29+
run: composer phpcs
30+
2531
- name: Running the tests
2632
run: npm run lint
2733

.prettierrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const config = {
2+
...require( '@wordpress/prettier-config' ),
3+
semi: true,
4+
useTabs: true,
5+
tabWidth: 2,
6+
singleQuote: true,
7+
printWidth: 100,
8+
bracketSpacing: true,
9+
parenSpacing: true,
10+
// Set new property instead of jsxBracketSameLine
11+
bracketSameLine: false,
12+
}
13+
14+
// Remove deprecated property
15+
delete config.jsxBracketSameLine
16+
17+
module.exports = config;

.stylelintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module.exports = {
1616
'font-family-no-missing-generic-family-keyword': null,
1717
'selector-class-pattern': null,
1818
'at-rule-empty-line-before': null,
19-
'declaration-property-unit-whitelist': null,
2019
'declaration-property-unit-allowed-list': {
2120
'line-height': []
2221
},

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ $ npm run build
185185

186186
## Author
187187

188-
[Tetsuaki Hamano (Github)](https://github.com/t-hamano)
188+
[Aki Hamano (Github)](https://github.com/t-hamano)

classes/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @package Custom_Html_Block_Extension
4-
* @author Tetsuaki Hamano
4+
* @author Aki Hamano
55
* @license GPL-2.0+
66
*/
77

classes/class-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @package Custom_Html_Block_Extension
4-
* @author Tetsuaki Hamano
4+
* @author Aki Hamano
55
* @license GPL-2.0+
66
*/
77

classes/class-block-editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @package Custom_Html_Block_Extension
4-
* @author Tetsuaki Hamano
4+
* @author Aki Hamano
55
* @license GPL-2.0+
66
*/
77

classes/class-classic-editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* @package Custom_Html_Block_Extension
4-
* @author Tetsuaki Hamano
4+
* @author Aki Hamano
55
* @license GPL-2.0+
66
*/
77

0 commit comments

Comments
 (0)