Riot: Prettier formatting with Riot?

Created on 30 Jun 2019  路  3Comments  路  Source: riot/riot

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.

discussion enhancement

Most helpful comment

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

All 3 comments

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

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

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
      }
    }
  ]
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SatoshiKawabata picture SatoshiKawabata  路  3Comments

ShiMeiWo picture ShiMeiWo  路  3Comments

GianlucaGuarini picture GianlucaGuarini  路  3Comments

syuilo picture syuilo  路  3Comments

anonimusprogramus picture anonimusprogramus  路  3Comments