Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for linting example scripts #17225

Merged
merged 9 commits into from
Dec 22, 2019
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 8 additions & 0 deletions utils/build/tsconfig-examples.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"noEmit": true,
},
"include": [
"../../examples/jsm/**/*.ts"
]
}
2 changes: 1 addition & 1 deletion utils/build/tsconfig.lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"noEmit": true,
},
"include": [
"../../**/*.ts"
"../../src/**/*.ts"
]
}