Socket
Socket
Sign inDemoInstall

eslint-teamcity

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-teamcity

An ESLint formatter plugin for TeamCity


Version published
Weekly downloads
9.2K
decreased by-6.55%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-teamcity

npm version Build Status

A small eslint formatter plugin. ESLint violations are output nicely in the TeamCity build error format. Tested with TeamCity 9.1.x

Installation

Use npm.

npm install eslint-teamcity --save-dev

Usage

  eslint --format './node_modules/eslint-teamcity/index.js' myfiletolint.js

gulp-eslint integration

var gulp = require('gulp'),
    eslint = require('gulp-eslint'),
    teamcity = require('eslint-teamcity');

gulp.task('lint', function () {
    return gulp.src(['js/**/*.js'])
        .pipe(eslint())
        .pipe(eslint.format(teamcity))
        .pipe(eslint.failAfterError());
});

See the gulp-eslint docs for more info on setting up a linting task.

TeamCity usage (with gulp-eslint)

Add a gulp task to run ESLint (see above)

Setup a TeamCity build step, similar to the below screenshot:

Example TeamCity Setup

Kick off a new build, by deploying again, and you should see your build errors - assuming you have any!

Screenshot with TeamCity

Example TeamCity Output

Issues

I will try keep this project up to date, but please log any issues here. Any pull requests are also welcome!

Keywords

FAQs

Package last updated on 04 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc