Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

ebednarz/lintify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lintify npm version

Browserify transform to abort bundling silly source files.

Installation

$ npm install lintify

Before

  1. someone creates CI job
  2. someone configures Checkstyle plugin for CI job
  3. someone configures ESLint to create Checkstyle format report
  4. developer saves silly source file
  5. developer commits silly source file to VCS
  6. developer pushes VCS commit to remote
  7. remote pushes notification to CI server
  8. CI server pulls in VCS changes
  9. CI server builds browserify bundle
  10. CI server passes bundle to ESLint
  11. ESLint generates Checkstyle report
  12. CI server aborts build
  13. CI server sends email to developer
  14. developer fixes issues
  15. developer commits potentially still silly source file to VCS
  16. back to step 6

After

  1. developer saves silly source file
  2. building browserify bundle is aborted
  3. developer fixes issues

Wait! Couldn't developer run ESLint herself?

That's what I used to think! It turns out, however, that the answer to that question is no.

Options

{
    errors: {
        head: function (file) {
            // log source file name
        },
        each: function (position, reason) {
            // log every error position in source file and reason
        },
        tail: function () {
            // log aborted bundle name
        },
        message: 'OH NOES LINT ERRORS EMITTED!!1!'
    }
}

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published