Move devDependencies from individual packages to root package.json#302
Open
Move devDependencies from individual packages to root package.json#302
devDependencies from individual packages to root package.json#302Conversation
tfrommen
reviewed
Dec 16, 2022
|
|
||
| import chalk from 'chalk'; | ||
| import eslint from 'eslint'; | ||
|
|
Contributor
There was a problem hiding this comment.
Why this change? With it, the coding standards should actually fail on this...?
Contributor
Author
There was a problem hiding this comment.
I suspected it was a bug fix in import/order, as all 3 of these imports are external and should not have a blank line between them, particularly the package scope @ character is what was the false positive
Running the tests when including the blank line results in:
Code
import chalk from 'chalk';
import eslint from 'eslint';
import apiFetch from '@wordpress/api-fetch';
Test
/Users/netweb/Code/humanmade/coding-standards/packages/eslint-config-humanmade/fixtures/pass/import-order.js
6:1 error There should be no empty line within import group import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
1 unexpected error!
Contributor
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
Thanks, I'll take a closer look to try to determine why the rule is failing in this PR, as based on the above it shouldn't be, thanks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
This PR moves the
devDependenciesfrom individual Node.js packages to the rootpackage.jsonfile, this is because we can run the tests for both packages from the root directory instead of each package directoryActual version bumps to the
devDependencieswill follow in further PRs on MondayAdditional PRs will follow for the
peerDependencieschangesIdeally my initial plan is to release updated versions as v2.0.0 with as few breaking changes as possible
I originally added a Node.js job, but it fails due to a Travis CI issue, so I removed it,will add this back when switching to GitHub Actions
Test Instructions
Install Node.js v16, install dependencies, run tests:
Test Results