You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not parse lint-staged config.
● Validation Error:
Option "renderer" must be of type:
string
but instead received:
function
Example:
{
"renderer": "update"
}
Please refer to https://github.com/okonet/lint-staged#configuration for more information...
Debug Logs
expand to view
lint-staged:bin Running `lint-staged@8.1.0` +0ms
lint-staged:find-bin Could not load package.json using `process.cwd()` +0ms
lint-staged Loading config using `cosmiconfig` +0ms
lint-staged Successfully loaded config from `/home/sgoetz/workspace/experiments/git-hooks/configuration/lint-staged.config.js`:
lint-staged { linters:
lint-staged { '*.{java}': '/home/sgoetz/workspace/experiments/git-hooks/scripts/run-hook.sh DGL-1',
lint-staged '*.{js,jsx}': '/home/sgoetz/workspace/experiments/git-hooks/scripts/run-hook.sh DGL-3',
lint-staged '*.{ts,tsx}': '/home/sgoetz/workspace/experiments/git-hooks/scripts/run-hook.sh DGL-3_1',
lint-staged '*.{css,scss}': '/home/sgoetz/workspace/experiments/git-hooks/scripts/run-hook.sh DGL-5' },
lint-staged ignore:
lint-staged [ '*.min.{js,jsx,css,scss}',
lint-staged '**/vendor/**/*.{js,jsx,css,scss,ts,tsx}' ],
lint-staged renderer: [Function: CustomRenderer] } +14ms
lint-staged:cfg Normalizing config +0ms
lint-staged:cfg Validating config +1ms
Could not parse lint-staged config.
● Validation Error:
Option "renderer" must be of type:
string
but instead received:
function
Example:
{
"renderer": "update"
}
Please refer to https://github.com/okonet/lint-staged#configuration for more information...
Please make sure you have created it correctly.
See https://github.com/okonet/lint-staged#configuration.
Environment
OS: Ubuntu 18.0.4
Node.js: 8.11.4
lint-staged: 8.1.0
The text was updated successfully, but these errors were encountered:
Description
It's impossible to set a custom renderer for listr, you can only use the default renderers because of the configuration validator.
I'd be happy to make a pull request for this if that's something you want to support.
Steps to reproduce
When I set this in the configuration
It fails with
Debug Logs
expand to view
Environment
lint-staged
: 8.1.0The text was updated successfully, but these errors were encountered: