-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format fsharp code #3609
Format fsharp code #3609
Conversation
Very nice. Agree about git hooks. We could add that as developer documentation so those who wants can add themselves to avoid too many "fix formatting" commits. |
For the git hooks, we could use Husky.Net. This is a tool which allows you to commit the hooks information and then you can use We can run [<EntryPoint>]
let main argv =
let argv = argv |> Array.map (fun x -> x.ToLower()) |> Array.toList
// Run dotnet husky attach here
match argv with
| "fable-library" :: args -> What do you think? |
Interesting idea, I never heard of Husky. |
Thank you @nojaf |
See #3596
When it comes to git hooks, you could add this one. However, a git hook is typically something personal which you don't put in source control (as it lives in the
.git
folder).I've added the commands the F# team is using to format their code by commenting
/run fantomas
on the PR.