73rhodes / Sublime-JSLint

JSLint for Sublime Text 2 and 3.
80 stars 14 forks source link

Please heavens warn folks before swapping from old.JSLint to the new version! (and blasting the settings) #49

Open ruffin-- opened 8 years ago

ruffin-- commented 8 years ago

The update silently wiped out my settings file too. Not great.

I think it's worth putting in an option to use the old JSLint, not that it's difficult to replace the file locally, if you know where it's found. The new ES6 friendly JSLint (which I assume recently came out of beta?) gets much more opinionated than what's up at old.jslint.com -- no this, more draconian about loops, etc. I'm not sure that should be passively updated for plugin users. I realize the options have largely changed too, but you should keep the old ones if users have set them.

Boy, unexpected fun this afternoon.

rangercyh commented 8 years ago

how can I use the old version :(, unhappy now!!!!

rangercyh commented 8 years ago

ok,I know how to use the old version ,now

liberborn commented 8 years ago

@rangercyh I'm facing the same issues. Please describe how to roll JSLint back to previous version?

liberborn commented 8 years ago

OK. just made git clone of this project, reverted it to previous version and replaced content of the package in Sublime. Stable commit: 8c99cc3e1420a9e411961c75ec28fa03164d9f8a.

Very unexpected stuff in very inconvenient time. It's not only about indentation. All of my JS files started producing so many errors. And no information in documentation how to configure JS Lint right.

zhangdingding commented 8 years ago

@liberborn did it right.

YorkshireKev commented 8 years ago

Reverting to previous commit worked for me. Thanks @liberborn

rangercyh commented 8 years ago

yes,I do the same ,it's a pity

nicholasblexrud commented 8 years ago

git clone https://github.com/73rhodes/Sublime-JSLint.git && cd S ublime-JSLint && git reset --hard 8c99cc3e1420a9e411961c75ec28fa03164d9f8a && git clean -f

Then Sublime Text > Preferences > Browse Packages > JSLint remove all files and copy and paste new files

ruffin-- commented 8 years ago

A few important tips, I guess, if you want to do this without bothering with gitting... NOTE: I also think, if you haven't set auto_upgrade_ignore, you might end up having your pulled version overwritten later as well. That would stink. ;^)


[1] Edit: I think I screwed this up initially. As this faux-bug explanation says:

My guess is that you placed it in the wrong settings file. It should be in Preferences > Package Settings > Package Control > Settings – User and NOT Preferences > Settings – User.

73rhodes commented 8 years ago

Hey. Sorry for that. You can use any version of jslint though - it's configurable so you can use the version that ships with the ST package or another version somewhere else on your system. As for user preferences getting hosed, that totally sucks and I'm not sure if it's an ST thing or some crap with this package. Can you provide any other details?

73rhodes commented 8 years ago

refer to https://github.com/douglascrockford/JSLint/commit/f819cf3c65d07086cf217c549c577fa77dc65fc9#commitcomment-14603692