Skip to content

Commit 15d91c7

Browse files
committed
Fix readme and typos, bump to 0.2.2
1 parent 9db7d1f commit 15d91c7

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# Modern JavaScript Snippets ⚡
22

3+
> Short and memorable JavaScript & TypeScript snippets for the modern-day developer.
4+
5+
<br>
6+
37
🚧 Work in progress
48

9+
<br>
510

6-
> Short and memorable JavaScript & TypeScript snippets for the modern-day developer.
11+
Currently at **180+** snippets
712

813
<br>
914

1015
![JavaScript](https://img.shields.io/badge/javascript-%23F7DF1C.svg?style=for-the-badge&logo=javascript&logoColor=%23323330)
1116
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
1217

13-
14-
1518
## Support
1619
Only JavaScript and TypeScript will be supported.
1720
Specific frameworks will get their own extensions. No bloat.
@@ -22,9 +25,8 @@ Supported file extensions:
2225
- `.jsx`
2326
- `.tsx`
2427

25-
2628
## Setup
27-
The following is not mandatory, but provides a nicer experience.
29+
The following is not mandatory, but could provide a nicer experience.
2830

2931
Search for `editor.tabCompletion` in user settings, or edit the settings.json directly:
3032
```jsonc
@@ -280,6 +282,8 @@ You can use these snippets along with Prettier/ESLint to have your code automati
280282
## Uncategorized
281283

282284
⚠️ *working on it*
285+
286+
283287
| Prefix | Description | Body |
284288
| ------ | ---------------- | ----------------------------------------- |
285289
| `uniq` | uniq | `[...new Set(${0:array})]` |
@@ -313,9 +317,7 @@ You can use these snippets along with Prettier/ESLint to have your code automati
313317
| `tpu` | type union | `type ${1:Model} = ${2:first} \| ${3:second}` |
314318
| `tpi` | type intersection | `type ${1:Model} = ${2:first} & ${3:second}` |
315319

316-
*...and many more (evertyhing will be documented)*
317-
318-
Running locally
320+
## Running locally
319321

320322
```bash
321323
# ensure Deno is installed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "modern-js-snippets",
33
"displayName": "Modern JavaScript Snippets ⚡",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"license": "MIT",
66
"description": "Code snippets for modern JavaScript & TypeScript",
77
"icon": "assets/icon.png",

src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ if (!flags.table && !flags.snippets) {
2626
}
2727
});
2828
}
29+
30+

src/snippets/js/flow-control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const flowControl = {
3737
name: "case",
3838
body: [
3939
"case ${1:value}:",
40-
"\tt$0",
40+
"\t$0",
4141
"\tbreak;",
4242
],
4343
},

0 commit comments

Comments
 (0)