eslint-friendly-formatter
eslint-friendly-formatter copied to clipboard
Pass parameter to use absolute paths
Hi! I'm using eslint-friendly-formatter with gulp like that
.pipe(eslint({rulePaths: [path.resolve('./eslint-custom-rules')]}))
.pipe(eslint.formatEach(friendlyFormatter))
Version 3.0.0
bring relative format by default, but I still need absolute.
How can I specify EFF_ABSOLUTE_PATHS parameter in gulp, not using environment variables?
Hi @klimashkin,
It might be possible to pass the parameters to the function directly and return the formatter configured for usages like this one.
In the meantime the best workaround for you is to to use 2.x version. The only difference between 2.x and 3.x is that now 3x gives the paths as relative. In the long run I will enable passing parameters to this function so you can use the newer version without issues.