Closed matchai closed 5 years ago
@matchai , I have the same thought for wanting consistency, but I am still kind of bothered with the newlines, especially here :p
Hm... I totally agree. 🤔 Hopefully, a Fish AST will be made available sooner than later. I'd love to create a Prettier plugin for processing Fish files.
I'll leave this open for now to allow for more discussion. I can be persuaded to go either way at this point.
Description
Having ran
fish_indent
on all the fish files in the project, our fish files should be more consistently indented and formatted in the fish style.You may notice that early returns are now on a new line. I personally don't mind this change, but I can see it bothering others. In the end, I'm happy with anything as long as it's consistent. If we agree to the styling of
fish_indent
, it may be worthwhile to add it as a git hook on *.fish files with Husky. Thoughts?Another quick note is that test files have not been formatted. It is a known issue that fish-tape files are not fish_indent compatible, so I reindented them to fit with the 4-space indentation of
fish_indent
.Click here for the non-whitespace changes! ✨
Types of changes
How Has This Been Tested?
Checklist: