eslint-friendly-formatter icon indicating copy to clipboard operation
eslint-friendly-formatter copied to clipboard

Pass parameter to use absolute paths

Open klimashkin opened this issue 7 years ago • 1 comments

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?

klimashkin avatar May 15 '17 19:05 klimashkin

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.

royriojas avatar May 15 '17 19:05 royriojas