Questions tagged [gulp-jscs]

Gulp plugin for checking javascript code style with jscs

gulp-jscs is a gulp plugin for checking javascript code style with jscs.

https://github.com/jscs-dev/gulp-jscs

JSCS is a code style linter for programmatically enforcing your style guide. You can configure JSCS for your project in detail using over 90 validation rules, including presets from popular style guides like jQuery, Airbnb, Google, and more.

http://jscs.info/

19 questions
0
votes
1 answer

JSCS validateJSDoc Error Unsupported Rule on Closure or Comment at the Top of the File

I've setup JShint and JSCS using Gulp for an AngularJS app using the JShint and JSCS docs for options, and JSHint work as it should, but when used with JSCS I get a bunch of errors all one per file all associated to the IIFE or comment at the top of…
mtpultz
  • 17,267
  • 22
  • 122
  • 201
0
votes
0 answers

How to set up JSCS/JSHINT rule to invalid code with reserved keywords?

I need to check my JavaScript code for validity using JSCS/JSHINT. I need to invalidate my code if a "reserved keywords" is present example. require([ ], function ( ) { var model = { delete: function () { alert('hello!') …
GibboK
  • 71,848
  • 143
  • 435
  • 658
0
votes
1 answer

Unable to add more than one directory in gulp.dest

I am trying to run jscs using the following code. var _files = ["main.js", "src/*.js"]; gulp .src(_files) .pipe(jscs( { configPath: __dirname+'/../.jscsrc', esnext: true, fix: true } )) .pipe(gulp.dest('')); What should I pass in gulp.dest as I…
AugustRush
  • 367
  • 4
  • 4
0
votes
1 answer

Issue with task not executing when using gulp with run-sequence

I am new to gulp and so I put a simple script together to 1) learn how gulp works and 2) improve my development workflow. The issue I am having is that if I set the runSequence task list to be in the order of jscs and then lint, the lint task does…
Anil
  • 2,539
  • 6
  • 33
  • 42
1
2