Open lukasoppermann opened 10 years ago
What exactly do you mean? This should be configurable in your .jshintrc file
I meant it would be nice to have it in the plugin settings panel, where I can set it to update on save or change, etc. But I set it the way you suggest (true in the jshintrc) I still get the error Expected an assignment or function call and instead saw an expression
Also will it overwrite my settings on update?
I'm not sure if it will overwrite your settings on update i'm afraid, that's something that atom itself deals with.
In regards to your problem with the expression error, it may be that the package is not reloading the config when you've changed the .jshintrc file, to reload atom you can press ctrl+alt+cmd+L
. If that doesn't work let me know!
Which reminds me, I need to raise an issue for that bug.
Neither this nor restarting atom completely helped. :(
Is your .jshintrc file in the root of the project path?
Nope, I changed the default one in the packages. If I add one in my project it works, but I would like to set it for every project and not just for some.
Ah okay, so a global jshintrc file. That's an interesting idea, going to rename this issue to be that. You'll have to workaround it the way you have until we do the work though i'm afraid. You might find that placing the .jshintrc file higher up the tree will solve it once the pending pull request is merged and released :)
I'll second the request for a global settings option. I want to enable laxcomma: true
only once as I always intend to work this way.
Now that the package tries to find a .jshintrc file higher up the tree do you think an acceptable solution to this would be 'just place a .jshintrc file in the directory you store your projects in'? Or would there be a reason to not just do that?
I'll certainly use that technique for now. Though I usually work in a canonical "project" directory, I'm not always that organized :wink: .
It works for me. :+1:
Expose option to disable expression warning in package options http://jshint.com/docs/options/#expr