diff --git a/.changeset/neat-bulldogs-love.md b/.changeset/neat-bulldogs-love.md new file mode 100644 index 00000000000..af8befd2720 --- /dev/null +++ b/.changeset/neat-bulldogs-love.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris-icons': patch +--- + +Added missing `svgo` dev dependency diff --git a/.changeset/silver-rocks-own.md b/.changeset/silver-rocks-own.md new file mode 100644 index 00000000000..10396c572b4 --- /dev/null +++ b/.changeset/silver-rocks-own.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +Lint fixes diff --git a/polaris-icons/package.json b/polaris-icons/package.json index d62a58a2970..8f7b6e1c009 100644 --- a/polaris-icons/package.json +++ b/polaris-icons/package.json @@ -62,6 +62,7 @@ "hast-util-select": "^3.0.0", "js-yaml": "^4.0.0", "rehype-parse": "^7.0.1", + "svgo": "^2.8.0", "unified": "^9.2.1" }, "peerDependencies": { diff --git a/polaris-icons/tests/validate-svg-content.test.js b/polaris-icons/tests/validate-svg-content.test.js index e6311d09a7f..442103661ac 100644 --- a/polaris-icons/tests/validate-svg-content.test.js +++ b/polaris-icons/tests/validate-svg-content.test.js @@ -1,7 +1,6 @@ const fs = require('fs'); const path = require('path'); -// eslint-disable-next-line import/no-extraneous-dependencies const svgo = require('svgo'); const globby = require('globby'); const unified = require('unified'); diff --git a/polaris-react/postcss-mixins/no-focus-ring.css b/polaris-react/postcss-mixins/no-focus-ring.css index aed4070fe38..2e4fdb944b3 100644 --- a/polaris-react/postcss-mixins/no-focus-ring.css +++ b/polaris-react/postcss-mixins/no-focus-ring.css @@ -2,4 +2,4 @@ &::after { content: none; } -} ; +} diff --git a/yarn.lock b/yarn.lock index de6576e9c68..172ead825c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20775,7 +20775,7 @@ svg-tags@^1.0.0: resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" integrity sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q= -svgo@^2.7.0: +svgo@^2.7.0, svgo@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24" integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==