Newer
Older
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],

Tadeusz Miesiąc
committed
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"pages",
"jest.config.ts",
"setupTests.ts",
"babel.config.js"

Tadeusz Miesiąc
committed
],
"exclude": ["node_modules", "cypress/**/*.ts", "cypress.config.ts"],
"noFallthroughCasesInSwitch": true, //Ensures that any non-empty case inside a switch statement includes either break, return, or throw.
"noImplicitReturns": true, // check all code paths in a function to ensure they return a value.
"noUnusedLocals": true, // Report errors on unused local variables.
"noUnusedParameters": true, //Report errors on unused parameters in functions.
"allowSyntheticDefaultImports": true, // allows to import modules like this: "import React from "react";" instead of "import * as React from "react";"
"forceConsistentCasingInFileNames": true