Skip to content

Commit

Permalink
fix linting and typescript errors in launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed Nov 1, 2018
1 parent 8d12c8d commit b318eaf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions cli/lib/tasks/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const defaultBaseUrl = 'https://download.cypress.io/'
const getBaseUrl = () => {
if (util.getEnv('CYPRESS_DOWNLOAD_MIRROR')) {
let baseUrl = util.getEnv('CYPRESS_DOWNLOAD_MIRROR')

if (!baseUrl.endsWith('/')) {
baseUrl += '/'
}
Expand Down
1 change: 1 addition & 0 deletions packages/launcher/lib/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function checkOneBrowser(browser: Browser) {
function detectBrowsers(): Bluebird<Browser[]> {
// we can detect same browser under different aliases
// tell them apart by the full version property
// @ts-ignore
const removeDuplicates = uniqBy(prop('version'))
return Bluebird.mapSeries(browsers, checkOneBrowser)
.then(_.compact)
Expand Down
1 change: 1 addition & 0 deletions packages/launcher/lib/windows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function getWindowsBrowser(
}
// on Windows using "--version" seems to always start the full
// browser, no matter what one does.
// @ts-ignore
const args: [string] = [
'datafile',
'where',
Expand Down
4 changes: 2 additions & 2 deletions packages/launcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@types/lodash": "^4.14.64",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.18",
"@types/ramda": "^0.25.40",
"bin-up": "^1.1.0",
"chai": "^3.5.0",
"prettier": "^1.7.0",
Expand All @@ -42,8 +43,7 @@
"sinon-chai": "^2.8.0",
"tslint": "5.8.0",
"tslint-config-standard": "7.0.0",
"typescript": "2.6.2",
"@types/ramda": "0.24.14"
"typescript": "2.9.2"
},
"dependencies": {
"bluebird": "^3.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

/* Module Resolution Options */
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [] /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */

/* Source Map Options */
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
Expand Down

0 comments on commit b318eaf

Please sign in to comment.