Skip to content

Commit 03e1a8a

Browse files
committed
Introduce Stylelint
1 parent 04b368b commit 03e1a8a

File tree

10 files changed

+1093
-63
lines changed

10 files changed

+1093
-63
lines changed

.stylelintrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"processors": ["stylelint-processor-styled-components"],
3+
"extends": [
4+
"stylelint-config-standard",
5+
"stylelint-config-styled-components"
6+
],
7+
"rules": {
8+
"declaration-colon-newline-after": null
9+
}
10+
}

examples/home/App.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ const CustomBtn = styled.div`
3232

3333
const CustomDot = styled.span`
3434
display: inline-block;
35-
height: ${({ isActive }) => (isActive ? '8px' : '6px')};
36-
width: ${({ isActive }) => (isActive ? '8px' : '6px')};
35+
height: 8px;
36+
width: ${({ isActive }) => (isActive ? '16px' : '8px')};
3737
opacity: ${({ isActive }) => (isActive ? '0.8' : '0.5')};
38+
border-radius: 8px;
3839
background: red;
3940
transition: all 0.2s;
4041
`

examples/image-carousel/App.js

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const HotelRow = styled.div`
3535

3636
const CarouselWapeer = styled.div`
3737
width: 340px;
38+
3839
@media screen and (max-width: 767px) {
3940
margin-bottom: 20px;
4041
width: 100%;

examples/tour-carousel/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const City = styled.div`
3636
3737
&:hover {
3838
transform: translateY(-5px);
39-
box-shadow: 0px 5px 5px 0px #666;
39+
box-shadow: 0 5px 5px 0 #666;
4040
}
4141
`
4242

0 commit comments

Comments
 (0)