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

Better documentation for JSLint configuration files #112

Open
mcandre opened this issue Feb 22, 2015 · 2 comments
Open

Better documentation for JSLint configuration files #112

mcandre opened this issue Feb 22, 2015 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Feb 22, 2015

I'm not exactly sure how to configure CLI JSLint rules. Could we please add more explicit usage examples for this in the README, answering questions like:

  • Is there a convention for the JSLint configuration filename, like .jslintrc or jslint.conf?
  • Does jslint automatically load configuration on a per-project (./.jslintrc)or per-user ($HOME/.jslintrc) basis? Or do users have to manually specify --conf .jslintrc or this to happen?
@smikes
Copy link
Collaborator

smikes commented Feb 22, 2015

  1. Both are supported (.jslintrc and .jslint.conf)
  2. node-jslint will first read settings from the home directory (~/.jslint.conf or ~/.jslintrc) and then from the current directory (./jslint.conf or ./jslintrc).

Note that it looks for a leading dot in the home directory and no leading dot in the current directory.

@masi
Copy link

masi commented Mar 7, 2015

Any chance for a jslintConfig section in package.jason? I quite like the feature os jshint and eslint to put their config into package.json. It makes your root diretory less polluted.

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

3 participants