Skip to content

Commit 5eb8546

Browse files
committed
docs: update README and Snippets.md for current behavior
1 parent 85b31ba commit 5eb8546

2 files changed

Lines changed: 147 additions & 109 deletions

File tree

README.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
[![Version](https://vsmarketplacebadge.apphb.com/version/dsznajder.es7-react-js-snippets.svg)](https://vsmarketplacebadge.apphb.com/version-short/dsznajder.es7-react-js-snippets.svg)
2-
[![Install](https://vsmarketplacebadge.apphb.com/installs/dsznajder.es7-react-js-snippets.svg)](https://vsmarketplacebadge.apphb.com/installs-short/dsznajder.es7-react-js-snippets.svg)
3-
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads/dsznajder.es7-react-js-snippets.svg)](https://vsmarketplacebadge.apphb.com/downloads-short/dsznajder.es7-react-js-snippets.svg)
4-
[![Ratings](https://vsmarketplacebadge.apphb.com/rating-short/dsznajder.es7-react-js-snippets.svg)](https://vsmarketplacebadge.apphb.com/rating-short/dsznajder.es7-react-js-snippets.svg)
5-
61
# VS Code ES7+ React/Redux/React-Native/JS snippets
72

83
JavaScript and React/Redux snippets in ES7+ with Babel plugin features for [VS Code](https://code.visualstudio.com/)
@@ -25,28 +20,21 @@ ext install dsznajder.es7-react-js-snippets
2520

2621
## Options
2722

28-
From version 4 extension provides options to customize the behavior of the snippets:
29-
30-
| Option | Description |
31-
| ---------------: | ---------------------------------------------------------------------------- |
32-
| languageScopes | list of supported languages / files recognition |
33-
| prettierEnabled | determines if snippets should be parsed with project prettier config |
34-
| importReactOnTop | If disabled, snippets won't contain `import React` on top. React 17+ support |
35-
| typescript | adds additional typescript snippets |
36-
37-
# Sponsors
23+
| Option | Description |
24+
| ----------------------: | ------------------------------------------------------------------------------------------------------ |
25+
| languageScopes | Comma-separated list of language scopes where snippets are available (default: `typescript,typescriptreact,javascript,javascriptreact`) |
26+
| importReactOnTop | Adds `import React` at the top of component snippets. Enable for legacy projects pre-React 17 (default: `false`) |
27+
| typescript | Adds TypeScript-specific component snippets (default: `true`) |
28+
| typescriptPropsStatePrefix | Controls `type` vs `interface` for TypeScript Props/State (default: `type`) |
3829

39-
<p><a title="Try CodeStream" href="https://sponsorlink.codestream.com/?utm_source=vscmarket&amp;utm_campaign=es7_react&amp;utm_medium=banner"><img src="https://alt-images.codestream.com/codestream_logo_es7_react.png"></a></br>
40-
Manage pull requests and conduct code reviews in your IDE with full source-tree context. Comment on any line, not just the diffs. Use jump-to-definition, your favorite keybindings, and code intelligence with more of your workflow.<br> <a title="Try CodeStream" href="https://sponsorlink.codestream.com/?utm_source=vscmarket&amp;utm_campaign=es7_react&amp;utm_medium=banner">Learn More</a></p>
41-
42-
<br>
30+
**Note:** Changing settings requires a VS Code restart to take effect.
4331

4432
### Conquer of Completion
4533

4634
It is possible to use this package in your vim/neovim text editor, to make this possible, make sure you have the `coc.nvim` previously configured, then add this command to your `init.vim`
4735

4836
```shell
49-
Plug 'dsznajder/vscode-es7-javascript-react-snippets', { 'do': 'yarn install --frozen-lockfile && yarn compile' }
37+
Plug 'r5n-labs/vscode-react-javascript-snippets', { 'do': 'yarn install --frozen-lockfile && yarn compile' }
5038
```
5139
5240
Update your vim / neovim settings with `:source %` and then install the new package with `:PlugInstall`
@@ -60,7 +48,7 @@ Note: This example uses `vim-plug` as a package manager, feel free to use some o
6048
For use with packer the syntax is a little different. Just add in your `init.vim` or `init.lua`:
6149
6250
```shell
63-
use {'dsznajder/vscode-es7-javascript-react-snippets',
51+
use {'r5n-labs/vscode-react-javascript-snippets',
6452
run = 'yarn install --frozen-lockfile && yarn compile'
6553
}
6654
```

0 commit comments

Comments
 (0)