- Use function abstractions (such as map, reduce, filter etc.) over for-of loops to gain benefits of having less side effects and easier readability. - Enable `downLevelIterations` for writing modern code with lazy evaluation. - Refactor for of loops to named abstractions to clearly express their intentions without needing to analyse the loop itself. - Add missing cases for changes that had no tests.
45 lines
797 B
JSON
45 lines
797 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es5",
|
|
"lib": [
|
|
"esnext",
|
|
"dom",
|
|
"dom.iterable",
|
|
"scripthost"
|
|
],
|
|
"module": "esnext",
|
|
"jsx": "preserve",
|
|
"importHelpers": true,
|
|
"downlevelIteration": true,
|
|
"moduleResolution": "node",
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"noUnusedLocals": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"baseUrl": ".",
|
|
"types": [
|
|
"webpack-env",
|
|
"mocha",
|
|
"chai"
|
|
],
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
],
|
|
"@tests/*": [
|
|
"tests/*"
|
|
],
|
|
},
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"src/**/*.vue",
|
|
"tests/**/*.ts",
|
|
"tests/**/*.tsx"
|
|
],
|
|
"exclude": [
|
|
"node_modules"
|
|
]
|
|
} |