Преглед на файлове

Merge pull request #16957 from gkjohnson/add-tsc-linting

Catch more d.ts error with the Typescript Compiler
Michael Herzog преди 6 години
родител
ревизия
216fbad4ae
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -50,7 +50,7 @@
     "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
     "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
     "start": "npm run dev",
-    "lint": "eslint src --ext js --ext ts",
+    "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
     "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
     "travis": "npm run lint && npm test"
   },