Open zimme opened 6 years ago
This package should also be used by editor integrations.
I see the following functionality as needed, for now.
For cli, editors and other programmatic use cases.
For linter adapters
We will need a common lint output format so that the cli and editors can pretty print the output for all linters.
Working on a "light-weight" version of eslint's output with some additions from tslint's output, for LinterAdapterLintOutput
.
What do you think about changing the naming to check/fix instead of lint/format? I've seen it in Google's ts-style project and I think it makes sense in here as well. Making the prettier adaptor i.e. expose a "lint" function seems a bit weird, doesn't it?
Worth thinking about, however the prettier provider will be using prettylint which make prettier work like a linter based on some of the exposed functionality fron eslint-plugin-prettier
Let's discuss the public api of this package. I see this as an internal package used by
@linterjs/cli
and the adapters.