import-linter
import-linter copied to clipboard
Filename format
Adds format=filenames configuration option to allow CMD-clicking importlinter output in iTerm.
WIP as:
- I'm not sure this is the best way to pass in the configuration.
- There is a test, but I'm not sure if it's at the correct level.
- Maybe there's some value in refactoring some of the formatting so that this is a universal option - I think it's only applying to the
layersconfiguration. - It should be nice to type
format: Literal["default", "filenames"], but again I think this would require a refactor. - Needs docs adding.
Related PR: https://github.com/seddonym/import-linter/pull/293 - which outputs everything in a json format.
We should consider both of these use cases, I'm still considering what the best design is but feel free to weigh in.