Files
docusaurus/tsconfig.base.json
Sébastien Lorber 7518645e58 chore(monorepo): upgrade monorepo to ESLint 9 (#12024)
* ESLint 10

* remove backup

* Fix header

* downgrade to ESLint 9 - fix some errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* fix more errors

* all eslint errors fixed!

* refactor: apply lint autofix

* snapshot

* fix ESLint tests

* snapshot

* lockfile

* fix eslint plugin docs types

* syncpack ignore

* restore eslint-plugin-eslint-plugin, upgrade it + fix new plugin lint errors

---------

Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
2026-05-15 20:08:46 +02:00

73 lines
2.2 KiB
JSON

{
"compilerOptions": {
"rootDir": "${configDir}/src",
"outDir": "${configDir}/lib",
"composite": true,
"incremental": true,
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo",
"erasableSyntaxOnly": true,
"types": ["node"],
/* Emit */
"target": "ES2020",
"lib": ["ESNext"],
"declaration": true,
// These two options will be selectively overridden in each project.
// Utility libraries will have source maps on, but plugins will not.
"declarationMap": false,
"sourceMap": false,
"jsx": "react-native",
"importHelpers": true,
"noEmitHelpers": true,
// Will be overridden in client projects
"module": "NodeNext",
// Avoid accidentally using this config to build
"noEmit": true,
/* Strict Type-Checking Options */
"allowUnreachableCode": false,
// Too hard to turn on
"exactOptionalPropertyTypes": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
// `process.env` is usually accessed as property
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": true,
/* strict family */
"strict": true,
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"useUnknownInCatchVariables": true,
/* Handled by ESLint */
"noUnusedLocals": false,
"noUnusedParameters": false,
"importsNotUsedAsValues": "remove",
/* Module Resolution */
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"allowJs": true,
"skipLibCheck": true // @types/webpack and webpack/types.d.ts are not the same thing
},
"include": ["./**/*", "./**/eslint.config.*"],
"exclude": [
"node_modules",
"coverage/**",
"**/lib/**/*",
"website/**",
"**/__mocks__/**/*",
"**/__fixtures__/**/*",
"examples/**",
"packages/create-docusaurus/templates/**"
]
}