Skip to content
Browse files

replacing lint task with grunt-contrib-jshint

  • Loading branch information...
1 parent 2bbc3ce commit 9689e3ee6414fdd2cc4e9e49901f55024f6c92d9 Todd Kennedy committed
Showing with 33 additions and 33 deletions.
  1. +29 −0 Gruntfile.js
  2. +0 −30 grunt.js
  3. +4 −3 package.json
View
29 Gruntfile.js
@@ -0,0 +1,29 @@
+module.exports = function(grunt) {
+ "use strict";
+ grunt.initConfig({
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ node: true,
+ es5: true
+ },
+ globals: {},
+ files: ['Gruntfile.js', 'tasks/**/*.js']
+ }
+ });
+
+ // Load local tasks.
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+
+ // Default task.
+ grunt.registerTask('default', 'jshint');
+};
View
30 grunt.js
@@ -1,30 +0,0 @@
-module.exports = function(grunt) {
- grunt.initConfig({
- lint: {
- files: ['grunt.js', 'tasks/**/*.js']
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- node: true,
- es5: true
- },
- globals: {}
- }
- });
-
- // Load local tasks.
- grunt.loadTasks('tasks');
-
- // Default task.
- grunt.registerTask('default', 'lint');
-};
View
7 package.json
@@ -1,7 +1,7 @@
{
"name": "grunt-dustjs",
"description": "Grunt task to compile Dust.js templates.",
- "version": "0.2.1",
+ "version": "0.2.1rc5",
"homepage": "https://github.com/STAH/grunt-dustjs",
"author": {
"name": "Stanislav Lesnikov",
@@ -31,13 +31,14 @@
"test": "grunt test"
},
"dependencies": {
- "grunt": "~0.4.0",
+ "grunt": "~0.4.0rc5",
"dustjs-linkedin": ">= 1.0.0"
},
"devDependencies": {
"grunt": "~0.4.0",
"grunt-coffee": ">= 0.0.5",
- "grunt-docco": ">= 0.1.1"
+ "grunt-docco": ">= 0.1.1",
+ "grunt-contrib-jshint": "~0.1.1rc6"
},
"keywords": [
"dustjs",

0 comments on commit 9689e3e

Please sign in to comment.
Something went wrong with that request. Please try again.