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

Add missing svgo dev dependency #11824

Merged
merged 6 commits into from
Apr 9, 2024
Merged

Add missing svgo dev dependency #11824

merged 6 commits into from
Apr 9, 2024

Conversation

ryanwilsonperkin
Copy link
Member

WHY are these changes introduced?

While working on #11799 a number of lint warnings were reported which I've fixed, we'll look to ship these separately to avoid them bloating that PR.

@jesstelford
Copy link
Contributor

jesstelford commented Apr 8, 2024

I've attempted to track down the CI failure, but I'm get non-deterministic results from running the linter 🤔

Here are a sample of the errors I've gotten which seem to happen randomly when changing unrelated files. All were run in a fresh clone with a yarn install && yarn build then yarn lint --force --no-cache to ensure cache wasn't interfering with the results:

@shopify/polaris-tokens:lint: /Users/jess/dev/polaris-format/polaris-tokens/src/themes/base/breakpoints.ts
@shopify/polaris-tokens:lint:   8:32  error  Replace `(typeof·breakpointsAliases)` with `typeof·breakpointsAliases`  prettier/prettier
@shopify/polaris-tokens:lint:
@shopify/polaris-tokens:lint: /Users/jess/dev/polaris-format/polaris-tokens/src/themes/types.ts
@shopify/polaris-tokens:lint:   7:25  error  Replace `(typeof·themeNames)` with `typeof·themeNames`  prettier/prettier
@shopify/polaris-icons:lint: /Users/jess/dev/polaris-format/polaris-icons/tests/validate-svg-content.test.js
@shopify/polaris-icons:lint:   4:29  error  'import/no-extraneous-dependencies' rule is disabled but never reported  eslint-comments/no-unused-disable
@shopify/polaris-icons:lint: /Users/jess/dev/polaris-format/polaris-icons/tests/validate-svg-content.test.js
@shopify/polaris-icons:lint:   4:14  error  'svgo' should be listed in the project's dependencies. Run 'npm i -S svgo' to add it  import/no-extraneous-dependencies

At this point, I honestly have no idea and given this doesn't appear to be failing in CI on other branches, I'm not going to bother digging deeper.

@aaronccasanova
Copy link
Member

I reverted a handful of the formatting updates, re-ran prettier on each file, and added the missing svgo devDependency removed in #11328 to resolve the lint failures. Not exactly sure why these updates errored in the pnpm PR #11799, but I suggest keeping the remaining updates with that work. Thoughts?

@aaronccasanova aaronccasanova changed the title Fix lint formatting Add missing svgo dev dependency Apr 9, 2024
@aaronccasanova aaronccasanova merged commit 79130ee into main Apr 9, 2024
10 checks passed
@aaronccasanova aaronccasanova deleted the prettier-format branch April 9, 2024 01:02
aaronccasanova pushed a commit that referenced this pull request Apr 9, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @shopify/polaris-migrator@0.29.0

### Minor Changes

- [#11831](#11831)
[`99972a50b`](99972a5)
Thanks [@lgriffee](https://github.com/lgriffee)! - Created migration to
replace deprecated `text` custom properties in polaris-react v14.0.0

## @shopify/polaris@12.27.0

### Minor Changes

- [#11783](#11783)
[`0bf817afc`](0bf817a)
Thanks [@chloerice](https://github.com/chloerice)! - Added support to
`Filters` for indicating `appliedFilters` have unsaved changes

### Patch Changes

- [#11824](#11824)
[`79130eeea`](79130ee)
Thanks [@ryanwilsonperkin](https://github.com/ryanwilsonperkin)! - Lint
fixes


- [#11845](#11845)
[`8145d7326`](8145d73)
Thanks [@kyledurand](https://github.com/kyledurand)! - Added
`touch-action: manipulation` to `Button` and `Link`

- Updated dependencies
\[[`79130eeea`](79130ee)]:
    -   @shopify/polaris-icons@8.11.1

## @shopify/polaris-icons@8.11.1

### Patch Changes

- [#11824](#11824)
[`79130eeea`](79130ee)
Thanks [@ryanwilsonperkin](https://github.com/ryanwilsonperkin)! - Added
missing `svgo` dev dependency

## polaris.shopify.com@0.67.4

### Patch Changes

- [#11851](#11851)
[`e2909baa9`](e2909ba)
Thanks [@sarahill](https://github.com/sarahill)! - Updated common action
guidance.

- Updated dependencies
\[[`0bf817afc`](0bf817a),
[`79130eeea`](79130ee),
[`79130eeea`](79130ee),
[`8145d7326`](8145d73)]:
    -   @shopify/polaris@12.27.0
    -   @shopify/polaris-icons@8.11.1
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
Co-authored-by: Aaron Casanova <aaron.casanova@shopify.com>
Co-authored-by: Jess Telford <jess.telford@shopify.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants