feat: configure tsconfig.json for Next.js
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
// Environment setup & latest features
|
||||
"lib": ["ESNext"],
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"target": "ESNext",
|
||||
"module": "Preserve",
|
||||
"moduleDetection": "force",
|
||||
"jsx": "react-jsx",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "auto",
|
||||
"jsx": "preserve",
|
||||
"jsxImportSource": "react",
|
||||
"allowJs": true,
|
||||
|
||||
// Bundler mode
|
||||
@ -22,8 +23,24 @@
|
||||
"noImplicitOverride": true,
|
||||
|
||||
// Some stricter flags (disabled by default)
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noPropertyAccessFromIndexSignature": false
|
||||
}
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
|
||||
// Next.js specific settings
|
||||
"types": ["next", "react", "node"]
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
"**/*.js",
|
||||
"**/*.jsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
".next",
|
||||
"out",
|
||||
"public",
|
||||
"styles"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user