Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.jshintrc file? #7

Open
flamingbear opened this issue Apr 3, 2012 · 4 comments
Open

.jshintrc file? #7

flamingbear opened this issue Apr 3, 2012 · 4 comments

Comments

@flamingbear
Copy link

So I'm not very familiar with all of this, and I'm really just sort of hacking at it to get it running, which I've managed to do. What I'm curious about is if there a way to set up a .jshintrc file that will contain all of the defaults that I want rather than placing them at the top of each .js file?

Can this be done? Can someone tell me how it would be done?

Sorry if this is a boneheaded question, (Or the incorrect place to ask)

Thanks
Matt

@daleharvey
Copy link
Owner

Thats a good idea, I have just been changing the default inlines, it should be as simple as auto prepending the contents of a .jshintrc file

I would like to get this a bit less of a hack and improve the install process etc

@flamingbear
Copy link
Author

That's an excellent idea and didn't occur to me...

@tonyouyang
Copy link

I'm sorry but where is the default options ? I see an empty dict passed as below

function lintify(mode, sourcedata, filename) {
  var passed = hinters[mode](sourcedata, {});
  return passed ? "js: No problems found in " + filename + "\n"
    : outputErrors(hinters[mode].errors);
}

@diasjorge
Copy link
Contributor

You could check out my pull request #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants