Skip to content

Commit 3cb3d39

Browse files
Merge pull request #578 from watson-developer-cloud/add-lint-staged
Add Lint Staged
2 parents 20ad31a + 0b513cb commit 3cb3d39

16 files changed

+798
-36
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ test/resources/auth.js
1111
**/*v*.js
1212
!test/**/*.js
1313
lib/*.js
14-
dialog/v1.js
14+
dialog/v1.js
15+
index.js

dependency-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ executedModules:
2525
root: ''
2626

2727
ignoreErrors:
28-
shouldBeDependency: []
28+
shouldBeDependency: ['lint-staged']
2929
shouldBeDevDependency: []
3030
unused:
3131
- karma-*
3232
- eslint-*
3333
- shebang-loader # webpack
34+
- types*
35+
- husky
3436

3537
requiredModules:
3638
files:

examples/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
"require-jsdoc": "off",
77
"valid-jsdoc": "off",
88
"no-process-exit": "off",
9-
"prefer-const": "off"
9+
"prefer-const": "off",
10+
"no-var": "off"
1011
}
1112
};

examples/conversation_tone_analyzer_integration/tone_detection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
*/
5555
function invokeToneAsync(conversationPayload, tone_analyzer) {
5656
return new Promise(function(resolve, reject) {
57-
tone_analyzer.tone({ text: conversationPayload.input.text }, (error, data) => {
57+
tone_analyzer.tone({ text: conversationPayload.input.text }, function(error, data) {
5858
if (error) {
5959
reject(error);
6060
} else {

0 commit comments

Comments
 (0)