mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
1271c22aee
Inspired by the failure of https://github.com/vector-im/element-desktop/pull/529 to lint our code with the @typescript-eslint/no-base-to-string rule turned on, I found we needed to add a parserOptions.project to our .eslintrc.js, pointing to the tsconfig.json. This led to more fixes, because we have 3 tsconfig.json files for src+test, scripts and hak and the single eslintrc was complaining that it could see more files than the tsconfig file knew about. So, I think the right split is to have one eslintrc file and one tsconfig for each of the three projects.
17 lines
425 B
JSON
17 lines
425 B
JSON
{
|
|
"compilerOptions": {
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"target": "es2016",
|
|
"sourceMap": false,
|
|
"outDir": "./lib",
|
|
"declaration": true,
|
|
"lib": ["es2019", "dom"],
|
|
"types": ["jest", "node"],
|
|
"strict": true
|
|
},
|
|
"include": ["./src/**/*.ts", "./test/**/*.ts"]
|
|
}
|