Requires NPM packages too!
Example package.json
{
"dependencies": {
"eslint": "^4.1.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1"
}
}
Example grumphp.yml
parameters:
git_dir: .
bin_dir: vendor/bin
tasks:
eslint: ~
services:
task.eslint:
class: Stickee\GrumPHP\ESLint
arguments:
- '@config'
- '@process_builder'
- '@formatter.raw_process'
tags:
- {name: grumphp.task, config: eslint}
composer require stickee/grumphp-tasks
and then either
yarn add eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard
or
npm install --save eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard