From d6d142e90fe43701a65dd2d6e34a210b71b13b22 Mon Sep 17 00:00:00 2001 From: Ulrich Sossou Date: Sat, 16 Nov 2013 23:15:22 +0100 Subject: [PATCH] use .jshintrc for editors and IDEs support --- .jshintrc | 13 +++++++++++++ Gruntfile.js | 14 +------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000000..f4f57b8f56 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,13 @@ +{ + "expr": true, + "browser": true, + "multistr": true, + "globals": { + "jQuery": true, + "ionic": true, + "angular": true, + "console": true, + "module": true, + "document": true + } +} diff --git a/Gruntfile.js b/Gruntfile.js index 242186c807..59bb58cf00 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -70,19 +70,7 @@ module.exports = function(grunt) { jshint: { files: ['Gruntfile.js', 'js/**/*.js', 'test/**/*.js'], options: { - // Disable short circuit check, I will not bend to its will. - expr: true, - browser: true, - multistr: true, - // options here to override JSHint defaults - globals: { - jQuery: true, - ionic: true, - angular: true, - console: true, - module: true, - document: true - } + jshintrc: '.jshintrc' } }, sass: {