You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
JSLint errors on todo can't be ignored using /*jslint todo: true */Β #4462
You're right: the version of JSLint Brackets uses is dated beginning 2012, it does not yet support todos. With current version you can freely use TODO: in your code and the lint won't complain.
I believe the error you're seeing is related due to inability of JSLint to understand the todo option.
Perhaps, it makes sense to update the JSLint to a newer version.
@busykai I was thinking that was the case, I just wanted to know if there was known reason that updating to the latest version of jslint in Brackets will be a problem.
Reopening. @TomMalbran said (in #4467) that he's part way through doing the JSLint upgrade and it sounds like the cleanup in general will be beneficial.
@dangoor Thanks Kevin I was a bit confuse seeing the bug close with no comments on which build was fix with new version of JSLint.
Thanks for reopening
Assuming that Brackets is installed in the Applications folder, replace the files in /Applications/Brackets.app/Contents/www/extensions/default/JSLint/thirdparty/jslint with files from the git repository. You can access the contents Brackets.app by right clicking it in Finder and choose " Show Package Contents".
Closing per @dangoor's comment in #8842 (comment) -- this is basically the same issue, and similarly is tracked by our backlog item for switching to JSHint as the default packaged linter. Thanks to @markmcintyre there's now a JSLint extension available in the registry that has the latest version of JSLint, so there's also a workaround for this available now.
Activity
busykai commentedon Jul 15, 2013
You're right: the version of JSLint Brackets uses is dated beginning 2012, it does not yet support todos. With current version you can freely use TODO: in your code and the lint won't complain.
I believe the error you're seeing is related due to inability of JSLint to understand the todo option.
Perhaps, it makes sense to update the JSLint to a newer version.
csantanapr commentedon Jul 15, 2013
@busykai I was thinking that was the case, I just wanted to know if there was known reason that updating to the latest version of jslint in Brackets will be a problem.
Fixes adobe#4462 Update version of jslint to allow TODO comments
dangoor commentedon Jul 22, 2013
Thanks for reporting this. Our fix for this is going to be to switch to JSHint and ideally make the linter configurable. See the card in trello:
https://trello.com/c/SQhvGHri/498-3-jshint-support
dangoor commentedon Jul 23, 2013
Reopening. @TomMalbran said (in #4467) that he's part way through doing the JSLint upgrade and it sounds like the cleanup in general will be beneficial.
csantanapr commentedon Jul 23, 2013
@dangoor Thanks Kevin I was a bit confuse seeing the bug close with no comments on which build was fix with new version of JSLint.
Thanks for reopening
hacker112 commentedon Apr 3, 2014
I made a workaround on Mac OS X by replacing JSLint in Brackets with a newer version.
Steps:
njx commentedon Apr 3, 2014
I nominated #4557, an old PR that we never merged to update jslint to a more recent version, so that we'll look at it sooner rather than later.
peterflynn commentedon Sep 4, 2014
Closing per @dangoor's comment in #8842 (comment) -- this is basically the same issue, and similarly is tracked by our backlog item for switching to JSHint as the default packaged linter. Thanks to @markmcintyre there's now a JSLint extension available in the registry that has the latest version of JSLint, so there's also a workaround for this available now.