Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added an FAQ section to the README.

As any other open source project we have a number of questions that
folks keep asking over and over. This FAQ will contain answers to
such questions starting with the "How can I turn off 'mixed tabs and
spaces' warning?".
  • Loading branch information...
commit 56a3cd922eae79055606a7ac6b0951a666948a9f 1 parent be8e56f
Anton Kovalyov valueof authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 README.md
15 README.md
View
@@ -72,9 +72,9 @@ Configuration Options
**Note:** This behavior described below is very different from versions prior to `0.6`.
-The CLI uses the default options that come with JSHint.
+The CLI uses the default options that come with JSHint.
-Only one extra option is unique to node-jshint: `globals`
+Only one extra option is unique to node-jshint: `globals`
allows you to define an object of globals that get ignored for every file.
To see an example you can look at how whitelisted globals are defined
in the [jshint code](https://github.com/jshint/jshint/blob/c047ea1b01097fcc220fcd1a55c41f67ae2e6e81/jshint.js#L556)
@@ -107,6 +107,17 @@ If there is a .jshintignore file in your project's directory tree, (also provide
**Note:** Pattern matching uses minimatch, with the nocase [option](https://github.com/isaacs/minimatch). When there is no match, it performs a left side match (when no forward slashes present and path is a directory).
+FAQ
+---
+
+#### How do I turn off "mixed tabs and spaces" warning?
+
+If you're using so-called [smart tabs](http://www.emacswiki.org/SmartTabs) then
+we have an option `smarttabs` for you. Otherwise, your solution is to run JSHint with
+a custom reporter that discards any warnings you don't like. For example, this [example
+reporter](https://gist.github.com/3885619) discards all warnings about mixed tabs and
+spaces.
+
Contributing
------------
Please sign in to comment.
Something went wrong with that request. Please try again.