Ideally IntelliJ could recognize this and use it's values instead of thru the UI. Or maybe the "predefined" field in the JSHint window could accept it.
I noticed the file ".idea/jsLinters/jshint.xml" in a project with it enabled, but the format is different as well.
Hi Matan,
could you please describe .jshintrc file format?
Thanks.
Sure, the format is a JSON file like the following:
https://github.com/jshint/node-jshint/blob/master/.jshintrc
Ideally IntelliJ could recognize this and use it's values instead of thru the UI. Or maybe the "predefined" field in the JSHint window could accept it.
I noticed the file ".idea/jsLinters/jshint.xml" in a project with it enabled, but the format is different as well.
An option like
(o) .jshintrc settings overrule this configuration
( ) this configuration overrules .jshintrc settings
could be used.
Or a similar thing like with maven pom.xml -> automatic import if .jshintrc files is changed.
BTW, there is as well a configuration file named '.jshintignore' with file glob patterns excluding special files from jshint validation.
Example for .jshintignore:
node_modules
*.min.js
Would be great if this could be supported as well!
Thnx.
Heinrich
I'd be interested in that, too.
http://youtrack.jetbrains.com/issue/IDEA-91034
I have need of .jshintignore support. http://youtrack.jetbrains.com/issue/WEB-8471 seems relevant if anybody else is interested in excluding 3rd party libs.