]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove jshint
authorColin Marshall <colin.michael.marshall@gmail.com>
Wed, 17 Feb 2016 04:05:03 +0000 (21:05 -0700)
committerColin Marshall <colin.michael.marshall@gmail.com>
Wed, 17 Feb 2016 04:52:14 +0000 (21:52 -0700)
.jshintConfig [deleted file]
gulp/lint.js
package.json

diff --git a/.jshintConfig b/.jshintConfig
deleted file mode 100644 (file)
index a9b2308..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "boss":      true,
-  "node":      true,
-  "strict":    true,
-  "newcap":    false,
-  "undef":     true,
-  "unused":    false,
-  "onecase":   true,
-  "lastsemic": true,
-  "expr":      true,
-  "eqeqeq":    true,
-  "jquery":    true,
-  "browser":   true,
-  "predef":    ["Foundation", "define"]
-}
\ No newline at end of file
index 113faba8389cf5751f130c8b403a7629f27a7df4..b1a817ffe02bb3241a1573fda7ebed1ee534de4a 100644 (file)
@@ -1,6 +1,5 @@
 var gulp = require('gulp');
 var scssLint = require('gulp-scss-lint');
-var jshint = require('gulp-jshint');
 var eslint = require('gulp-eslint');
 
 var PATHS = [
@@ -17,30 +16,12 @@ gulp.task('lint:sass', function() {
     .pipe(scssLint());
 });
 
-gulp.task('lint:javascript', function() {
-  jshint.lookup = false;
-
-  return gulp.src('js/*.js')
-    .pipe(jshint())
-    .pipe(jshint.reporter('default'));
-});
-
-gulp.task('lint:eslint', function () {
-    // ESLint ignores files with "node_modules" paths.
-    // So, it's best to have gulp ignore the directory as well.
-    // Also, Be sure to return the stream from the task;
-    // Otherwise, the task may end before the stream has finished.
+gulp.task('lint:javascript', function () {
     return gulp.src(['js/*.js'])
-        // eslint() attaches the lint output to the "eslint" property
-        // of the file object so it can be used by other modules.
         .pipe(eslint({
                useEslintrc: true,
                configFile: '.eslintrc'
         }))
-        // eslint.format() outputs the lint results to the console.
-        // Alternatively use eslint.formatEach() (see Docs).
         .pipe(eslint.format())
-        // To have the process exit with an error code (1) on
-        // lint error, return the stream and pipe to failAfterError last.
         .pipe(eslint.failAfterError());
 });
index bbc6411e3171da54c0b882a397cb7d334abaa6a8..349da8dd2dbae9ceb9650eb5fdd0582166865eb9 100644 (file)
@@ -44,7 +44,6 @@
     "gulp-cssnano": "^2.1.0",
     "gulp-eslint": "^2.0.0",
     "gulp-filter": "^3.0.1",
-    "gulp-jshint": "^2.0.0",
     "gulp-load-plugins": "^1.2.0",
     "gulp-mocha": "^2.2.0",
     "gulp-newer": "^1.1.0",
@@ -59,7 +58,6 @@
     "gulp-sourcemaps": "^1.6.0",
     "gulp-uglify": "^1.1.0",
     "inquirer": "^0.11.2",
-    "jshint": "^2.9.1",
     "mocha": "^2.3.3",
     "motion-ui": "^1.1.0",
     "octophant": "^1.0.0",