chore: add lint-ts rule (#10427)
This commit is contained in:
parent
1b352ca8a1
commit
0ee2c42b55
7
Makefile
7
Makefile
@ -54,9 +54,14 @@ watch: clean clean-lib
|
|||||||
flow:
|
flow:
|
||||||
./node_modules/.bin/flow check --strip-root
|
./node_modules/.bin/flow check --strip-root
|
||||||
|
|
||||||
lint:
|
lint: lint-js lint-ts
|
||||||
|
|
||||||
|
lint-js:
|
||||||
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe
|
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe
|
||||||
|
|
||||||
|
lint-ts:
|
||||||
|
./scripts/tests/typescript/lint.sh
|
||||||
|
|
||||||
fix: fix-json
|
fix: fix-json
|
||||||
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --fix
|
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --fix
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,7 @@
|
|||||||
"rollup-plugin-replace": "^2.2.0",
|
"rollup-plugin-replace": "^2.2.0",
|
||||||
"test262-stream": "^1.2.0",
|
"test262-stream": "^1.2.0",
|
||||||
"through2": "^2.0.0",
|
"through2": "^2.0.0",
|
||||||
|
"typescript": "^3.6.3",
|
||||||
"warnings-to-errors-webpack-plugin": "^2.0.0",
|
"warnings-to-errors-webpack-plugin": "^2.0.0",
|
||||||
"webpack": "^3.4.1",
|
"webpack": "^3.4.1",
|
||||||
"webpack-dependency-suite": "^2.4.4",
|
"webpack-dependency-suite": "^2.4.4",
|
||||||
|
|||||||
7
scripts/tests/typescript/lint.sh
Executable file
7
scripts/tests/typescript/lint.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
node="node"
|
||||||
|
tsFlags="--strict"
|
||||||
|
|
||||||
|
$node ./node_modules/typescript/bin/tsc $tsFlags ./packages/babel-types/lib/index.d.ts
|
||||||
@ -10438,6 +10438,11 @@ typedarray@^0.0.6:
|
|||||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
|
||||||
|
|
||||||
|
typescript@^3.6.3:
|
||||||
|
version "3.6.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da"
|
||||||
|
integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==
|
||||||
|
|
||||||
uglify-js@3.4.x:
|
uglify-js@3.4.x:
|
||||||
version "3.4.10"
|
version "3.4.10"
|
||||||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.10.tgz#9ad9563d8eb3acdfb8d38597d2af1d815f6a755f"
|
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.10.tgz#9ad9563d8eb3acdfb8d38597d2af1d815f6a755f"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user