JSPM

gulp-kill-semicolon

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q18506F

Gulp plugin that finds accidental occurrence of colons & semicolons at the end of the string, within the quotation.

Package Exports

  • gulp-kill-semicolon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-kill-semicolon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-kill-semicolon

npm install gulp-kill-semicolon

How often did this happen to you?

var s = 'hello;'

Or this?

var o = {
        h: 'world,'
    }

(If you still didn't notice, then you might already have this problem somewhere else - it's either semicolon or colon accidentally included INSIDE the string - within the quotes!)

Did you spend hours on searching for what was wrong with your code? No IDE showed you that there was something wrong..

Well, suffer no more, as here comes gulp-kill-semicolon.

Usage example:

var gulp = require('gulp');
var killSemicolon = require('gulp-kill-semicolon').killSemicolon;

gulp.task('sem', function(){
    return gulp.src([
                    './*.js' //it's up to you to pick files you want to analyze
                     ])
            .pipe(killSemicolon());
});

Please note that this plugin WILL NOT modify your files. It will ONLY log the warnings to your console, indicating the lines of code in particular files that have either colon or semicolon at the end of the string declaration. Works with both single and double quotation.