Skip to content

Commit 6a26d6e

Browse files
authored
Merge pull request #128 from happyprime/add-standard-tooling-configs
Add standard tooling configs and migrate to ESLint 9
2 parents 6f07512 + 2ee79d5 commit 6a26d6e

13 files changed

Lines changed: 4637 additions & 303 deletions

File tree

.browserslistrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
> 1%
2+
last 1 Android versions
3+
last 1 ChromeAndroid versions
4+
last 2 Chrome versions
5+
last 2 Firefox versions
6+
last 2 Safari versions
7+
last 2 iOS versions
8+
last 2 Edge versions
9+
last 2 Opera versions

.distignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@
33
.wordpress-org/
44
node_modules/
55
vendor/
6+
.browserslistrc
67
.distignore
78
.editorconfig
8-
.eslintrc.js
99
.gitignore
1010
.prettierrc.js
11+
.wp-env.json
12+
.wp-env.override.json
13+
blueprint.json
1114
composer.json
1215
composer.lock
16+
eslint.config.mjs
1317
package.json
1418
package-lock.json
1519
phpcs.xml
20+
phpstan.neon.dist
1621
README.md
1722
webpack.config.js

.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.wp-env.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"core": "WordPress/WordPress#7.0",
3+
"phpVersion": "8.2",
4+
"plugins": [
5+
"."
6+
],
7+
"config": {
8+
"WP_DEBUG": true,
9+
"WP_DEBUG_LOG": true,
10+
"SCRIPT_DEBUG": true
11+
}
12+
}

blueprint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"preferredVersions": {
3+
"wp": "7.0"
4+
},
5+
"steps": [
6+
{"step": "wp-cli", "command": "wp plugin activate show-hide-section-block"}
7+
]
8+
}

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import happyprimeConfig from '@happyprime/eslint-config';
2+
3+
export default happyprimeConfig;

0 commit comments

Comments
 (0)