mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Use Typescript to lint JSDoc annotations (#986)
This patch starts using typescript to lint JSDoc annotations. Note: this uses typescript's bleeding edge. We should migrate to stable once it has all the necessary bugfixes. References #65.
This commit is contained in:
committed by
Andrey Lushnikov
parent
7b5d7ddac2
commit
e59172de83
14
package.json
14
package.json
@@ -13,12 +13,13 @@
|
||||
"test-doclint": "jasmine utils/doclint/check_public_api/test/test.js && jasmine utils/doclint/preprocessor/test.js",
|
||||
"test": "npm run lint --silent && npm run coverage && npm run test-doclint && npm run test-node6-transformer",
|
||||
"install": "node install.js",
|
||||
"lint": "([ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .) && npm run doc",
|
||||
"lint": "([ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .) && npm run tsc && npm run doc",
|
||||
"doc": "node utils/doclint/cli.js",
|
||||
"coverage": "COVERAGE=true npm run unit",
|
||||
"test-node6-transformer": "jasmine utils/node6-transform/test/test.js",
|
||||
"build": "node utils/node6-transform/index.js",
|
||||
"unit-node6": "jasmine node6-test/test.js"
|
||||
"unit-node6": "jasmine node6-test/test.js",
|
||||
"tsc": "tsc -p ."
|
||||
},
|
||||
"author": "The Chromium Authors",
|
||||
"license": "Apache-2.0",
|
||||
@@ -36,6 +37,12 @@
|
||||
"chromium_revision": "503964"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "0.0.30",
|
||||
"@types/extract-zip": "^1.6.2",
|
||||
"@types/mime": "^1.3.1",
|
||||
"@types/node": "^8.0.26",
|
||||
"@types/rimraf": "^2.0.2",
|
||||
"@types/ws": "^3.0.2",
|
||||
"commonmark": "^0.27.0",
|
||||
"eslint": "^4.0.0",
|
||||
"esprima": "^4.0.0",
|
||||
@@ -46,6 +53,7 @@
|
||||
"pdfjs-dist": "^1.8.595",
|
||||
"pixelmatch": "^4.0.2",
|
||||
"pngjs": "^3.2.0",
|
||||
"text-diff": "^1.0.1"
|
||||
"text-diff": "^1.0.1",
|
||||
"typescript": "next"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user