Skip to content

Commit a9c272e

Browse files
committedDec 10, 2023
[core] Add css checking to prettier
1 parent 3fbe950 commit a9c272e

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed
 

‎.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
*.d.ts
2+
packages/*/*/styles.css
3+
packages/*/*/styles.layer.css
4+
packages/*/*/styles/*.css
5+
docs/.next
6+
docs/out

‎docs/src/combobox-examples/examples/SelectedAnimation/SelectedAnimation.module.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.option {
2-
transition: transform 100ms ease, box-shadow 100ms ease;
2+
transition:
3+
transform 100ms ease,
4+
box-shadow 100ms ease;
35

46
&[data-combobox-selected] {
57
font-weight: 500;

‎docs/src/combobox-examples/examples/SelectedAnimation/code.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
{
88
"fileName": "SelectedAnimation.module.css",
99
"language": "css",
10-
"code": ".option {\n transition: transform 100ms ease, box-shadow 100ms ease;\n\n &[data-combobox-selected] {\n font-weight: 500;\n transform: scale(1.1);\n box-shadow: var(--mantine-shadow-lg);\n }\n}\n"
10+
"code": ".option {\n transition:\n transform 100ms ease,\n box-shadow 100ms ease;\n\n &[data-combobox-selected] {\n font-weight: 500;\n transform: scale(1.1);\n box-shadow: var(--mantine-shadow-lg);\n }\n}\n"
1111
}
1212
]

‎docs/src/components/ColorsGenerator/ColorsList/ColorsList.module.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
height: 0;
2222
padding-bottom: 100%;
2323
overflow: hidden;
24-
transition: transform 100ms ease, box-shadow 100ms ease, border-radius 100ms ease;
24+
transition:
25+
transform 100ms ease,
26+
box-shadow 100ms ease,
27+
border-radius 100ms ease;
2528

2629
&[data-base] {
2730
transform: scale(1.2) translateY(rem(-5px));

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"stylelint": "stylelint '**/*.css' --cache",
5555
"syncpack": "syncpack list-mismatches",
5656
"syncpack:format": "syncpack format",
57-
"prettier:test": "prettier --check \"**/*.{ts,tsx,mdx}\"",
58-
"prettier:write": "prettier --write \"**/*.{ts,tsx,mdx}\""
57+
"prettier:test": "prettier --check \"**/*.{ts,tsx,mdx,css}\"",
58+
"prettier:write": "prettier --write \"**/*.{ts,tsx,mdx,css}\""
5959
},
6060
"dependencies": {
6161
"@floating-ui/react": "^0.24.8",

‎packages/@docs/demos/src/demos/styles/Styles.demo.classNames.module.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
color: var(--mantine-color-placeholder);
2222
font-weight: 400;
2323
font-size: var(--mantine-font-size-sm);
24-
transition: color 100ms ease, transform 100ms ease, font-size 100ms ease;
24+
transition:
25+
color 100ms ease,
26+
transform 100ms ease,
27+
font-size 100ms ease;
2528

2629
&[data-floating] {
2730
transform: translateY(rem(-20px));

‎packages/@mantine/core/src/components/Pill/Pill.module.css

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
--_pill-color: var(--mantine-color-black);
4040
}
4141

42-
43-
4442
@mixin rtl {
4543
padding-right: 0.8em;
4644
padding-left: var(--_pill-padding-right, 0.8em);

0 commit comments

Comments
 (0)
Please sign in to comment.