diff options
author | Jake Spurlock <whyisjake@git.wordpress.org> | 2020-07-27 23:33:51 +0000 |
---|---|---|
committer | Jake Spurlock <whyisjake@git.wordpress.org> | 2020-07-27 23:33:51 +0000 |
commit | 9ed92faaca92f66ec9e2979c9d896ddab3e4e993 (patch) | |
tree | 6eb6989411e67d7bef774d4db3690d51da9a0ec0 /.eslintignore | |
parent | a1a1173250df598ba12523132743dfdf41770f9b (diff) | |
download | wordpress-9ed92faaca92f66ec9e2979c9d896ddab3e4e993.tar.gz wordpress-9ed92faaca92f66ec9e2979c9d896ddab3e4e993.zip |
Build/Test Tools: Enable JSDocs to be linted with ESLint.
As part of the [Javascript Inline Docs Initiative](https://make.wordpress.org/core/handbook/docs/inline/js/) this add some tooling to lint Javascript docblocks. Two new commands:
* `npm run lint:jsdoc`
* `npm run lint:jsdoc:fix`
The latter will run the linter and try to fix an possible issues automatically.
Fixes #43828.
Props netweb, atimmer, kamataryo, whyisjake.
git-svn-id: https://develop.svn.wordpress.org/trunk@48650 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to '.eslintignore')
-rw-r--r-- | .eslintignore | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..07f72581a9 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,15 @@ +# Files and folders related to build/test tools +/build +/node_modules +/tests +/vendor +/tools + +# Excluded files and folders based on `jsdoc.conf.json` exclusions +/src/js/_enqueues/vendor + +# Webpack built files +/src/wp-includes/js/media-* + +# Themes +src/wp-content/themes/ |