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

Prettier formatting with Riot? #2725

Closed
danawoodman opened this issue Jun 30, 2019 · 3 comments
Closed

Prettier formatting with Riot? #2725

danawoodman opened this issue Jun 30, 2019 · 3 comments

Comments

@danawoodman
Copy link

danawoodman commented Jun 30, 2019

Is it known/possible to format .riot files with Prettier? Is this documented somewhere? I have looked around but have not found any documentation/examples on how to use it. Thanks!

PS I'd be happy to submit a PR for adding it to the docs once I know how to do it.

@GianlucaGuarini
Copy link
Member

For this feature and probably an eslint-plugin I will need the community help. I will be happy to integrate and review any side project. Thank you for your feedback

@GianlucaGuarini
Copy link
Member

I am closing this issue since I have no time and plans to support this feature. I count on the community help for it.

@markgarrigan
Copy link

In case people get here through Google... I use this config for Prettier with riot.

{
  "tabWidth": 2,
  "useTabs": false,
  "quoteProps": "preserve",
  "singleQuote": true,
  "semi": false,
  "overrides": [
    {
      "files": "*.riot.html",
      "options": {
        "parser": "mdx",
        "jsxBracketSameLine": true
      }
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants