Confirmed users
64
edits
m (Add jshint.rc) |
|||
| Line 112: | Line 112: | ||
$ ./mach mochitest-browser browser/devtools/path/to/the/test_you_want_to_run.js | $ ./mach mochitest-browser browser/devtools/path/to/the/test_you_want_to_run.js | ||
== Checking your code using JSHint == | |||
There are many tools that allow you to run JSHint. The most commonly used on our codebase is JSHint Gutter for Sublime Text 3. Your jshint.rc should look like this: | |||
{ | |||
"moz": true, | |||
"maxerr": 9999, | |||
"quotmark": true, | |||
"smarttabs": true, | |||
"trailing": true, | |||
"undef": true, | |||
"loopfunc": true, | |||
"devel": true, | |||
"unused": true, | |||
"globals": { | |||
"loader": true, | |||
"require": true, | |||
"exports": true | |||
} | |||
} | |||