Skip to content

Commit 889d6e2

Browse files
committed
Build/Test: Fix JavaScript linting scripts
`wp-prettier` was out of date and no longer compatible with wp-scripts. Additionally, many generated files and plugins were not being properly ignored which could cause linting to take so long that it was basically unusable. Props ankitkumarshah, jorbin. See #62935. git-svn-id: https://develop.svn.wordpress.org/trunk@59848 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 26ed02b commit 889d6e2

File tree

3 files changed

+32
-27
lines changed

3 files changed

+32
-27
lines changed

.eslintignore

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
# Files and folders related to build/test tools
1+
# Files and folders related to build/test tools including generated files
22
/build
33
/node_modules
44
/tests
55
/vendor
66
/tools
7+
/jsdoc
8+
/artifacts
9+
/coverage
10+
.cache/*
11+
/src/wp-includes/blocks/**/*.js
12+
/src/wp-includes/blocks/**/*.js.map
13+
/src/wp-admin/js
14+
/src/wp-includes/js
715

816
# Excluded files and folders based on `jsdoc.conf.json` exclusions
917
/src/js/_enqueues/vendor
1018

11-
# Webpack built files
12-
/src/wp-includes/js/media-*
13-
1419
# Themes
15-
src/wp-content/themes/
20+
src/wp-content/themes
21+
22+
# Files and folders that get created in wp-content
23+
/src/wp-content/plugins
24+
/src/wp-content/mu-plugins
25+
/src/wp-content/upgrade
26+
/src/wp-content/uploads

package-lock.json

Lines changed: 15 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"ink-docstrap": "1.3.2",
6363
"install-changed": "1.1.0",
6464
"postcss": "8.4.49",
65-
"prettier": "npm:wp-prettier@2.6.2",
65+
"prettier": "npm:wp-prettier@3.0.3",
6666
"qunit": "~2.23.1",
6767
"react-refresh": "0.14.0",
6868
"sass": "1.83.4",

0 commit comments

Comments
 (0)