Go to repository

Function eslint

Returns the string for the bash command to run eslint with the project's configuration. And optional fix option set to true may be given to attempt fixing all errors instead of just reporting them.

eslint({files: './src/** /*' })
eslint({ files: './src/** /*', fix: true })

Parameters

Returns string

The bash command string.