Add support for linting example scripts
@@ -53,6 +53,7 @@
"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\"",
"start": "npm run dev",
"lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
+ "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
"test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
"travis": "npm run lint && npm test"
},
@@ -0,0 +1,8 @@
+{
+ "compilerOptions": {
+ "noEmit": true,
+ },
+ "include": [
+ "../../examples/jsm/**/*.ts"
+ ]
+}
@@ -3,6 +3,6 @@
"noEmit": true,
"include": [
- "../../**/*.ts"
+ "../../src/**/*.ts"
]
}