We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-ui
The word Yarn is repeated under "Yarn" ==> "Format".
Yarn
"Yarn" ==> "Format"
#r "paket: groupref build //" #load ".fake/build.fsx/intellisense.fsx" open System.IO open Fake.Core open Fake.Core.TargetOperators open Fake.IO open Fake.IO.Globbing.Operators open Fake.IO.FileSystemOperators open Fantomas.FormatConfig open Fantomas open Fake.JavaScript let pwd = Shell.pwd() let clientDir = pwd </> "src" </> "client" let yarnSetParams = (fun (c: Yarn.YarnParams) -> { c with WorkingDirectory = clientDir }) let fantomasConfig = match CodeFormatter.ReadConfiguration(Shell.pwd()) with | Success c -> c | _ -> failwith "Cannot parse fantomas-config.json" let fsharpFiles = !!"src/**/*.fs" -- "src/**/obj/**" -- "src/**/node_modules/**" -- "src/**/.fable/**" Target.create "Format" (fun _ -> fsharpFiles |> FakeHelpers.formatCode fantomasConfig |> Async.RunSynchronously |> printfn "Formatted F# files: %A" Yarn.exec "prettier webpack.config.js --write" yarnSetParams) Target.create "CheckCodeFormat" (fun _ -> let needFormatting = fsharpFiles |> checkCodeAndReport fantomasConfig |> Async.RunSynchronously match Array.length needFormatting with | 0 -> Trace.log "No files need formatting" | _ -> Trace.log "The following files need formatting:" needFormatting |> Array.iter Trace.log failwith "Some files need formatting, check output for more info" Yarn.exec "prettier webpack.config.js --check" yarnSetParams) Target.create "Yarn" (fun _ -> Yarn.installFrozenLockFile yarnSetParams) "Yarn" ==> "Format" "Yarn" ==> "CheckCodeFormat" Target.runOrDefault "CheckCodeFormat"
#r "paket: groupref build //" #load ".fake/build.fsx/intellisense.fsx" open System.IO open Fake.Core open Fake.Core.TargetOperators open Fake.IO open Fake.IO.Globbing.Operators open Fake.IO.FileSystemOperators open Fantomas.FormatConfig open Fantomas open Fake.JavaScript let pwd = Shell.pwd() let clientDir = pwd </> "src" </> "client" let yarnSetParams = (fun (c: Yarn.YarnParams) -> { c with WorkingDirectory = clientDir }) let fantomasConfig = match CodeFormatter.ReadConfiguration(Shell.pwd()) with | Success c -> c | _ -> failwith "Cannot parse fantomas-config.json" let fsharpFiles = !!"src/**/*.fs" -- "src/**/obj/**" -- "src/**/node_modules/**" -- "src/**/.fable/**" Target.create "Format" (fun _ -> fsharpFiles |> FakeHelpers.formatCode fantomasConfig |> Async.RunSynchronously |> printfn "Formatted F# files: %A" Yarn.exec "prettier webpack.config.js --write" yarnSetParams) Target.create "CheckCodeFormat" (fun _ -> let needFormatting = fsharpFiles |> checkCodeAndReport fantomasConfig |> Async.RunSynchronously match Array.length needFormatting with | 0 -> Trace.log "No files need formatting" | _ -> Trace.log "The following files need formatting:" needFormatting |> Array.iter Trace.log failwith "Some files need formatting, check output for more info" Yarn.exec "prettier webpack.config.js --check" yarnSetParams) Target.create "Yarn" (fun _ -> Yarn.installFrozenLockFile yarnSetParams) "Yarn" ==> "Format" "Yarn" "Yarn" ==> "CheckCodeFormat" Target.runOrDefault "CheckCodeFormat"
Fantomas 3.1.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
true
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
SemicolonAtEndOfLine
SpaceAfterComma
SpaceAfterSemicolon
SpaceAroundDelimiter
SpaceBeforeArgument
SpaceBeforeColon
StrictMode
The text was updated successfully, but these errors were encountered:
Smaller repo: https://jindraivanek.gitlab.io/fantomas-ui/#?fantomas=preview&code=CoQwTg5gpgLgdAYzFEMoAIBEBNcA7TdACgDMBXPdAfXQFoA+dXMPOASzwGcYQAbXgGJgA9gC8oeADLCEAawFteGAJ74AyrAAK4EAFtOASgCwAKFM58hALxXGmAcLC7UmU+eYF0NuwGEAFlByPsIAJlAOTi5uJqCQsHBgFADyYAAiUCQgZLwwWP6BssFhEc4wriZAA&config=N4Ig0gphAOByEHcA2BLAdhAggMwC4QCcQAuXAgVwgF8g
Sorry, something went wrong.
End String Content after String token. Fixes fsprojects#646
9c4fe23
End String Content after String token. Fixes #646 (#764)
a0cc8b1
Successfully merging a pull request may close this issue.
Issue created from fantomas-ui
The word
Yarn
is repeated under"Yarn" ==> "Format"
.Code
Result
Options
Fantomas 3.1.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
true
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeArgument
true
SpaceBeforeColon
false
StrictMode
false
The text was updated successfully, but these errors were encountered: