未验证 提交 75cd81ca 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17225 from gkjohnson/lint-examples

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"
},
......
{
"compilerOptions": {
"noEmit": true,
},
"include": [
"../../examples/jsm/**/*.ts"
]
}
......@@ -3,6 +3,6 @@
"noEmit": true,
},
"include": [
"../../**/*.ts"
"../../src/**/*.ts"
]
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册