Add local CSS lint checks (#4068)
* update package scripts to include prettifying scss files and stylelint-ing; fix related issues found from stylelinter * revert old prettier autofix * lint --------- Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
parent
c03637fd9b
commit
a6dc9645e6
@ -6,7 +6,7 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-size: var(--chat-message-text-size);
|
font-size: var(--chat-message-text-size);
|
||||||
|
|
||||||
@include flexCenter;
|
@include flex-center;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@ -9,12 +9,13 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "eslint --fix --ext .js,.ts,.tsx types/ pages/ components/ stories/",
|
"lint": "eslint --fix --ext .js,.ts,.tsx types/ pages/ components/ stories/ && npm run stylelint",
|
||||||
|
"stylelint": "stylelint **/*.scss",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"build-styles": "cd ./style-definitions && style-dictionary build && ./build.sh && cd -",
|
"build-styles": "cd ./style-definitions && style-dictionary build && ./build.sh && cd -",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"format": "prettier --write **/*.{js,ts,jsx,tsx,css,md}"
|
"format": "prettier --write **/*.{js,ts,jsx,tsx,css,md,scss}"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "4.8.3",
|
"@ant-design/icons": "4.8.3",
|
||||||
|
@ -46,17 +46,6 @@ BUTTONS
|
|||||||
border-radius: var(--theme-rounded-corners);
|
border-radius: var(--theme-rounded-corners);
|
||||||
border-color: var(--theme-color-components-primary-button-border);
|
border-color: var(--theme-color-components-primary-button-border);
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
border-color: var(--theme-color-action-hover);
|
|
||||||
color: var(--theme-color-action-hover);
|
|
||||||
background-color: var(--theme-color-components-secondary-button-background);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
border-color: var(--theme-color-components-secondary-button-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
&[ant-click-animating-without-extra-node]::after {
|
&[ant-click-animating-without-extra-node]::after {
|
||||||
animation: 0s !important;
|
animation: 0s !important;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@mixin flexCenter {
|
@mixin flex-center {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user