Skip to content

Commit a44f5ae

Browse files
authored
Merge pull request #17415 from MichaelBuerge/examples-typings
Run all TS code (including examples/jsm) through tsc when linting.
2 parents 8b16594 + a6df957 commit a44f5ae

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

package-lock.json

Lines changed: 6 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"http-server -c-1 -p 8080\"",
5353
"dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
5454
"start": "npm run dev",
55-
"lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
55+
"lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
5656
"test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
5757
"travis": "npm run lint && npm test"
5858
},
@@ -73,6 +73,7 @@
7373
"devDependencies": {
7474
"@typescript-eslint/eslint-plugin": "^2.0.0",
7575
"@typescript-eslint/parser": "^2.0.0",
76+
"@types/webgl2": "0.0.5",
7677
"concurrently": "^4.1.2",
7778
"eslint": "^6.2.1",
7879
"eslint-config-mdcs": "^4.2.3",

utils/build/tsconfig.lint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"noEmit": true,
4+
},
5+
"include": [
6+
"../../**/*.ts"
7+
]
8+
}

0 commit comments

Comments
 (0)