Config partagée : ESLint et tsconfig depuis @avalon-vanguard/config
eslint.config.mjs prend @avalon-vanguard/config/eslint, qui contient les deux mêmes entrées qu'avant (@eslint/js recommended + typescript-eslint recommended) ; les règles, globals et ignores propres à cereale restent ici. tsconfig.json étend tsconfig/library.json, qui porte les huit options retirées. « strict » reste explicite. Pas de .editorconfig : sans config Prettier dans le dépôt, Prettier le lirait et changerait le formatage. .npmrc : le scope @avalon-vanguard se lit sur le registre npm de Gitea, en lecture anonyme, sans jeton. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-10
@@ -1,5 +1,9 @@
|
||||
{
|
||||
// Visit https://aka.ms/tsconfig to read more about this file
|
||||
// Shared (@avalon-vanguard/config/tsconfig/library.json): sourceMap, declaration,
|
||||
// declarationMap, noImplicitReturns, noImplicitOverride, noFallthroughCasesInSwitch,
|
||||
// isolatedModules, skipLibCheck.
|
||||
"extends": "@avalon-vanguard/config/tsconfig/library.json",
|
||||
"compilerOptions": {
|
||||
// File Layout
|
||||
"rootDir": "src",
|
||||
@@ -11,27 +15,17 @@
|
||||
"lib": ["ESNext", "ESNext.Decorators"],
|
||||
"types": ["node"],
|
||||
|
||||
// Other Outputs
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
|
||||
// Stricter Typechecking Options
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
|
||||
// Style Options
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitOverride": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// Recommended Options
|
||||
"strict": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"isolatedModules": true,
|
||||
"skipLibCheck": true,
|
||||
|
||||
// NOTE: no `experimentalDecorators`. v2 uses TC39 standard decorators, which is what
|
||||
// gives ClassFieldDecoratorContext<This, Value> and therefore compile-time checking of
|
||||
|
||||
Reference in New Issue
Block a user