Skip to content
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

Back ticks are removed from enum #626

Closed
JonCanning opened this issue Jan 10, 2020 · 0 comments · Fixed by #662
Closed

Back ticks are removed from enum #626

JonCanning opened this issue Jan 10, 2020 · 0 comments · Fixed by #662

Comments

@JonCanning
Copy link

Issue created from fantomas-ui

Back ticks are removed from enum

Code

type MyEnum =
  | ``test-one`` = 0

Error

type MyEnum =
    | test-one = 0

Options

Fantomas 3.1.0

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false
nojaf added a commit to nojaf/fantomas that referenced this issue Jan 31, 2020
nojaf added a commit to nojaf/fantomas that referenced this issue Jan 31, 2020
@nojaf nojaf closed this as completed in #662 Feb 1, 2020
nojaf added a commit that referenced this issue Feb 1, 2020
* Added failing test for #626.

* Print ident between ticks for enum definition.
Fixes #626.

* Added additional unit tests.
nojaf added a commit to nojaf/fantomas that referenced this issue Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant