1.0.6 • Published 11 months ago
@linear_non/prettier-config v1.0.6
Non-Linear Prettier Configuration
Setup
Make sure to install the Prettier extension for VSCode
Make sure to install the dependency as a dev dependency in your project:
# npm
npm install -D @linear_non/prettier-configCreate a .prettierrc file at the root of your project, with just this line inside
"@linear_non/prettier-config"In VSCode,
- Cmd + Shift + P
- Search for "Open User Settings (JSON)"
- Make sure you have no configuration for formatting other than this line "editor.formatOnSave": true"
- Reload your VSCode project to make sure changes have applied
- At the bottom right left, you should have a Prettier button. Errors will show up there. If everything goes well, save a document and it should format accordingly to this configuration.