From a5ff45099e9ae322770601e7496d200594b197f0 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Wed, 18 Sep 2013 09:37:28 +0800 Subject: [PATCH] Move jshint rules into jshintrc and include from Gruntfile. --- .jshintrc | 16 ++++++++++++++++ Gruntfile.js | 17 +---------------- 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..1020c65 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,16 @@ +{ + "curly": true, + "eqeqeq": true, + "immed": true, + "latedef": false, + "newcap": true, + "noarg": true, + "sub": true, + "undef": true, + "boss": true, + "eqnull": true, + "browser": true, + "globals": { + "jQuery": true + } +} \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index b116d0f..aaa89d9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -54,22 +54,7 @@ module.exports = function(grunt) { }, jshint: { all: ['<%= concat.dist.dest %>'], - options: { - curly: true, - eqeqeq: true, - immed: true, - latedef: true, - newcap: true, - noarg: true, - sub: true, - undef: true, - boss: true, - eqnull: true, - browser: true, - globals: { - jQuery: true - } - } + options: grunt.file.readJSON('./.jshintrc') } });