Skip to content

Commit 7f793a5

Browse files
committed
linter issue
1 parent 47817f8 commit 7f793a5

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/components/Simulations/Simulations.pcss

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,20 +297,23 @@ $(b) {
297297
}
298298

299299
&__import-dropzone {
300-
flex: 1;
301300
display: flex;
301+
flex: 1;
302302
flex-direction: column;
303303
align-items: center;
304-
padding: 20px;
305304
margin-bottom: 24px;
305+
padding: 20px;
306+
border-color: #EEEEEE;
307+
border-style: dashed;
306308
border-width: 2px;
307309
border-radius: 2px;
308-
border-color: #eeeeee;
309-
border-style: dashed;
310-
background-color: #fafafa;
311-
color: #bdbdbd;
310+
311+
color: #BDBDBD;
312+
313+
background-color: #FAFAFA;
312314
outline: none;
313-
transition: border .24s ease-in-out;
315+
316+
transition: border 0.24s ease-in-out;
314317
}
315318

316319
&__import-file {

src/components/Simulations/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export type ValidateImport = {
266266
};
267267

268268
const MATCHERS = ['exact', 'glob', 'regex', 'xml', 'xpath', 'json', 'jsonPartial', 'jsonpath'];
269+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
269270
function inValidMatcher(data: any): boolean {
270271
if (Array.isArray(data)) {
271272
return data.reduce((acc, item) => {
@@ -287,6 +288,7 @@ export function validateImport(data: unknown): ValidateImport {
287288
return { type: 'error', message: 'Root element should be array of simulations' };
288289
}
289290

291+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
290292
data.forEach((elem: any, index: number) => {
291293
if (typeof elem !== 'object' && Array.isArray(elem)) {
292294
messages.push('Element of array should be object with request and response keys');

0 commit comments

Comments
 (0)