Parcourir la source

Convert test tsconfig.json files to use the standard base tsconfig.json.

Jason Grout il y a 6 ans
Parent
commit
6c81d34a50

+ 2 - 9
buildutils/test-template/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-application/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 3 - 10
tests/test-apputils/tsconfig.json

@@ -1,15 +1,8 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"],
-    "jsx": "react"
+    "jsx": "react",
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-cells/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-codeeditor/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-codemirror/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-completer/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-console/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-coreutils/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-csvviewer/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-docmanager/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-docregistry/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-filebrowser/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-fileeditor/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-imageviewer/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-inspector/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-mainmenu/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-notebook/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-observables/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-outputarea/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 9
tests/test-rendermime/tsconfig.json

@@ -1,14 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "esModuleInterop": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }

+ 2 - 8
tests/test-terminal/tsconfig.json

@@ -1,13 +1,7 @@
 {
+  "extends": "../../tsconfig",
   "compilerOptions": {
-    "noImplicitAny": true,
-    "noEmitOnError": true,
-    "noUnusedLocals": true,
-    "module": "commonjs",
-    "moduleResolution": "node",
-    "target": "ES2015",
-    "outDir": "./build",
-    "lib": ["ES2015", "DOM"]
+    "outDir": "./build"
   },
   "include": ["src/*"]
 }