mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-09 00:35:00 +00:00
cc602e1a48
Plein de nouveautés et notamment la possibilité de "programmer" les types chaînes littérales qui nous sera utile par exemple pour vérifier statiquement la validité d'une *expression* publicode dans `engine.evaluate`. https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/ ⬆ MAJ ESLint-typescript pour la compatibilité
25 lines
869 B
JSON
25 lines
869 B
JSON
{
|
|
"compilerOptions": {
|
|
"moduleResolution": "node",
|
|
"module": "esnext",
|
|
"target": "esnext",
|
|
"jsx": "react-jsx",
|
|
"allowSyntheticDefaultImports": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
// The end goal is to enable `"strict": true` which correspond to the
|
|
// following settings: noImplicitAny, noImplicitThis, alwaysStrict,
|
|
// strictBindCallApply, strictNullChecks, strictFunctionTypes, and
|
|
// strictPropertyInitialization. During the transition we enable these
|
|
// settings one by one.
|
|
// Note: almost all parameters are now enabled. The only one remaining
|
|
// is noImplicitAny -- but it's a hard one.
|
|
"noImplicitThis": true,
|
|
"strictBindCallApply": true,
|
|
"strictFunctionTypes": true,
|
|
"strictNullChecks": true,
|
|
"strictPropertyInitialization": true,
|
|
"types": ["webpack-env"]
|
|
}
|
|
}
|