Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Enable selecting a formatter in format function #17

Open
nirazul opened this issue Nov 13, 2015 · 0 comments
Open

Feature Request: Enable selecting a formatter in format function #17

nirazul opened this issue Nov 13, 2015 · 0 comments

Comments

@nirazul
Copy link

nirazul commented Nov 13, 2015

I'm not sure where to put this, either here or at sass-lint, correct me if I'm wrong:
It'd be neat to have an argument in gulpSassLint.format to choose the formatter on the fly rather than choosing it in the options.

The background is that I'd like to format the output twice, once with the stylish formatter, and then again with a custom formatter (as a function) to report it via browser-sync to the window:

    gulp.src(myFiles)
            .pipe( $.eslint() )
            // Log errors
            .pipe( $.eslint.format('stylish') )
            // Format errors
            .pipe( $.eslint.format(myCustomFormatterFunction) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants