Skip to content

Commit 72b6d84

Browse files
committed
Add eslint/prettier config.
1 parent da0f39b commit 72b6d84

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ]
3+
}

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
"main": "index.js",
66
"scripts": {
77
"start": "wp-scripts start",
8-
"build": "wp-scripts build"
8+
"build": "wp-scripts build",
9+
"plugin-zip": "wp-scripts plugin-zip",
10+
"format": "wp-scripts format"
911
},
12+
"files": [
13+
"build",
14+
"index.php"
15+
],
16+
"prettier": "@wordpress/prettier-config",
1017
"keywords": [],
1118
"author": "",
12-
"license": "GPL v2 or later",
19+
"license": "GPLv2 or later",
1320
"devDependencies": {
1421
"@wordpress/scripts": "^24.6.0"
1522
}

0 commit comments

Comments
 (0)