Closed azz closed 6 years ago
I'm hoping we can do without a config file tbh.
For the linting part of this, the order in which the linters run is not important. For formatting the code I'm thinking we should always run prettier first, if it's registered.
So you would basically configure @linterjs by installing the adapters that you're interested in and the adapters would run on all files they support and/or are configured to run on, via their respective config files.
Let's see how far we can get without a config file.
Let's keep the discussion going in linterjs/cli#1.
No
cli
repository yet, so opening it hereObviously a configuration file is required. I had a few ideas rattling in my head so I thought I'd jot down some examples.
Equivalent of
eslint-config-prettier
andtslint-config-prettier
:Equivalent of
prettier-eslint
andprettier-tslint
:Passing options to a linter:
Note that the resolution for names in
"use"
would be:resolve("@linter/" + name)
resolve("linter-" + name)
resolve(name)