-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps-dev): replace standard with neostandard (#842)
* build(deps-dev): replace standard with neostandard * chore: add eslint.config.js * fix linting issue --------- Co-authored-by: Aras Abbasi <[email protected]>
- Loading branch information
Showing
9 changed files
with
206 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use strict' | ||
|
||
module.exports = require('neostandard')({ | ||
ignores: [ | ||
...require('neostandard').resolveIgnoresFromGitignore(), | ||
'static', | ||
'tap-snapshots/*' | ||
], | ||
ts: true | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import fastify from "fastify"; | ||
import fastify from 'fastify' | ||
|
||
import swaggerDefault, { fastifySwagger, SwaggerOptions } from "../.."; | ||
import * as fastifySwaggerStar from "../.."; | ||
import { minimalOpenApiV3Document } from './minimal-openapiV3-document'; | ||
import swaggerDefault, { fastifySwagger, SwaggerOptions } from '../..' | ||
import * as fastifySwaggerStar from '../..' | ||
import { minimalOpenApiV3Document } from './minimal-openapiV3-document' | ||
|
||
const app = fastify(); | ||
const app = fastify() | ||
const fastifySwaggerOptions: SwaggerOptions = { | ||
mode: "static", | ||
mode: 'static', | ||
specification: { | ||
document: minimalOpenApiV3Document, | ||
} | ||
}; | ||
} | ||
|
||
app.register(swaggerDefault, fastifySwaggerOptions); | ||
app.register(fastifySwagger, fastifySwaggerOptions); | ||
app.register(fastifySwaggerStar.default, fastifySwaggerOptions); | ||
app.register(fastifySwaggerStar.fastifySwagger, fastifySwaggerOptions); | ||
app.register(swaggerDefault, fastifySwaggerOptions) | ||
app.register(fastifySwagger, fastifySwaggerOptions) | ||
app.register(fastifySwaggerStar.default, fastifySwaggerOptions) | ||
app.register(fastifySwaggerStar.fastifySwagger, fastifySwaggerOptions) | ||
|
||
app.ready((err) => { | ||
app.swagger(); | ||
}); | ||
app.ready(() => { | ||
app.swagger() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.