Skip to content

Commit 5788b39

Browse files
committedSep 21, 2024·
DOCS: Fix lint & update stylelint to latest
1 parent cb2d9cc commit 5788b39

File tree

6 files changed

+397
-408
lines changed

6 files changed

+397
-408
lines changed
 

‎docs/.eslintrc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ module.exports = {
1414
},
1515
},
1616
plugins: ['ember'],
17-
extends: ['eslint:recommended', 'plugin:ember/recommended', 'plugin:prettier/recommended'],
17+
extends: [
18+
'eslint:recommended',
19+
'plugin:ember/recommended',
20+
'plugin:prettier/recommended',
21+
],
1822
env: {
1923
browser: true,
2024
},

‎docs/app/styles/app.css

+19-14
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
top: 0;
6565
right: 0;
6666
bottom: 0;
67-
background: rgba(71, 1, 1, 0.5);
67+
background: rgb(71, 1, 1 / 50%);
6868
color: pink;
6969
}
7070

@@ -93,9 +93,11 @@
9393
.horizontal-doc-auto-scroll-demo {
9494
white-space: nowrap;
9595
}
96+
9697
.horizontal-doc-auto-scroll-demo ol {
97-
padding-left: 0px;
98+
padding-left: 0;
9899
}
100+
99101
.horizontal-doc-auto-scroll-demo .sortable-item {
100102
width: 70px;
101103
}
@@ -106,7 +108,7 @@
106108
display: inline-block;
107109
position: relative;
108110
cursor: move;
109-
background-color: hsl(197, 100%, 45%);
111+
background-color: hsl(197deg 100% / 45%);
110112
margin: 0 4px;
111113
}
112114

@@ -127,11 +129,12 @@
127129

128130
.grid-demo .sortable-item.is-dragging,
129131
.horizontal-demo .sortable-item.is-dragging {
130-
background: hsl(197, 100%, 35%);
132+
background: hsl(197deg 100% / 35%);
131133
}
134+
132135
.grid-demo .sortable-item.is-dropping,
133136
.horizontal-demo .sortable-item.is-dropping {
134-
background: hsl(197, 100%, 40%);
137+
background: hsl(197deg 100% / 40%);
135138
z-index: 10;
136139
}
137140

@@ -148,6 +151,7 @@
148151
padding: 0;
149152
background: white;
150153
}
154+
151155
.table-demo td:last-child,
152156
.table-demo th:last-child {
153157
padding: 0 1em 0 4px;
@@ -190,14 +194,15 @@
190194
top: 0;
191195
right: 0;
192196
bottom: 0;
193-
background: rgba(71, 1, 1, 0.5);
197+
background: rgb(71, 1, 1 / 50%);
194198
color: pink;
195199
}
196200

197201
#ember-testing {
198202
transform: none !important;
199203
}
200204

205+
/* stylelint-disable-next-line selector-class-pattern */
201206
.sortable-item--active {
202207
outline: 2px solid purple;
203208
}
@@ -209,10 +214,10 @@
209214
position: relative;
210215
}
211216

212-
.sortable-handle-up:before,
213-
.sortable-handle-down:after,
214-
.sortable-handle-left:before,
215-
.sortable-handle-right:after {
217+
.sortable-handle-up::before,
218+
.sortable-handle-down::after,
219+
.sortable-handle-left::before,
220+
.sortable-handle-right::after {
216221
position: absolute;
217222
left: 50%;
218223
margin-left: -4px;
@@ -223,23 +228,23 @@
223228
border-width: 4px;
224229
}
225230

226-
.sortable-handle-up:before {
231+
.sortable-handle-up::before {
227232
top: -10px;
228233
border-bottom-color: #000;
229234
}
230235

231-
.sortable-handle-down:after {
236+
.sortable-handle-down::after {
232237
bottom: -10px;
233238
border-top-color: #000;
234239
}
235240

236-
.sortable-handle-left:before {
241+
.sortable-handle-left::before {
237242
top: 50%;
238243
left: -10px;
239244
border-right-color: #000;
240245
}
241246

242-
.sortable-handle-right:after {
247+
.sortable-handle-right::after {
243248
top: 50%;
244249
left: calc(100% + 10px);
245250
border-left-color: #000;

‎docs/config/targets.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

3-
const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'];
3+
const browsers = [
4+
'last 1 Chrome versions',
5+
'last 1 Firefox versions',
6+
'last 1 Safari versions',
7+
];
48

59
module.exports = {
610
browsers,

‎docs/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
1212
"lint:css": "stylelint \"**/*.css\"",
1313
"lint:css:fix": "concurrently \"pnpm:lint:css -- --fix\"",
14+
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
1415
"lint:hbs": "ember-template-lint .",
1516
"lint:hbs:fix": "ember-template-lint . --fix",
1617
"lint:js": "eslint .",
@@ -66,9 +67,9 @@
6667
"prettier": "^3.3.3",
6768
"qunit": "^2.22.0",
6869
"qunit-dom": "^2.0.0",
69-
"stylelint": "^15.11.0",
70-
"stylelint-config-standard": "^34.0.0",
71-
"stylelint-prettier": "^4.1.0",
70+
"stylelint": "^16.9.0",
71+
"stylelint-config-standard": "^36.0.0",
72+
"stylelint-prettier": "^5.0.2",
7273
"tracked-built-ins": "^3.3.0",
7374
"webpack": "^5.93.0"
7475
},

‎docs/tests/acceptance/smoke-modifier-test.js

+358-81
Large diffs are not rendered by default.

‎pnpm-lock.yaml

+6-308
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.