File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ const Box3 = styled(Box2)`
42
42
`
43
43
44
44
// Multiline
45
+ // prettier-ignore
45
46
const Button4 = styled . button `
46
47
display: block;
47
48
${ `
@@ -52,6 +53,7 @@ const Button4 = styled.button`
52
53
53
54
// Conditional
54
55
const cond = true
56
+ // prettier-ignore
55
57
const Button5 = styled . button `
56
58
display: block;
57
59
${ cond &&
@@ -63,10 +65,11 @@ const Button5 = styled.button`
63
65
64
66
// Conditional
65
67
const cond2 = false
68
+ // prettier-ignore
66
69
const Button6 = styled . button `
67
70
display: block;
68
71
${ cond2 &&
69
- `
72
+ `
70
73
color: ${ cond2 } ;
71
74
` }
72
75
background: blue;
@@ -79,3 +82,11 @@ const Button7 = styled.button`
79
82
width: 20px;
80
83
border: ${ borderWidth } ${ borderStyle } ${ color } ;
81
84
`
85
+
86
+ // Several interpolation statements in a block
87
+ // prettier-ignore
88
+ const Button8 = styled . button `
89
+ ${ `display: block;` }
90
+ ${ `color: ${ color } ;` }
91
+ ${ `background: blue;` }
92
+ `
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const path = require('path')
4
4
const processor = path . join ( __dirname , '../src/index.js' )
5
5
const rules = {
6
6
'block-no-empty' : true ,
7
+ 'declaration-block-no-duplicate-properties' : true ,
7
8
indentation : 2
8
9
}
9
10
You can’t perform that action at this time.
0 commit comments