Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Lint: Tighten .jshintrc options and enforce them.
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 30 Oct 2012 06:12:04 +0000 (07:12 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 30 Oct 2012 06:12:04 +0000 (07:12 +0100)
commit515de778ca756e181cc56c23b0c2841ef4eda8fa
treed430d39c8f5c9cf44ef8bd6487f1f84dfb855cd8
parent7e8e745f4c36f04792ef1ee811c48ddff7b1c6c4
Lint: Tighten .jshintrc options and enforce them.

Re-ordered .jshintrc to be alphabetical once again (like on
jshint.com/docs/) and by section (predef, restriction,
toleration, environment, legacy).

Enforce eqeqeq:true, and hard-code camelcase:false since we
have a few underscore ones.

"delete x" problem:
* "delete x" never passes jshint, we should use window.x instead.
* "delete window.x" doesn't work in IE6-8 (throws exception)
* "delete x" only works for "x = 1", not for "window.x".
* Only solution I see: use IE @cc comments for the IE version
  of the test.
* See also http://jsfiddle.net/8X6cS/6/
  IE6: supportDeleteProperty = false, jscriptVersion = 5.6
  IE7: supportDeleteProperty = false, jscriptVersion = 5.7
  IE8: supportDeleteProperty = false, jscriptVersion = 5.8
  IE9: supportDeleteProperty = true, jscriptVersion = 9
  IE10: supportDeleteProperty = true, jscriptVersion = 10

Follows-up dbd005333d23dc1b248a3b6d17f32ab2b2396c66
grunt.js
qunit/.jshintrc
qunit/qunit.js
test/.jshintrc
test/deepEqual.js
test/test.js

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf