mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-22 20:00:39 +00:00
faaea84a73
oxlint now includes support for TypeScript-aware linting by using the oxlint-tsgolint package. While this increases the chance of finding bugs early, it requires a few changes to the TypeScript configuration, especially the explicit declaration of CSS imports and changing the moduleResolution to bundler mode. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
47 lines
889 B
JSON
47 lines
889 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"incremental": true,
|
|
"types": [
|
|
"node",
|
|
"@testing-library/jest-dom",
|
|
"@types/jest"
|
|
],
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"include": [
|
|
"src/external-types/css/index.d.ts",
|
|
"src/external-types/images/index.d.ts",
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"cypress",
|
|
"cypress.config.ts",
|
|
".eslintrc.js"
|
|
]
|
|
}
|