Skip to content

Commit cf62e85

Browse files
committed
add travis eslint tests
1 parent 40379f7 commit cf62e85

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.eslintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"env": {
44
"node": true,
55
"es6": true
6+
},
7+
"rules": {
8+
"no-console": 0
69
}
7-
}
10+
}

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
5+
cache:
6+
directories:
7+
- node_modules

example.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const sonus = Sonus.init({ hotwords, language }, speech)
1313
Sonus.start(sonus)
1414
console.log('Say "' + hotwords[0].hotword + '"...')
1515

16-
sonus.on('hotword', (index, keyword) => console.log("!"))
16+
sonus.on('hotword', (index, keyword) => console.log("!" + keyword))
1717

1818
sonus.on('partial-result', result => console.log("Partial", result))
1919

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Open source cross platform decentralized always-on speech recognition framework",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "eslint ."
88
},
99
"repository": {
1010
"type": "git",

0 commit comments

Comments
 (0)