You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Update Readme to help developers handle prettier errors. (#1529)
* Update Readme to help developers handle prettier errors in the Config UI tests
* Minor improvements in README for prettier trouble shooting
Co-authored-by: Priebe Daniel <dpr@novatec-gmbh.de>
Co-authored-by: Heiko Holz <heiko.holz@novatec-gmbh.de>
Copy file name to clipboardExpand all lines: components/inspectit-ocelot-configurationserver-ui/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,19 @@ And the following to fix them automatically.
33
33
yarn lint:fix
34
34
```
35
35
36
+
### Prettier
37
+
38
+
When facing prettier/prettier errors in the Config UI tests and developing with VS Code, follows these steps for problem solving:
39
+
40
+
* make sure to install the [prettier extension from Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
41
+
* open the file in which the prettier errors occur
42
+
* format the document using prettier
43
+
1. to format the document, open the command palette with `Ctrl + Shift + P` (Windows) or `Cmd + Shift + P` (Mac)
44
+
2. search for `Format Document With...`.
45
+
3. press Enter
46
+
4. in the opened drop down menu you can choose your preferred code styling (in this case prettier). Select `prettier` and press Enter
47
+
* the opened code file will automatically be formatted by prettier, which will fix the prettier errors in the Config UI tests.
48
+
36
49
#### Storybook
37
50
38
51
The project also contains [Storybook](https://storybook.js.org/) which supports the development of components by providing an isolated sandbox UI for testing these components.
0 commit comments