Skip to content

Commit 255fbf5

Browse files
committed
Revert "Upgrade stylelint-polaris to stylelint v16 (#12337)"
This reverts commit b2d2da4.
1 parent b2d2da4 commit 255fbf5

File tree

81 files changed

+1121
-1877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1121
-1877
lines changed

.changeset/little-impalas-knock.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tricky-mayflies-push.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ module.exports = {
6969
'@typescript-eslint/consistent-type-imports': 'error',
7070
'@typescript-eslint/consistent-type-exports': 'error',
7171
'@typescript-eslint/naming-convention': 'off',
72-
'@typescript-eslint/consistent-indexed-object-style': 'off',
7372
'jsx-a11y/label-has-for': [
7473
2,
7574
{
@@ -87,8 +86,6 @@ module.exports = {
8786
'jsx-a11y/click-events-have-key-events': 'off',
8887
'jsx-a11y/no-noninteractive-element-interactions': 'off',
8988
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'off',
90-
'jest/no-conditional-in-test': 'off',
91-
'jest/no-standalone-expect': 'off',
9289
'no-restricted-imports': [
9390
'error',
9491
{

.prettierignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
.next
2-
pnpm-lock.yaml
3-
**/CHANGELOG.md
4-
/polaris-migrator/src/migrations/**/tests/*.scss
5-
/polaris-migrator/templates/**/*.hbs
62
dist
73
node_modules
84
/polaris-react/build

.stylelintrc.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ module.exports = {
99
'value-keyword-case': ['lower', {camelCaseSvgKeywords: true}],
1010
'at-rule-no-unknown': null,
1111
'scss/at-rule-no-unknown': true,
12-
'selector-max-class': 5,
13-
'selector-max-combinators': 5,
14-
'selector-max-compound-selectors': 5,
15-
'selector-max-specificity': '0,5,0',
16-
// Disabling this rule as it's not forward-compatible with new CSS rules
17-
// that get added. See: https://github.com/stylelint/stylelint/issues/7630
18-
'declaration-block-no-redundant-longhand-properties': null,
1912
},
2013
overrides: [
2114
{

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,32 @@
4040
"@rollup/plugin-replace": "^5.0.2",
4141
"@rollup/plugin-virtual": "^3.0.1",
4242
"@rollup/pluginutils": "^5.0.2",
43-
"@shopify/eslint-plugin": "^45.0.0",
44-
"@shopify/stylelint-plugin": "^14.0.0",
43+
"@shopify/eslint-plugin": "^42.0.1",
44+
"@shopify/stylelint-plugin": "^11.0.0",
4545
"@shopify/typescript-configs": "^5.1.0",
4646
"@size-limit/preset-small-lib": "^5.0.3",
4747
"@types/jest": "^29.5.12",
4848
"@types/node": "^20.10.0",
4949
"babel-loader": "^9.1.2",
50-
"eslint": "^8.56.0",
50+
"eslint": "^8.3.0",
5151
"eslint-plugin-storybook": "^0.8.0",
5252
"execa": "^5.0.0",
5353
"jest": "^29.7.0",
5454
"jest-environment-jsdom": "^29.7.0",
55-
"jest-preset-stylelint": "^7.0.1",
55+
"jest-preset-stylelint": "^5.0.3",
5656
"jest-watch-typeahead": "^2.2.2",
5757
"js-yaml": "^4.1.0",
5858
"npm-run-all": "^4.1.5",
5959
"postinstall-postinstall": "^2.1.0",
60-
"prettier": "^3.3.2",
60+
"prettier": "^2.5.0",
6161
"rollup": "^3.12.0",
6262
"rollup-plugin-node-externals": "^5.1.0",
6363
"size-limit": "^5.0.3",
64-
"stylelint": "^16.6.1",
64+
"stylelint": "^14.15.0",
6565
"ts-node": "^10.7.0",
6666
"turbo": "^1.11.1",
6767
"typescript": "^4.9.3"
6868
},
69-
"pnpm": {
70-
"patchedDependencies": {
71-
72-
}
73-
},
7469
"size-limit": [
7570
{
7671
"name": "polaris-react-cjs",

patches/[email protected]

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)