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

chore: update stylelint from v15 to v16 #6515

Merged
7 changes: 7 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
module.exports = {
extends: ['stylelint-config-carbon'],
plugins: ['stylelint-plugin-carbon-tokens'],
rules: {
'max-nesting-depth': null,
'scss/no-global-function-names': null,
'csstools/use-logical': null,
'scss/load-no-partial-leading-underscore': null,
'scss/double-slash-comment-inline': null,
'no-duplicate-selectors': null,

'carbon/layout-use': true,
'carbon/motion-duration-use': [true, { severity: 'warning' }],
'carbon/motion-easing-use': true,
'carbon/theme-use': true,
'carbon/type-use': true,
},
};
6 changes: 3 additions & 3 deletions .vscode/carbon-snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"prefix": [
"//la"
],
"body": "// stylelint-disable-next-line carbon/layout-token-use"
"body": "// stylelint-disable-next-line carbon/layout-use"
},
"Stylelint disable next line Carbon Duraion": {
"scope": "scss",
Expand All @@ -49,14 +49,14 @@
"prefix": [
"//ty"
],
"body": "// stylelint-disable-next-line carbon/type-token-use"
"body": "// stylelint-disable-next-line carbon/type-use"
},
"Stylelint disable next line Carbon Theme": {
"scope": "scss",
"prefix": [
"//th"
],
"body": "// stylelint-disable-next-line carbon/theme-token-use"
"body": "// stylelint-disable-next-line carbon/theme-use"
},
// spacing tokens
"spacing-01 (0.125rem 2px)": { "scope": "scss", "prefix": ["$sp", "$car"], "body": "$$spacing-01", "description": "Carbon spacing token" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const Example = () => {
IBM{' '}
<span
style={
// stylelint-disable-next-line carbon/type-token-use
// stylelint-disable-next-line carbon/type-use
{ fontWeight: '600' }
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
display: inline-block;
width: 150px;
height: 150px;
// stylelint-disable-next-line carbon/layout-token-use
// stylelint-disable-next-line carbon/layout-use
margin: 1rem;
// stylelint-disable-next-line carbon/theme-token-use
// stylelint-disable-next-line carbon/theme-use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// stylelint-disable-next-line carbon/theme-use

Wouldn’t this one count as token use? 🤔

background-color: $background-inverse;
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

.carbon-theme-dropdown {
position: fixed;
bottom: 1rem; // stylelint-disable-line carbon/layout-token-use
left: 1rem; // stylelint-disable-line carbon/layout-token-use
bottom: 1rem; // stylelint-disable-line carbon/layout-use
left: 1rem; // stylelint-disable-line carbon/layout-use
min-width: 11.5rem;
}

Expand Down
Loading
Loading