|
4 | 4 |
|
5 | 5 | <br> |
6 | 6 |
|
7 | | - 🚧 *Still a work in progress. Some snippets may be changed or removed, and many more will be added.* |
| 7 | + 🚧 *Still a work in progress. Some snippets may be changed or removed, and more will be added.* |
8 | 8 |
|
9 | 9 | ## Features |
10 | 10 | - Contains over **180** snippets |
@@ -61,7 +61,7 @@ It's highly recommended to use these snippets along with Prettier/ESLint to have |
61 | 61 |
|
62 | 62 | ### Assignments |
63 | 63 |
|
64 | | -<table> |
| 64 | +<table width="100%"> |
65 | 65 |
|
66 | 66 | <tr> |
67 | 67 | <td>Prefix</td> |
@@ -180,7 +180,7 @@ const [$0] = ${1:array} |
180 | 180 |
|
181 | 181 | ### Flow control |
182 | 182 |
|
183 | | -<table> |
| 183 | +<table width="100%"> |
184 | 184 |
|
185 | 185 | <tr> |
186 | 186 | <td>Prefix</td> |
@@ -368,7 +368,7 @@ try { |
368 | 368 |
|
369 | 369 | ### Functions |
370 | 370 |
|
371 | | -<table> |
| 371 | +<table width="100%"> |
372 | 372 |
|
373 | 373 | <tr> |
374 | 374 | <td>Prefix</td> |
@@ -497,7 +497,7 @@ async ($1) => { |
497 | 497 |
|
498 | 498 | ### Loops |
499 | 499 |
|
500 | | -<table> |
| 500 | +<table width="100%"> |
501 | 501 |
|
502 | 502 | <tr> |
503 | 503 | <td>Prefix</td> |
@@ -606,7 +606,7 @@ while (${1:true}) { |
606 | 606 |
|
607 | 607 | ### Classes |
608 | 608 |
|
609 | | -<table> |
| 609 | +<table width="100%"> |
610 | 610 |
|
611 | 611 | <tr> |
612 | 612 | <td>Prefix</td> |
@@ -762,7 +762,7 @@ async ${1:name}($2) { |
762 | 762 |
|
763 | 763 | ### Promises |
764 | 764 |
|
765 | | -<table> |
| 765 | +<table width="100%"> |
766 | 766 |
|
767 | 767 | <tr> |
768 | 768 | <td>Prefix</td> |
@@ -907,7 +907,7 @@ Promise.any($1) |
907 | 907 |
|
908 | 908 | ### Modules |
909 | 909 |
|
910 | | -<table> |
| 910 | +<table width="100%"> |
911 | 911 |
|
912 | 912 | <tr> |
913 | 913 | <td>Prefix</td> |
@@ -1102,7 +1102,7 @@ export const ${1:name} = ($2) => {$0} |
1102 | 1102 |
|
1103 | 1103 | ### Array methods |
1104 | 1104 |
|
1105 | | -<table> |
| 1105 | +<table width="100%"> |
1106 | 1106 |
|
1107 | 1107 | <tr> |
1108 | 1108 | <td>Prefix</td> |
@@ -1263,7 +1263,7 @@ $1.filter(Boolean) |
1263 | 1263 |
|
1264 | 1264 | ### Objects |
1265 | 1265 |
|
1266 | | -<table> |
| 1266 | +<table width="100%"> |
1267 | 1267 |
|
1268 | 1268 | <tr> |
1269 | 1269 | <td>Prefix</td> |
@@ -1322,7 +1322,7 @@ Object.values($0) |
1322 | 1322 |
|
1323 | 1323 | ### Returns |
1324 | 1324 |
|
1325 | | -<table> |
| 1325 | +<table width="100%"> |
1326 | 1326 |
|
1327 | 1327 | <tr> |
1328 | 1328 | <td>Prefix</td> |
@@ -1371,7 +1371,7 @@ return ({$0}) |
1371 | 1371 |
|
1372 | 1372 | ### Operators, Expressions, Literals |
1373 | 1373 | Grouping them all together for now |
1374 | | -<table> |
| 1374 | +<table width="100%"> |
1375 | 1375 |
|
1376 | 1376 | <tr> |
1377 | 1377 | <td>Prefix</td> |
@@ -1610,7 +1610,7 @@ ${$1}$0 |
1610 | 1610 |
|
1611 | 1611 | ### Console |
1612 | 1612 |
|
1613 | | -<table> |
| 1613 | +<table width="100%"> |
1614 | 1614 |
|
1615 | 1615 | <tr> |
1616 | 1616 | <td>Prefix</td> |
@@ -1791,7 +1791,7 @@ console.warn('$1 ->', ${2:$1}) |
1791 | 1791 |
|
1792 | 1792 | ### Timers |
1793 | 1793 |
|
1794 | | -<table> |
| 1794 | +<table width="100%"> |
1795 | 1795 |
|
1796 | 1796 | <tr> |
1797 | 1797 | <td>Prefix</td> |
@@ -1858,7 +1858,7 @@ process.nextTick(() => { |
1858 | 1858 |
|
1859 | 1859 | ### JSON |
1860 | 1860 |
|
1861 | | -<table> |
| 1861 | +<table width="100%"> |
1862 | 1862 |
|
1863 | 1863 | <tr> |
1864 | 1864 | <td>Prefix</td> |
@@ -1917,7 +1917,7 @@ typeof ${1:value} === 'string' ? value : JSON.stringify($1) |
1917 | 1917 |
|
1918 | 1918 | ### DOM |
1919 | 1919 |
|
1920 | | -<table> |
| 1920 | +<table width="100%"> |
1921 | 1921 |
|
1922 | 1922 | <tr> |
1923 | 1923 | <td>Prefix</td> |
@@ -2014,7 +2014,7 @@ ${1:emitter}.on('${2:event}', (${3:arguments}) => { |
2014 | 2014 |
|
2015 | 2015 | ### Dates |
2016 | 2016 |
|
2017 | | -<table> |
| 2017 | +<table width="100%"> |
2018 | 2018 |
|
2019 | 2019 | <tr> |
2020 | 2020 | <td>Prefix</td> |
@@ -2049,7 +2049,7 @@ Date.now() |
2049 | 2049 |
|
2050 | 2050 | ### Testing |
2051 | 2051 |
|
2052 | | -<table> |
| 2052 | +<table width="100%"> |
2053 | 2053 |
|
2054 | 2054 | <tr> |
2055 | 2055 | <td>Prefix</td> |
@@ -2187,7 +2187,7 @@ afterEach(() => { |
2187 | 2187 |
|
2188 | 2188 | ### Types |
2189 | 2189 |
|
2190 | | -<table> |
| 2190 | +<table width="100%"> |
2191 | 2191 |
|
2192 | 2192 | <tr> |
2193 | 2193 | <td>Prefix</td> |
@@ -2282,7 +2282,7 @@ isNan($0) |
2282 | 2282 |
|
2283 | 2283 | ### Misc |
2284 | 2284 |
|
2285 | | -<table> |
| 2285 | +<table width="100%"> |
2286 | 2286 |
|
2287 | 2287 | <tr> |
2288 | 2288 | <td>Prefix</td> |
@@ -2353,7 +2353,7 @@ import.meta.env.$0 |
2353 | 2353 |
|
2354 | 2354 | ### Uncategorized |
2355 | 2355 | Will be sorted into appropriate categories in the future. |
2356 | | -<table> |
| 2356 | +<table width="100%"> |
2357 | 2357 |
|
2358 | 2358 | <tr> |
2359 | 2359 | <td>Prefix</td> |
@@ -2452,7 +2452,7 @@ Available only in .ts and .tsx files |
2452 | 2452 |
|
2453 | 2453 | ### Declarations |
2454 | 2454 |
|
2455 | | -<table> |
| 2455 | +<table width="100%"> |
2456 | 2456 |
|
2457 | 2457 | <tr> |
2458 | 2458 | <td>Prefix</td> |
@@ -2511,7 +2511,7 @@ const $1: ${2:object} = { $0 } |
2511 | 2511 |
|
2512 | 2512 | ### Types |
2513 | 2513 |
|
2514 | | -<table> |
| 2514 | +<table width="100%"> |
2515 | 2515 |
|
2516 | 2516 | <tr> |
2517 | 2517 | <td>Prefix</td> |
|
0 commit comments