Skip to content

Commit 308eb5f

Browse files
committed
use prettier for css linting
1 parent 9849495 commit 308eb5f

File tree

20 files changed

+89
-90
lines changed

20 files changed

+89
-90
lines changed

.stylelintrc.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2-
"extends": "stylelint-config-standard",
3-
"rules": {
4-
}
5-
};
2+
plugins: ['stylelint-prettier'],
3+
rules: {
4+
'prettier/prettier': true,
5+
},
6+
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"babel-eslint": "^10.0.1",
3939
"babel-jest": "^23.6.0",
4040
"eslint": "^5.8.0",
41-
"eslint-plugin-class-property": "^1.1.0",
4241
"eslint-plugin-jest": "^21.27.1",
4342
"eslint-plugin-prettier": "^3.0.0",
4443
"eslint-plugin-react": "^7.11.1",
@@ -47,7 +46,7 @@
4746
"lerna": "^3.4.3",
4847
"prettier": "^1.14.3",
4948
"stylelint": "^9.7.1",
50-
"stylelint-config-standard": "^18.2.0",
49+
"stylelint-prettier": "^1.0.3",
5150
"web-ext": "^2.4.0"
5251
}
5352
}

packages/selenium-ide/src/neo/components/ActionButtons/Record/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
height: 8px;
1919
display: block;
2020
margin: auto;
21-
content: "";
21+
content: '';
2222
}
2323

2424
@keyframes fadeIn {
25-
from { opacity: 0.3; }
25+
from {
26+
opacity: 0.3;
27+
}
2628
}

packages/selenium-ide/src/neo/components/ActionButtons/SpeedGauge/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.btn-action[class*="si-gauge-"] {
1+
.btn-action[class*='si-gauge-'] {
22
position: relative;
33
width: 40px;
44
text-align: left;
55
padding-left: 4px;
66
}
77

8-
.btn-action[class*="si-gauge-"] i {
8+
.btn-action[class*='si-gauge-'] i {
99
transform: rotate(90deg);
1010
position: absolute;
1111
font-size: 8px;
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
input[type="checkbox"].checkbox {
1+
input[type='checkbox'].checkbox {
22
position: absolute;
33
opacity: 0;
44
}
55

6-
input[type="checkbox"].checkbox + label {
6+
input[type='checkbox'].checkbox + label {
77
display: block;
88
cursor: pointer;
99
padding: 5px 0;
1010
}
1111

12-
input[type="checkbox"].checkbox + label span {
12+
input[type='checkbox'].checkbox + label span {
1313
display: inline-block;
1414
background-color: #fff;
1515
color: #40a6ff;
@@ -24,22 +24,23 @@ input[type="checkbox"].checkbox + label span {
2424
border: 1px solid #dcdcdc;
2525
border-radius: 3px;
2626
box-shadow: inset 0 0 1px 1px transparent;
27-
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
27+
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
28+
box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
2829
}
2930

30-
input[type="checkbox"].checkbox:disabled + label span {
31+
input[type='checkbox'].checkbox:disabled + label span {
3132
color: rgba(128, 128, 128, 0.6);
3233
background-color: whitesmoke;
3334
border-color: whitesmoke;
3435
cursor: not-allowed;
3536
}
3637

37-
input[type="checkbox"].checkbox:not(:disabled) + label:active span {
38+
input[type='checkbox'].checkbox:not(:disabled) + label:active span {
3839
background-color: #fdfdfd;
3940
box-shadow: inset 0 0 1px 1px #ececec;
4041
}
4142

42-
input[type="checkbox"].checkbox + label > div {
43+
input[type='checkbox'].checkbox + label > div {
4344
display: inline-block;
4445
width: 85px;
4546
}

packages/selenium-ide/src/neo/components/CommandForm/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
height: 19px;
4747
}
4848

49-
.command-form input[type="submit"] {
49+
.command-form input[type='submit'] {
5050
position: absolute;
5151
width: 0;
5252
height: 0;

packages/selenium-ide/src/neo/components/Dialogs/Rename/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.rename-dialog .message::before {
2-
content: "*";
2+
content: '*';
33
}
44

55
.rename-dialog .more-icon {

packages/selenium-ide/src/neo/components/FlatButton/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
outline: 0;
99
text-transform: capitalize;
1010
box-shadow: inset -1px 1px 1px 0 transparent;
11-
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
11+
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
12+
box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1213
}
1314

1415
.btn:hover {

packages/selenium-ide/src/neo/components/ImportDialog/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
}
5353

5454
.import-dialog ul li::before {
55-
content: "✓";
55+
content: '✓';
5656
text-align: center;
5757
line-height: 14px;
5858
font-size: 14px;

packages/selenium-ide/src/neo/components/Menu/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
padding: 10px 0;
1010
opacity: 1;
1111
transform: scale(1, 1);
12-
transition: opacity 287ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 191ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
12+
transition: opacity 287ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
13+
transform 191ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1314
}
1415

1516
.menu.content.closed {

0 commit comments

Comments
 (0)