Skip to content

Commit

Permalink
chore: add jsconfig; type check js (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Aug 12, 2023
1 parent 39d51b4 commit b5e9aa0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"checkJs": true,
"lib": ["ES2019"],
"moduleResolution": "nodenext",
"resolveJsonModule": true
},
"exclude": ["dist", "node_modules"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@types/jest": "^29.5.3",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/license-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

const { promisify } = require("util");
const { init } = require("license-checker");
// @ts-ignore
const copyLeftLicenses = require("spdx-copyleft");
const path = require("upath");

Expand Down
3 changes: 3 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const plugin = require(".");

describe("Disablecache plugin", () => {
describe("Response headers", () => {
/**
* @type {Fastify.FastifyInstance}
*/
let server;

beforeAll(async () => {
Expand Down

0 comments on commit b5e9aa0

Please sign in to comment.