Skip to content

Commit a9a433b

Browse files
Buckwichbarmac
authored andcommitted
chore: disable type checking by default
1 parent 8130306 commit a9a433b

File tree

7 files changed

+250
-9
lines changed

7 files changed

+250
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ coverage
99
.nyc_output
1010
.linked-dependencies
1111
tmp
12+
tsconfig.json

globals.d.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
declare module "*.dmn" {
2+
const content: string;
3+
export default content;
4+
}
5+
6+
declare module "*.bpmn" {
7+
const content: string;
8+
export default content;
9+
}
10+
11+
declare module "*.svg" {
12+
const content: JSX.IntrinsicElements.svg;
13+
export default content;
14+
}
15+
16+
declare module "*.css" {
17+
const content: string;
18+
export default content;
19+
}
20+
21+
declare module "*.sass" {
22+
const content: string;
23+
export default content;
24+
}
25+
26+
declare module "*.less" {
27+
const content: string;
28+
export default content;
29+
}

package-lock.json

Lines changed: 163 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
},
4848
"devDependencies": {
4949
"@electron/notarize": "^3.0.1",
50+
"@types/karma-sinon-chai": "^2.0.6",
51+
"@types/mocha": "^10.0.10",
52+
"@types/webpack-env": "^1.18.8",
5053
"archiver": "^7.0.1",
5154
"chai": "^4.5.0",
5255
"chai-subset": "^1.6.0",
@@ -63,6 +66,7 @@
6366
"eslint-plugin-bpmn-io": "^2.0.2",
6467
"eslint-plugin-camunda-licensed": "^1.0.0",
6568
"execa": "^1.0.0",
69+
"karma-sinon-chai": "^2.0.2",
6670
"lerna": "~8.1.8",
6771
"license-webpack-plugin": "^4.0.2",
6872
"mocha": "^10.8.2",

tsconfig.base.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"lib": [
5+
"ES2018"
6+
],
7+
"paths": {
8+
"src/app/*": [ "./client/src/app/*" ],
9+
"test/*": [ "./client/test/*" ]
10+
},
11+
"types": [
12+
"mocha",
13+
"karma-sinon-chai",
14+
"node",
15+
"webpack-env"
16+
],
17+
18+
"checkJs": false,
19+
"jsx": "react-jsx",
20+
"noEmit": true,
21+
"skipLibCheck": true,
22+
"esModuleInterop": true,
23+
"allowUmdGlobalAccess": true,
24+
"resolveJsonModule": true,
25+
"allowArbitraryExtensions": true,
26+
"strict": true,
27+
// strict overwrites to reduce initial error overload
28+
"noImplicitAny": false,
29+
"noImplicitOverride": false,
30+
"useUnknownInCatchVariables": false,
31+
"strictNullChecks": false,
32+
},
33+
"typeAcquisition": {
34+
"enable": true
35+
},
36+
"include": [
37+
"client",
38+
"app",
39+
"globals.d.ts"
40+
],
41+
"exclude": [
42+
"*/node_modules/**",
43+
"*/build/**",
44+
"*/public/**"
45+
]
46+
}

tsconfig.enable.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// If you want to enable type checking for JS files copy this file to `tsconfig.json`
3+
"extends": "./tsconfig.base.json",
4+
"compilerOptions": {
5+
"checkJs": true
6+
}
7+
}

tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)