Skip to content

Commit 05d1036

Browse files
committed
fix(): linting errors shown by oxlint
1 parent f644d70 commit 05d1036

File tree

13 files changed

+13
-54
lines changed

13 files changed

+13
-54
lines changed

cypress.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ import { defineConfig } from 'cypress';
33
export default defineConfig({
44
e2e: {
55
baseUrl: 'http://localhost:8000',
6-
setupNodeEvents(on, config) {
7-
// implement node event listeners here
8-
},
96
},
107
});

cypress/e2e/demo-endpoints-spec.cy.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import exp from 'constants';
2-
import { response } from 'express';
3-
41
const catsSchema = {
52
$schema: 'http://json-schema.org/draft-04/schema#',
63
type: 'array',

cypress/support/commands.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

cypress/support/e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ***********************************************************
1515

1616
// Import commands.js using ES2015 syntax:
17-
import './commands';
17+
// import './commands';
1818

1919
import chaiJsonSchema from 'chai-json-schema';
2020
chai.use(chaiJsonSchema);

src/api/error/api.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fs from 'node:fs';
2-
import path from 'node:path';
31
import { http, HttpResponse } from 'msw';
42

53
function handler(pathName: string) {

src/api/images/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import sharp from 'sharp';
77

88
function handler(pathName: string) {
99
return [
10-
http.get(`/${pathName}`, ({ request }) => {
10+
http.get(`/${pathName}`, () => {
1111
return HttpResponse.text(
1212
`<body style="background-color: #383838; color:white">
1313
<div style="text-align:center; padding:50px 0px 0px 0px">

src/api/markdown/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function handler(pathName: string) {
2727
},
2828
}).disable(['link', 'image']);
2929
return [
30-
http.get(`/${pathName}`, ({ request }) => {
30+
http.get(`/${pathName}`, () => {
3131
return HttpResponse.text(
3232
`<body style="background-color: #383838; color:white">
3333
<div style="text-align:center; padding:50px 0px 0px 0px">

src/api/posts/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { db } from '../../models/db.js';
22
import { prefix } from '../../utilities/env.js';
33

44
// Example of msw data auto REST handler generation
5-
function handler(pathName: string) {
5+
function handler() {
66
// Need to add a prefix here for automatic REST handler generation to a specific path
77
return [...db.post.toHandlers('rest', prefix)];
88
}

src/api/users/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { db } from '../../models/db.js';
22
import { prefix } from '../../utilities/env.js';
33

44
// Example of msw data auto REST handler generation
5-
function handler(pathName: string) {
5+
function handler() {
66
// Need to add a prefix here for automatic REST handler generation to a specific path
77
return [...db.user.toHandlers('rest', prefix)];
88
}

src/models/post.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { faker } from '@faker-js/faker';
21
import { primaryKey } from '@mswjs/data';
32

43
export const post = {

0 commit comments

Comments
 (0)