1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-08 22:15:02 +00:00
mon-entreprise/tsconfig.json
Alexandre Hajjar 291b5ff3bc TS-aware eslint + in CI
* Use @typescript-eslint/parser
* Add npm/yarn scripts: prettier check and eslint on all files
* Run all of this in CI (along with eslintrc checker)
* Use typescript parser only for ts{x,} files
* Fix test & cypress sub-configs
* Fix .test.js + off explicit-function-return-type
2020-05-05 18:24:14 +02:00

42 lines
1.3 KiB
JSON

{
"compilerOptions": {
"moduleResolution": "node",
"module": "esnext",
"target": "es2019",
"jsx": "react",
"baseUrl": "source",
"types": ["webpack-env"],
"typeRoots": ["source/types"],
"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,
"paths": {
"Actions/*": ["actions/*"],
"Components": ["components"],
"Components/*": ["components/*"],
"Ui/*": ["components/ui/*"],
"Engine": ["engine"],
"Engine/*": ["engine/*"],
"Images/*": ["images/*"],
"Reducers/*": ["reducers/*"],
"Rules/*": ["rules/*"],
"Rules": ["rules"],
"Selectors/*": ["selectors/*"],
"Types/*": ["types/*"]
}
},
"include": ["source", "test", "cypress"]
}