Hi Chris, It's not currently possible to get the ESLint version in a formatter.
You can get some information about the file contents in the results list: https://eslint.org/docs/developer-guide/working-with-custom-formatters#the-results-object The tl;dr of that is there will be a `source` property if linting errors are found or a `output` property if autofixes were made. On Fri, Jan 18, 2019 at 10:46 AM Chris Meyer <[email protected]> wrote: > Hi, is it possible to get the version of ESLint from within a formatter? > How about the contents of the file that was scanned? > > -- > You received this message because you are subscribed to the Google Groups > "ESLint" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- ______________________________ Nicholas C. Zakas @slicknet Author, Principles of Object-Oriented JavaScript <http://amzn.to/29Pmfrm> Author, Understanding ECMAScript 6 <http://amzn.to/29K1mIy> -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
