Make WordPress Core

Changeset 48650 for trunk/package.json


Ignore:
Timestamp:
07/27/2020 11:33:51 PM (5 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r48644 r48650  
    156156        "watch": "grunt watch",
    157157        "grunt": "grunt",
     158        "lint:jsdoc": "wp-scripts lint-js",
     159        "lint:jsdoc:fix": "wp-scripts lint-js --fix",
    158160        "env:start": "node ./tools/local-env/scripts/start.js",
    159161        "env:stop": "node ./tools/local-env/scripts/docker.js down",
Note: See TracChangeset for help on using the changeset viewer.