Skip to content

Linting results for CI (CircleCi) #4448

Closed
@iliran11

Description

@iliran11

How is it possible to fail a CI build on CircleCi if Eslint generates an error or a warning?

Seems like the only access to linting results is through npm start.
However, this config file doesn't do the trick.

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:7.10
    steps:
      - checkout
      - run: npm install
      - run: npm start

The build just hangs. I guess that start script doesn't return any exit status.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions