Skip to content

Commit c09e29b

Browse files
Bump stylelint from 14.16.1 to 15.10.1 (#58)
* Bump stylelint from 14.16.1 to 15.10.1 Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.16.1 to 15.10.1. - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint@14.16.1...15.10.1) --- updated-dependencies: - dependency-name: stylelint dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * [skip ci] Bump stylelint * Bump stylelint and prettier * Align prettier related packages versions * Fix linter --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Frédéric Collonval <[email protected]> Co-authored-by: Frédéric Collonval <[email protected]>
1 parent b5b81ed commit c09e29b

File tree

29 files changed

+1404
-1159
lines changed

29 files changed

+1404
-1159
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ yarn add @jupyter/web-components
7272
A pre-bundled script that contains all APIs needed to use Jupyter UI Toolkit is available on CDN. You can use this script by adding [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to the script element and then importing from the CDN.
7373

7474
```html
75-
<!DOCTYPE html>
75+
<!doctype html>
7676
<html lang="en">
7777
<head>
7878
<script

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@
3636
"@typescript-eslint/eslint-plugin": "^5.55.0",
3737
"@typescript-eslint/parser": "^5.55.0",
3838
"eslint": "^8.36.0",
39-
"eslint-config-prettier": "^8.7.0",
40-
"eslint-plugin-prettier": "^4.2.1",
39+
"eslint-config-prettier": "^8.8.0",
40+
"eslint-plugin-prettier": "^5.0.0",
4141
"lerna": "^7.0.0",
42-
"prettier": "^2.8.8",
43-
"stylelint": "^14.9.1",
44-
"stylelint-config-prettier": "^9.0.4",
45-
"stylelint-config-recommended": "^8.0.0",
46-
"stylelint-config-standard": "^26.0.0",
47-
"stylelint-prettier": "^2.0.0"
42+
"prettier": "^3.0.0",
43+
"stylelint": "^15.10.1",
44+
"stylelint-config-recommended": "^13.0.0",
45+
"stylelint-config-standard": "^34.0.0",
46+
"stylelint-prettier": "^4.0.0"
4847
},
4948
"resolutions": {
5049
"file-system-cache": "<2.4.0 || >2.4.0"

packages/components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@
6969
"@types/jest": "^29.0.0",
7070
"@typescript-eslint/eslint-plugin": "^5.60.1",
7171
"eslint": "^8.43.0",
72-
"eslint-config-prettier": "^6.15.0",
72+
"eslint-config-prettier": "^8.8.0",
7373
"eslint-plugin-import": "^2.25.2",
7474
"eslint-plugin-storybook": "^0.6.12",
7575
"gh-pages": "^5.0.0",
7676
"jest": "^29.5.0",
77-
"prettier": "^2.8.8",
77+
"prettier": "^3.0.0",
7878
"react": "^18.2.0",
7979
"react-dom": "^18.2.0",
8080
"remark-gfm": "^3.0.1",

packages/components/src/accordion-item/accordion-item.styles.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,14 @@ export const accordionItemStyles: FoundationElementTemplate<
148148
position: relative;
149149
}
150150
`.withBehaviors(
151-
forcedColorsStylesheetBehavior(
152-
css`
153-
/* prettier-ignore */
154-
.button:${focusVisible}::before {
151+
forcedColorsStylesheetBehavior(css`
152+
/* prettier-ignore */
153+
.button:${focusVisible}::before {
155154
border-color: ${SystemColors.Highlight};
156155
}
157-
:host slot[name='collapsed-icon'],
158-
:host([expanded]) slot[name='expanded-icon'] {
159-
fill: ${SystemColors.ButtonText};
160-
}
161-
`
162-
)
156+
:host slot[name='collapsed-icon'],
157+
:host([expanded]) slot[name='expanded-icon'] {
158+
fill: ${SystemColors.ButtonText};
159+
}
160+
`)
163161
);

packages/components/src/badge/badge.styles.ts

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,37 @@ import { heightNumber } from '../styles/index';
2222
export const badgeStyles: FoundationElementTemplate<ElementStyles> = (
2323
context,
2424
definition
25-
) =>
26-
css`
27-
${display('inline-block')} :host {
28-
box-sizing: border-box;
29-
font-family: ${bodyFont};
30-
font-size: ${typeRampMinus1FontSize};
31-
line-height: ${typeRampMinus1LineHeight};
32-
}
25+
) => css`
26+
${display('inline-block')} :host {
27+
box-sizing: border-box;
28+
font-family: ${bodyFont};
29+
font-size: ${typeRampMinus1FontSize};
30+
line-height: ${typeRampMinus1LineHeight};
31+
}
3332
34-
.control {
35-
border-radius: calc(${controlCornerRadius} * 1px);
36-
padding: calc(((${designUnit} * 0.5) - ${strokeWidth}) * 1px)
37-
calc((${designUnit} - ${strokeWidth}) * 1px);
38-
color: ${neutralForegroundRest};
39-
font-weight: 600;
40-
border: calc(${strokeWidth} * 1px) solid transparent;
41-
background-color: ${neutralFillRest};
42-
}
33+
.control {
34+
border-radius: calc(${controlCornerRadius} * 1px);
35+
padding: calc(((${designUnit} * 0.5) - ${strokeWidth}) * 1px)
36+
calc((${designUnit} - ${strokeWidth}) * 1px);
37+
color: ${neutralForegroundRest};
38+
font-weight: 600;
39+
border: calc(${strokeWidth} * 1px) solid transparent;
40+
background-color: ${neutralFillRest};
41+
}
4342
44-
.control[style] {
45-
font-weight: 400;
46-
}
43+
.control[style] {
44+
font-weight: 400;
45+
}
4746
48-
:host([circular]) .control {
49-
border-radius: 100px;
50-
padding: 0 calc(${designUnit} * 1px);
51-
/* Need to work with Brian on width and height here */
52-
height: calc((${heightNumber} - (${designUnit} * 3)) * 1px);
53-
min-width: calc((${heightNumber} - (${designUnit} * 3)) * 1px);
54-
display: flex;
55-
align-items: center;
56-
justify-content: center;
57-
box-sizing: border-box;
58-
}
59-
`;
47+
:host([circular]) .control {
48+
border-radius: 100px;
49+
padding: 0 calc(${designUnit} * 1px);
50+
/* Need to work with Brian on width and height here */
51+
height: calc((${heightNumber} - (${designUnit} * 3)) * 1px);
52+
min-width: calc((${heightNumber} - (${designUnit} * 3)) * 1px);
53+
display: flex;
54+
align-items: center;
55+
justify-content: center;
56+
box-sizing: border-box;
57+
}
58+
`;

packages/components/src/breadcrumb-item/breadcrumb-item.styles.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,14 @@ export const breadcrumbItemStyles: FoundationElementTemplate<
133133
margin-inline-start: 6px;
134134
}
135135
`.withBehaviors(
136-
forcedColorsStylesheetBehavior(
137-
css`
138-
.control:hover .content::before,
136+
forcedColorsStylesheetBehavior(css`
137+
.control:hover .content::before,
139138
.control:${focusVisible} .content::before {
140-
background: ${SystemColors.LinkText};
141-
}
142-
.start,
143-
.end {
144-
fill: ${SystemColors.ButtonText};
145-
}
146-
`
147-
)
139+
background: ${SystemColors.LinkText};
140+
}
141+
.start,
142+
.end {
143+
fill: ${SystemColors.ButtonText};
144+
}
145+
`)
148146
);

0 commit comments

Comments
 (0)