Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Jan 6, 2025
1 parent 11594ea commit 5b4eb9e
Show file tree
Hide file tree
Showing 44 changed files with 49 additions and 48 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"prettier": "@readme/eslint-config/prettier",
"devDependencies": {
"@readme/eslint-config": "^14.0.0",
"@tsconfig/node18": "^18.2.2",
"@tsconfig/node20": "^20.1.4",
"alex": "^11.0.1",
"conventional-changelog-cli": "^5.0.0",
"eslint": "^8.56.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/server-variables.json';
import definition from '@readme/oas-examples/3.0/json/server-variables.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';
import definition from '@readme/oas-examples/3.0/json/security.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';
import definition from '@readme/oas-examples/3.0/json/security.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';
import definition from '@readme/oas-examples/3.0/json/readme.json' with { type: 'json' };

const authKey = 'buster:pug';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';
import definition from '@readme/oas-examples/3.0/json/readme.json' with { type: 'json' };

const authKey = ':pug';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';
import definition from '@readme/oas-examples/3.0/json/readme.json' with { type: 'json' };

const authKey = 'buster:';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';
import definition from '@readme/oas-examples/3.0/json/security.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';
import definition from '@readme/oas-examples/3.0/json/security.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

/**
* This test case is testing that when we have HAR `postData` of a file and the `value` is present
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/petstore.json';
import definition from '@readme/oas-examples/3.0/json/petstore.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';
import definition from './openapi.json' with { type: 'json' };

const mock: SnippetMock = {
har: {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/alby/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/alby.json';
import definition from '@api/test-utils/definitions/alby.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/metrotransit/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/metrotransit.json';
import definition from '@api/test-utils/definitions/metrotransit.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/operationid-quirks/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/operationid-quirks.json';
import definition from '@api/test-utils/definitions/operationid-quirks.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/optional-payload/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/optional-payload.json';
import definition from '@api/test-utils/definitions/optional-payload.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/petstore/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@readme/oas-examples/3.0/json/petstore.json';
import definition from '@readme/oas-examples/3.0/json/petstore.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/readme/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@readme/oas-examples/3.0/json/readme.json';
import definition from '@readme/oas-examples/3.0/json/readme.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/response-title-quirks/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse, HTTPMethodRange } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/response-title-quirks.json';
import definition from '@api/test-utils/definitions/response-title-quirks.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/sdks/simple/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type * as types from './types.js';
import type { ConfigOptions, FetchResponse } from '@readme/api-core/types';
import APICore from '@readme/api-core';
import definition from '@api/test-utils/definitions/simple.json';
import definition from '@api/test-utils/definitions/simple.json' with { type: 'json' };

export default class SDK {
core: APICore;
Expand Down
Loading

0 comments on commit 5b4eb9e

Please sign in to comment.