What tool can I use to create a .jshintrc file with default options?

I have been using JSLint for a while and recently found JSHint. Reading docs I found out that it can be configured using a .jshintrc file, but I could not find out if it is possible to generate this file using the CLI .

Is there a flag in the CLI for creating such a file (preferably with all the parameters set) or another tool that allows me to do this?

+4
source share
1 answer

I am not going to answer your question, but I found JShint, which I use in some articles about code style guides, in the free HTML e-book SpeakingJS - Style Guide .

They talk about the Google manual, AirBNB manual, JQuery manual and others, in most cases these links provide a ready-to-use jshint file ... maybe this can help you :).

If you want to create your own JSHint, I don’t know if you are familiar with Yeoman , but this project exactly matches what you are looking for: https://github.com/losingkeys/generator-jshint

After its creation, any text editor can be used to edit such a simple file.

+5
source

All Articles