ni / nimble

The NI Nimble Design System
https://nimble.ni.dev
MIT License
29 stars 9 forks source link

Prettier not running on storybook files #2136

Closed m-akinc closed 4 weeks ago

m-akinc commented 1 month ago

🧹 Tech Debt

Prettier does not seem to be formatting on save like it used to when the story files were part of the nimble-components package.

m-akinc commented 1 month ago

Check with Jesse to make sure there aren't painful merges.

fredvisser commented 1 month ago

We need to update the .prettierignore file:

/*
!/packages
/packages/*
!/packages/storybook
!packages/nimble-components

…and likely add a .prettierrc.json file to the storybook folder:

{
    "tabWidth": 4,
    "useTabs": false,
    "trailingComma": "none",
    "singleQuote": true,
    "endOfLine": "auto",
    "proseWrap": "always"
}

The proseWrap option enables line wrapping in MDX files.