Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch from JSLint to JSHint for code quality.

  • Loading branch information...
commit 913fd3f233c9e85d77056ac4ce0dc9632d412766 1 parent 77ca31a
@reid reid authored
Showing with 24 additions and 5 deletions.
  1. +16 −0 .jshintrc
  2. +6 −3 README.md
  3. +1 −1  lint
  4. +1 −1  package.json
View
16 .jshintrc
@@ -0,0 +1,16 @@
+{
+ "globalstrict": true,
+ "node": true,
+ "es5": true,
+ "onevar": true,
+ "white": true,
+ "curly": true,
+ "eqeqeq": true,
+ "latedef": true,
+ "newcap": true,
+ "noempty": true,
+ "nonew": true,
+ "plusplus": true,
+ "undef": true,
+ "trailing": true
+}
View
9 README.md
@@ -185,14 +185,16 @@ Documentation will be built to `build_docs/api/everything/`.
Yeti uses [YUIDocJS][] to generate API documentation from inline JSDoc comment blocks.
-### JSLint
+### Linter
make lint
-You may also run JSLint on individual files with `./lint`:
+You may also run the linter on individual files with `./lint`:
./lint test/blizzard.js
+Yeti uses [JSHint][] to analyze code for problems. See `.jshintrc` for options used by Yeti.
+
### Contribute to Yeti
Your contributions are welcome!
@@ -207,7 +209,7 @@ before we can accept your pull request.
#### Contribution Checklist
- 1. Run `make lint` and make sure your new code runs through JSLint without error.
+ 1. Run `make lint` and make sure your new code runs through the linter without error.
1. Run `make coverage` and make sure your new code is covered with a test.
Tests are located in `test` and use [Vows][].
@@ -221,6 +223,7 @@ Yeti is an experimental project of YUI Labs. As such, it doesn't receive the sam
Yeti is free to use under YUI's BSD license. See the LICENSE file or the [YUI license page][license] for license text and copyright information.
+ [JSHint]: http://jshint.com/
[YUIDocJS]: https://github.com/davglass/yuidocjs
[Selleck]: http://github.com/rgrove/selleck
[PhantomJS]: http://phantomjs.org/
View
2  lint
@@ -1,3 +1,3 @@
#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"
-node $DIR/node_modules/.bin/jslint --nomen --bitwise $@
+node $DIR/node_modules/.bin/jshint $@
View
2  package.json
@@ -54,7 +54,7 @@
},
"devDependencies": {
"ronn": ">=0.3.8",
- "jslint": ">=0.1.4",
+ "jshint": ">=0.6.1",
"pact": ">=0.1.2",
"phantom": ">=0.3.3",
"vows": ">=0.5.0",
Please sign in to comment.
Something went wrong with that request. Please try again.