-
Notifications
You must be signed in to change notification settings - Fork 16
Set up ESLint on Travis. #64
base: master
Are you sure you want to change the base?
Conversation
mdboom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @@ -0,0 +1,19 @@ | |||
| { | |||
| "env": { | |||
| "browser": true | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By adding:
"amd": true,
"jquery": true
here, I was able to get this down to only legitimate errors.
201:21 error Unexpected console statement no-console
224:31 error 'textStatus' is defined but never used no-unused-vars
295:13 error 'nb_path' is assigned a value but never used no-unused-vars
341:13 error 'button_td' is not defined no-undef
344:29 error 'button_td' is not defined no-undef
345:24 error 'button_td' is not defined no-undef
352:13 error 'row_message' is not defined no-undef
353:13 error 'row_message' is not defined no-undef
354:24 error 'row_message' is not defined no-undef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, nice, thanks :)
| // resource path | ||
| "(?:[/?#]\\S*)?" + | ||
| "$", "i" | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this improvement to URL validation should be moved to a separate pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this was totally just to figure out if that gets the number of errors down.
|
@mdboom Yeah, that makse sense, just wanted to figure out how this would work with Travis in general, since it by design doesn't support multi-language environments. |
This adds another Travis environment to install ESLint and run it. Will need to dive into more how ESLint is configured to get this fixed for the Jupyter AMD modules.