Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up"Unexpected linter output" error #465
Comments
This comment has been minimized.
This comment has been minimized.
|
Update: looks like this happened because I used the ES6 IMO |
This comment has been minimized.
This comment has been minimized.
|
@dcposch The code that you linked to has since disappeared. Can you paste an example here? The |
This comment has been minimized.
This comment has been minimized.
|
Found it: class UnplayableError extends Error {
constructor () {
this.message = 'Can\'t play any files in torrent'
}
} |
This comment has been minimized.
This comment has been minimized.
|
K here's a minimal way to reproduce it. Works: ( class MyClass extends Error {
constructor () {
}
}Works: class MyClass {
constructor () {
this.n = 0
}
}Crashes: class MyClass extends Error {
constructor () {
this.n = 0
}
} |
This comment has been minimized.
This comment has been minimized.
|
This is probably an eslint bug. I opened an issue: eslint/eslint#5662 |
feross
added
bug
blocked
labels
Mar 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Looks like this is fixed on eslint |
This comment has been minimized.
This comment has been minimized.
|
Bumped eslint to 2.8.0 -- closing this now. |
dcposch commentedMar 21, 2016
Error message:
To reproduce, run
npm test(or equivalently,standard) on the following code: webtorrent/webtorrent-desktop@f71343d