-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use the shared prettier config
- Loading branch information
Showing
26 changed files
with
6,285 additions
and
6,534 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,26 +1,26 @@ | ||
#!/usr/bin/env node | ||
/* eslint-disable no-unused-vars */ | ||
import Fastify from 'fastify'; | ||
import Eik from '../lib/main.js'; | ||
import Fastify from "fastify"; | ||
import Eik from "../lib/main.js"; | ||
|
||
const eik = new Eik(); | ||
|
||
const app = Fastify({ | ||
ignoreTrailingSlash: true, | ||
modifyCoreObjects: false, | ||
trustProxy: true, | ||
http2: eik.config.get('http.http2'), | ||
ignoreTrailingSlash: true, | ||
modifyCoreObjects: false, | ||
trustProxy: true, | ||
http2: eik.config.get("http.http2"), | ||
}); | ||
|
||
await app.register(eik.api()); | ||
|
||
try { | ||
await eik.health(); | ||
await eik.health(); | ||
} catch (error) { | ||
// Do accept errors | ||
// Do accept errors | ||
} | ||
|
||
await app.listen({ | ||
port: eik.config.get('http.port'), | ||
host: eik.config.get('http.address'), | ||
port: eik.config.get("http.port"), | ||
host: eik.config.get("http.address"), | ||
}); |
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,3 +1,3 @@ | ||
import config from '@eik/eslint-config'; | ||
import config from "@eik/eslint-config"; | ||
|
||
export default config; |
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.