File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,24 @@ statements](/docs/options#expr) for only those files ending in `-test.js`:
113
113
114
114
### Ignoring Files
115
115
116
- TODO
116
+ ` jshint ` can be configured to ignore files based on their location in the
117
+ filesystem. You may create a dedicated "ignore" file to list any number of file
118
+ names, file paths, or file path patterns that should not be linted. Path
119
+ patterns will be interpreted using [ the ` minimatch ` npm
120
+ module] ( https://www.npmjs.com/package/minimatch ) , which itself is based on [ the
121
+ Unix filename matching syntax, fnmatch] ( http://linux.die.net/man/3/fnmatch ) .
122
+
123
+ build/
124
+ src/**/tmp.js
125
+
126
+ ` jshint ` will look for this configuration in a number of locations, stopping at
127
+ the first positive match:
128
+
129
+ 1 . The location specified with the ` --exclude-path ` [ flag] ( #flags )
130
+ 2 . A file named ` .jshintignore ` located in the current directory or any parent
131
+ of the current directory
132
+
133
+ If this search yields no results, ` jshint ` will not ignore any files.
117
134
118
135
<a name =" flags " ></a >
119
136
You can’t perform that action at this time.
0 commit comments