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.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. 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 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:
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
  ![Screen recording of optimal DX in action: using this package with Prettier as it neatly arranges each class name on a new line](https://raw.githubusercontent.com/new-AF/simple-merge-class-names/main/.github/images/Reduce%20typing%20strain.gif)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-merge-class-names",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Example usage: <div className = {mergeClassNames('flex', 'flex-col')}/>",
5
5
  "main": "mergeClassNames.js",
6
6
  "exports": "./mergeClassNames.js",