Permalink
Browse files

JSHint: Extract configuration to dotfiles

  • Loading branch information...
1 parent ca0253d commit d85bcb21a252a7f788f910f22c00217a61f0eb97 @nschonni nschonni committed Jan 23, 2014
Showing with 64 additions and 31 deletions.
  1. +6 −0 .jshintignore
  2. +17 −0 .jshintrc
  3. +1 −31 Gruntfile.js
  4. +40 −0 test/.jshintrc
View
@@ -0,0 +1,6 @@
+node_modules/
+lib/
+test/qunit/
+dist/
+demo/
+*.min.js
View
@@ -0,0 +1,17 @@
+{
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "noarg": true,
+ "onevar": true,
+ "quotmark": "double",
+ "smarttabs": true,
+ "trailing": true,
+ "undef": true,
+ "unused": true,
+
+ "jquery": true
+}
View
@@ -56,42 +56,12 @@ grunt.initConfig({
},
jshint: {
options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- eqnull: true,
- browser: true,
- globals: {
- jQuery: true,
- $: true,
- console: true
- }
+ jshintrc: true
},
files: [
'src/**/*.js'
],
test: {
- options: {
- globals: {
- jQuery: true,
- $: true,
- QUnit: true,
- module: true,
- test: true,
- start: true,
- stop: true,
- expect: true,
- ok: true,
- equal: true,
- deepEqual: true,
- strictEqual: true
- }
- },
files: {
src: [
'test/*.js'
View
@@ -0,0 +1,40 @@
+{
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "noarg": true,
+ "onevar": true,
+ "quotmark": "double",
+ "smarttabs": true,
+ "trailing": true,
+ "undef": true,
+ "unused": true,
+
+ "browser": true,
+ "jquery": true,
+
+ "globals": {
+ "asyncTest": false,
+ "closeEnough": false,
+ "deepEqual": false,
+ "domEqual": false,
+ "equal": false,
+ "expect": false,
+ "Globalize": false,
+ "module": false,
+ "notEqual": false,
+ "notDeepEqual": false,
+ "notStrictEqual": false,
+ "ok": false,
+ "QUnit": true,
+ "start": false,
+ "strictEqual": false,
+ "stop": false,
+ "test": false,
+ "TestHelpers": true,
+ "JSHINT": false
+ }
+}

0 comments on commit d85bcb2

Please sign in to comment.