Skip to content

hammock/PHPCI-eslint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPCI-eslint

Eslint reporter for PHPCI

Add this to composer.json:

composer require sergiu-paraschiv/phpci-eslint

Then the task to phpci.yml:

test:
    ...
    \SergiuParaschiv\PHPCI\Plugin\Eslint:
        directory: "frontend"
        command: "npm run lint:ci"
        allowed_errors: 10
        allowed_warnings: 20
        data_offset: 2
    ...

Eslint should run with the -f json flag.

data_offset is the number of lines at the top of the output to skip before parsing the response.

lint:ci in package.json should be "lint:ci": "eslint 'app/**/*.js' -f json; exit 0",

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%