mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
a7624806b2
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
37 lines
959 B
JSON
37 lines
959 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2016",
|
|
"module": "es2020",
|
|
"jsx": "react-jsx",
|
|
"lib": ["es2020", "dom", "dom.iterable"],
|
|
|
|
// From Matrix-JS-SDK
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"noEmitOnError": true,
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"noUnusedLocals": true,
|
|
"moduleResolution": "node",
|
|
"declaration": true,
|
|
|
|
// TODO: Enable the following options later.
|
|
// "forceConsistentCasingInFileNames": true,
|
|
// "noFallthroughCasesInSwitch": true,
|
|
// "noImplicitOverride": true,
|
|
// "noImplicitReturns": true,
|
|
// "noPropertyAccessFromIndexSignature": true,
|
|
// "noUncheckedIndexedAccess": true,
|
|
// "noUnusedParameters": true,
|
|
|
|
"plugins": [{ "name": "typescript-eslint-language-service" }]
|
|
},
|
|
"include": [
|
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
|
"./src/**/*.ts",
|
|
"./src/**/*.tsx",
|
|
"./test/**/*.ts",
|
|
"./test/**/*.tsx"
|
|
]
|
|
}
|