simple-merge-class-names 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ function MyComponent() {
|
|
|
46
46
|
}
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
While using separate strings for each class name can be tedious (see [Workflow
|
|
49
|
+
While using separate strings for each class name can be tedious (see [Workflow To Minimize Typing Strain](#workflow-to-minimize-typing-strain)), it however significantly enhances Code Readability and Developer Experience (DX). This is in contrast to hard-to-read strings like:
|
|
50
50
|
|
|
51
51
|
```jsx
|
|
52
52
|
function MyComponent() {
|
|
@@ -63,6 +63,13 @@ function MyComponent() {
|
|
|
63
63
|

|
|
64
64
|
|
|
65
65
|
- Have `Prettier` installed
|
|
66
|
+
- Have `Editor: Word Wrap` enabled in VS Code:
|
|
67
|
+
|
|
68
|
+
- `Open Settings (UI)` → `Editor: Word Wrap` → `on`
|
|
69
|
+
- Or `Open User Settings (JSON)` and add this entry:
|
|
70
|
+
|
|
71
|
+
`"editor.wordWrap": "on"`
|
|
72
|
+
|
|
66
73
|
- Use single quotes (<kbd>'</kbd>) for class names, often a single key press on many keyboards.
|
|
67
74
|
- Save the file (<kbd>Ctrl+S</kbd>), and Prettier does the formatting heavy-lifting, it automatically:
|
|
68
75
|
- Replaces single quotes with double quotes.
|
package/package.json
CHANGED