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

fix(deps): update dependency stylelint-prettier to v4 - abandoned #14744

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion config/eslint-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
},
"devDependencies": {
"babel-preset-carbon": "workspace:^",
"prettier": "^2.8.8"
"prettier": "^3.0.3"
}
}
2 changes: 1 addition & 1 deletion config/prettier-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"provenance": true
},
"peerDependencies": {
"prettier": "2.x"
"prettier": "^3.0.3"
}
}
14 changes: 7 additions & 7 deletions config/stylelint-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
"provenance": true
},
"peerDependencies": {
"stylelint": "^15.0.0"
"stylelint": "^15.10.3"
},
"dependencies": {
"stylelint-a11y": "^1.2.3",
"stylelint-config-idiomatic-order": "^9.0.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-config-standard-scss": "^11.0.0",
"stylelint-no-unsupported-browser-features": "^7.0.0",
"stylelint-order": "^6.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.1.0",
"stylelint-order": "^6.0.3",
"stylelint-prettier": "^4.0.2",
"stylelint-scss": "^5.2.1",
"stylelint-stylistic": "^0.4.3",
"stylelint-use-logical": "^2.1.0"
},
"devDependencies": {
"prettier": "^2.8.8",
"stylelint": "^15.0.0"
"prettier": "^3.0.3",
"stylelint": "^15.10.3"
}
}
16 changes: 15 additions & 1 deletion config/stylelint-config-carbon/plugins/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@

'use strict';

const OFF = null;

module.exports = {
extends: ['stylelint-config-prettier'],
extends: ['stylelint-config-standard'],
plugins: ['stylelint-prettier'],
rules: {
'prettier/prettier': true,

// Overrides for stylelint-config-standard that are expecting CSS, not SCSS
'annotation-no-unknown': OFF,
'alpha-value-notation': OFF,
'value-keyword-case': OFF,
'color-function-notation': OFF,
'at-rule-empty-line-before': OFF,
'function-no-unknown': OFF,
'at-rule-no-unknown': OFF,
'media-query-no-invalid': OFF,
'color-hex-length': 'long',
'selector-class-pattern': OFF,
},
};
3 changes: 2 additions & 1 deletion config/stylelint-config-carbon/rules/possible-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
const OFF = null;

module.exports = {
plugins: ['stylelint-stylistic'],
rules: {
// Color
'color-no-invalid-hex': true,
Expand Down Expand Up @@ -65,7 +66,7 @@ module.exports = {
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-extra-semicolons': true,
'stylistic/no-extra-semicolons': true,
// Doesn't trigger when using a preprocessor that allows double slash
// comments
'no-invalid-double-slash-comments': true,
Expand Down
Loading
Loading