Skip to content

Commit

Permalink
[test] Test type libs in docs (#19375)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jan 26, 2020
1 parent 197143b commit cd672b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"export": "rimraf docs/export && next export --threads=3 --concurrency=5 -o export && yarn build-sw && cpy \"cdn/*\" export",
"icons": "rimraf static/icons/* && node ./scripts/buildIcons.js",
"start": "next start",
"typescript": "tslint -p tsconfig.json \"src/pages/**/*.{ts,tsx}\"",
"typescript": "tsc -p tsconfig.json",
"typescript:transpile": "node scripts/formattedTSDemos",
"typescript:transpile:dev": "node scripts/formattedTSDemos --watch"
},
Expand Down
5 changes: 4 additions & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"include": ["types", "src/pages/**/*"],
"compilerOptions": {
"allowJs": false,
"noUnusedLocals": true
/* files are emmitted by babel */
"noEmit": true,
"noUnusedLocals": true,
"types": ["react"]
}
}
2 changes: 1 addition & 1 deletion scripts/jsonlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function run() {

const filenames = glob.sync('**/*.json', {
cwd: workspaceRoot,
ignore: eslintignore,
ignore: [...eslintignore, 'tsconfig*.json'],
});

let passed = true;
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2232,9 +2232,9 @@
"@types/react-router" "*"

"@types/react-router@*":
version "4.4.5"
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-4.4.5.tgz#1166997dc7eef2917b5ebce890ebecb32ee5c1b3"
integrity sha512-12+VOu1+xiC8RPc9yrgHCyLI79VswjtuqeS2gPrMcywH6tkc8rGIUhs4LaL3AJPqo5d+RPnfRpNKiJ7MK2Qhcg==
version "5.1.4"
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.4.tgz#7d70bd905543cb6bcbdcc6bd98902332054f31a6"
integrity sha512-PZtnBuyfL07sqCJvGg3z+0+kt6fobc/xmle08jBiezLS8FrmGeiGkJnuxL/8Zgy9L83ypUhniV5atZn/L8n9MQ==
dependencies:
"@types/history" "*"
"@types/react" "*"
Expand Down

0 comments on commit cd672b0

Please sign in to comment.