Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update recommended config provided for lint-js script #12845

Merged
merged 3 commits into from
Dec 19, 2018

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
packages/scripts/CHANGELOG.md Outdated Show resolved Hide resolved
packages/scripts/README.md Outdated Show resolved Hide resolved
@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.

2 participants