Skip to content

Conversation

@gziolo
Copy link
Member

@gziolo gziolo commented Dec 13, 2018

Description

With #12763 we introduced @wordpress/eslint-plugin package which offers the recommended config for WordPress development. This PR updates wp-scripts lint-js script to use this config as a default when there is no config provided in the project.

How has this been tested?

  • npm run lint-js in the project` - it should work as before.
  • ./node_modules/.bin/wp-scripts lint-js . - it will produce tons of errors because the default config doesn't support Jest tests or Puppeteer API by default.

To consider

Should we also include support for Jest and Puppeteer in the recommended config? The thing is that we offer them in other scripts exposed (or planned to be exposed) as part of @wordpress/scripts package.

@gziolo gziolo added the [Tool] WP Scripts /packages/scripts label Dec 13, 2018
@gziolo gziolo added this to the 4.8 milestone Dec 13, 2018
@gziolo gziolo self-assigned this Dec 13, 2018
@gziolo gziolo requested review from aduth, ntwb and youknowriad December 13, 2018 15:58
@gziolo gziolo force-pushed the update/lint-js-config branch from c09ffc4 to cc6ce31 Compare December 13, 2018 16:37
@gziolo gziolo changed the title Update default config provided for lint-js script Update recommended config provided for lint-js script Dec 14, 2018
@gziolo gziolo merged commit 2934d6c into master Dec 19, 2018
@gziolo gziolo deleted the update/lint-js-config branch December 19, 2018 08:18
youknowriad pushed a commit that referenced this pull request Jan 9, 2019
* Update default config provided for lint-js script

* Update packages/scripts/CHANGELOG.md

* Clarify usage of recommended configs in docs
youknowriad pushed a commit that referenced this pull request Jan 9, 2019
* Update default config provided for lint-js script

* Update packages/scripts/CHANGELOG.md

* Clarify usage of recommended configs in docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Tool] WP Scripts /packages/scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants