Skip to content

Commit f23e9cb

Browse files
author
David Sheldrick
committed
add travis file
1 parent 86ec7fc commit f23e9cb

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- '8'
4+
- '9'
5+
script:
6+
- yarn test --runInBand
7+
- yarn lint

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ const tsConfig = (() => {
158158

159159
const expectedTsConfigFileName = 'tsconfig.json'
160160

161-
let root;
161+
let root
162162
try {
163163
root = findRoot(process.cwd(), dir => {
164164
return fs.existsSync(path.join(dir, expectedTsConfigFileName))
165165
})
166166
} catch (error) {
167167
throw new Error(
168168
`Unable to find project root: no "${expectedTsConfigFileName}" file found. ` +
169-
`Original error message: ${error.message}`
169+
`Original error message: ${error.message}`
170170
)
171171
}
172172

@@ -177,7 +177,7 @@ const tsConfig = (() => {
177177
} catch (error) {
178178
throw new Error(
179179
`Unable to find ${expectedTsConfigFileName} at ${tsConfigPath}` +
180-
`Original error message: ${error.message}`
180+
`Original error message: ${error.message}`
181181
)
182182
}
183183
})()

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"scripts": {
2020
"precommit": "lint-staged",
21+
"lint": "eslint index.js __specs__/**/*.js",
2122
"test": "jest"
2223
},
2324
"lint-staged": {

0 commit comments

Comments
 (0)