Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/mlaursen/vim-react-snippets

Useful snippets for developing in React (Javascript and Typescript)
https://github.com/mlaursen/vim-react-snippets

feat!(typescript): Stop using FC Utility Type

Using the FC utility type from React seems to be a no-no from the
React/Typescript community sin...

a71e8e7183a38a469fef42d0066108eec45cbe23 authored over 4 years ago by Mikkel Laursen <[email protected]>
fix(useEA): Tab order to be a bit more logical

89f09b464d0bb9aefef50b71d49200edb0cb11db authored over 4 years ago by Mikkel Laursen <[email protected]>
fix(useEA): always added dependency array for useEA

You'll never really want to trigger an async effect each render,
so the useEA hook will always d...

50c2c02a9091c5edf755cf48826496eec9e3fe94 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(semi): removed all semicolons by default

Updated all the snippets to remove semi colons by default since it makes
it easier to use multip...

bb436a8155b072a20203fe9902f2c872c75f669e authored over 4 years ago by Mikkel Laursen <[email protected]>
feat: new `useEA` hook for useEffect async

b85135e7b890160b0288ea8d571e2d778413344c authored over 4 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): upgraded dev dependencies

038082f158fef36676b1acee95306dabbd9e1d12 authored over 4 years ago by Mikkel Laursen <[email protected]>
Updated ffce to export interface

00582a7a5c1c4bc2cf6fec5d5d19c24e4de4e0ef authored over 4 years ago by Mikkel Laursen <[email protected]>
BREAKING: Updated ffce to always be a named export

This is really because I use it so much for my react-md project
for adding prop-types to Typescr...

f6309d0cd7f3fce47c47df2c5a7690d0ea7a8619 authored over 4 years ago by Mikkel Laursen <[email protected]>
Upgraded dependencies

10059d227c66ebec03ba20bfc064c10ae7456d17 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Bump minimist from 1.2.0 to 1.2.5 (#6)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](h...

dd3719267ee9abc8f0cf7b4eeb6e4912970128f0 authored almost 5 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updated Readme TOC

fbd84f9873929541840fba68487628b7fcc0cd4d authored almost 5 years ago by Mikkel Laursen <[email protected]>
Parital Revert "Breaking Changes for Typescript FC and fref"

This reverts commit e378431c10c74ae62ec31eeba0afa322a131e576.

Switched back to FC for the funct...

6f89b9b7d46084f6c5b2df7e7368729ff8965ca9 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Added expect snapshot (es) snippet

2fa854e3fc2706d81d80590bf30a56773c0bd149 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Breaking Changes for Typescript FC and fref

The FC type isn't actually very helpful after extended usage of this.
The fce, sfce, and fc snip...

e378431c10c74ae62ec31eeba0afa322a131e576 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Removed cleanup from test snippets

The current version of @testing-library automatically runs cleanup now
so the afterEach(cleanup)...

9dbce2228f4ce5d1926cf318a1427dc14daa34d7 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Fixed typos for Static PropTypes example in README.

2ce7c4fbfc57d35a276d6df4536d204d2ad10567 authored about 5 years ago by Mikkel Laursen <[email protected]>
Added support for javascriptreact

Since vim now uses javascriptreact and typescriptreact file times for
.jsx and .tsx, I added "of...

0fd370dbf46c3b8f8dc72bca50e3cce47e3a1af3 authored about 5 years ago by Mikkel Laursen <[email protected]>
Fixed quotes for typescript which broke ultisnips

3c4a4680a6d4b5f05ba90583de4f724c5201bd68 authored about 5 years ago by Mikkel Laursen <[email protected]>
Fixed typo and link to my .vimrc

0f8c3a4e3095d8f712a103e7c19a67e680fbdf0e authored about 5 years ago by Mikkel Laursen <[email protected]>
Updated packages for security fixes

4e33643828de00e230affc7ceb82ebb62dccbe92 authored about 5 years ago by Mikkel Laursen <[email protected]>
Added it.todo and removed console semicolon

Removed the semicolons from the console snippets since it can be helpful
to render these inline ...

d8e7ed99bd0b13ab0b3960e77a411dd5bd04d3fc authored over 5 years ago by Mikkel Laursen <[email protected]>
Fixed the inline hook snippets to actually work inline -_-

cc149d5e6c3761c9dcf163a1c568e8ed48856833 authored over 5 years ago by Mikkel Laursen <[email protected]>
Added more "inline" hook snippets

Updated `useM`, `useR`, `useCB` and `useC` so they can be used like:

const anything = useM
cons...

56da6a252bdf433c287bf3003579f4e7aa0a4775 authored over 5 years ago by Mikkel Laursen <[email protected]>
BREAKING: Upgraded to @testing-library/react

Updated the testing hooks to use the @testing-library/react and
@testing-library/react-hooks to ...

935cf4b6688242b744aa58403d8a4398fa321715 authored over 5 years ago by Mikkel Laursen <[email protected]>
Added new `exp` snippet

Added a new export snippet to export the default from a folder. This is
useful for folder index....

520040608ade6fbe60c079e5b79f83e930f5baee authored over 5 years ago by Mikkel Laursen <[email protected]>
Added scss module import shortcut as ism

dd3514b5e0e34b679d75ceb8cf8721863c540ecb authored over 5 years ago by Mikkel Laursen <[email protected]>
Updated dev dependencies for security alert fixes

25a4d2c32a4baf73db322a47736f53b433f32de4 authored over 5 years ago by Mikkel Laursen <[email protected]>
Switched Typescript FunctionComponent to FC

Updated the FunctionComponent to be the shorthand FC instead.

2125c4c0d8db8d3f98e66adb949302067c5a78ee authored over 5 years ago by Mikkel Laursen <[email protected]>
Fixed the react-hooks-test-file snippet

f2350ccbad54f8ff86fac111f021f7e465fc955a authored over 5 years ago by Mikkel Laursen <[email protected]>
Fixed some of the priority issues for snippets with the same name

a7f1c0fe47bb53260664f9c3c2093ae7f1148273 authored over 5 years ago by Mikkel Laursen <[email protected]>
Fixed hook test file snippets

5a5fcfd377ca8ab5cd84f4b15336cecd9288e2f9 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Fixed the react test snippets braces

94fa30937935bcd30e4e6ee9fcedb51bb604c29f authored almost 6 years ago by Mikkel Laursen <[email protected]>
Attempting to add screencasts to readme

Fixed some snippet documentation and added forwardRef to TS

Added hooks example

Tab -> spaces ...

5362a5d3b1ee57bf9ba2aa6b560132a4d19cf923 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Added breaking changes, but much better readme

a944ce30559f1e97f12ef8f5af35240f3aaf994f authored almost 6 years ago by Mikkel Laursen <[email protected]>
Updated useCallback to always provide empty array as second arg by default

2dc4b0d95a9bfde7d79bb92ceba8874ad8c4a494 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Updated typescript component default props

d3f2bfe29c1cf57a8a3c6cfcbc70a6a51e6469e1 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Changed the tabstop for sfc so that you can swap out braces

3ed84339ad1798e4029ef34319a853ecb5af527c authored almost 6 years ago by Mikkel Laursen <[email protected]>
Stopped creating interfaces with an I prefix

1a85b250c9624f545ce31066c3c7214c31ce95f0 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Logic tab order updates and hook fixes

=== General

Updated the logical tab order for the new react hooks to be more left to
right inst...

50ec794a5c95005e244913792c10d55135251dd8 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Some more hook type changes

295fafc7a25d009cdbd6b4ebf87ac2f861430c2f authored almost 6 years ago by Mikkel Laursen <[email protected]>
Updated new hook snippets to only work at start of lines

7857dfcd90068f24038a55b91d162fce5d955d37 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Added snippets for React Hooks

JavaScript and Typescript snippets:

- `useS` - useState
- `useE` - useEffect
- `useC` - useCont...

aba1fa73d22b8d965dd23e6ca806efbe6cf7ad53 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Fixed spelling of ErrorInfo in typescript snippet

69862d53bf9ed88f21a8aeacf070407bc2f812bc authored almost 6 years ago by Mikkel Laursen <[email protected]>
Updated Typescript react class exports

Updated:
- `rce` will now mimic the javascript version entirely without
definining any prop or s...

13ae11162ad9b7e0d438e808514386500a733ab0 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Removed the unused capscore util

b796de02bd35fcbd6045c7c4e4e5a6b93f5c1348 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Added `sfc` for simple function component

The simple function component just does not use props and does not
declare a prop interface with...

a7e143357ad2178c86bf718a5af080bc40a71dcc authored almost 6 years ago by Mikkel Laursen <[email protected]>
Prefixed React Events with React. again to fix namespace issues

6ac07dc9ca87d0f8280a3a15c437f7faa977bb62 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Changed Typescript React import style

Changed the react import style from using:
`import * as React from "react"` to
`import React, { ...

41d0bf3d732dec45cf7e9deadf5fb2b5c0127289 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Added more console snippeets

b2cdc9df5a03ba96e7c2eae869ab9681e8364f84 authored almost 6 years ago by Mikkel Laursen <[email protected]>
More Typescript lifecycle snippet fixes

84f38aaf9c8063486aed4701a627f6c79c98e9e2 authored about 6 years ago by Mikkel Laursen <[email protected]>
Fixed typescript tab order for getDerivedStateFromProps

a292c184080c8d4be1a47f483b67aa80f31e8a67 authored about 6 years ago by Mikkel Laursen <[email protected]>
More small changes

c49c5f6de9a6d14f55844330ec161ce59e4a880a authored about 6 years ago by Mikkel Laursen <[email protected]>
Added get derived state from error

0a0df7ab0ad496cb9c05feb5fe9e202b776785a8 authored about 6 years ago by Mikkel Laursen <[email protected]>
Fixed getSnapshotBeforeUpdate for javascript snippets

b60613ac9c1d3352b97b0565c1e726e1eda74d64 authored about 6 years ago by Mikkel Laursen <[email protected]>
Removed sfc and created fc since SFC isn't a thing anymore

c52ba11113f967957885b665452f4f641ce26eca authored about 6 years ago by Mikkel Laursen <[email protected]>
Added sfcnp and remove executability for javascript.snippets

c565b68706cd32e2e9103e462f8506f2679e29a3 authored over 6 years ago by Mikkel Laursen <[email protected]>
exp* -> expa for javascript

76755f607fe188c2cacd24e0b514a495b80a7f5b authored over 6 years ago by Mikkel Laursen <[email protected]>
Added breaking changes

- removed `imps` as it was never used
- removed `exp` and renamed to `expf` to match impf
- remo...

9ad187fc538553d692511e5c251f83cf7af65592 authored over 6 years ago by Mikkel Laursen <[email protected]>
Changed imp* and exp* to impa expa

24dce72034c4bfd3d170b6759b282124428e6b04 authored over 6 years ago by Mikkel Laursen <[email protected]>
Another typescript fix

4cb4038a436227af578afc2186f597964533ce23 authored over 6 years ago by Mikkel Laursen <[email protected]>
Small changes again to typescript

bce6538cdd395b5dd336613d75d67e38887d283d authored over 6 years ago by Mikkel Laursen <[email protected]>
More typescript snippet fixes

610f6dca27bbba9bb26c2d29ce3e2704b77846fe authored over 6 years ago by Mikkel Laursen <[email protected]>
Also created typescriptreact snippets

2da4df560f0029055324fd375de4a0d59e124db5 authored over 6 years ago by Mikkel Laursen <[email protected]>
Added some typescript snippets

8a1d1a1a0ed4cd337e5ca8ed5ed6525eed51e147 authored over 6 years ago by Mikkel Laursen <[email protected]>
Fixed some stuff about typescriptreact snippets

8c793c0f4db5399304a4973344c091758a8569e7 authored over 6 years ago by Mikkel Laursen <[email protected]>
Updated Snippets **REMOVED SOME SNIPPETS**

This is not backwards compatible, so sorry for anyone that is using this
as well.

I have remove...

a9926a5daaefc0357ba054471c44ffd81949c806 authored over 6 years ago by Mikkel Laursen <[email protected]>
Added some new stuff

981c3102c5f152d4b26bfadfb78134d828c95b10 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated snippets for react 15.5

7a1bcb5d6fe4c0f6cb7f60d13d0d8bdaeb0c1324 authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed missing semicolon

6855b0e5836410a1d1c457bb4baaf2d7486764ef authored over 7 years ago by Mikkel Laursen <[email protected]>
Blah markdown

ec8f4eba37a8298c53613c8247dc44585a03e88f authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated fluxit

daf0093f67a0045406a3075d18b04bab8f782206 authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed some endings and the Flux Class Export one

32872977c635083416334a2ce086ac12a67c6a73 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated readme

2cde390e64c494ebe4f357de22275ece4a1cebe0 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated readme for helpign with other plugins

eed3f7a6d2e912dfad474d480c92d4257702b6ac authored over 7 years ago by Mikkel Laursen <[email protected]>
Blah markdown

0b5c525906b838902430a06a0deebcba94ddd115 authored over 7 years ago by Mikkel Laursen <[email protected]>
Added exports

814130afe6409d6167944b4c82bc6d01f84d42c3 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated snippets to just be react related and importing jank

8efa0d46ec0e715914ec1b20ab22f7b2a63f32c6 authored over 7 years ago by Mikkel Laursen <[email protected]>
Added semi colons and console log variable

3c1fec80e650220ca4ce0191fcfb83ea72266d54 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated readme for fixing jsx syntax in js files and added auto file name additions for snippets

9bd67dce07fede348e89361a0504b5b627ebb5b8 authored over 7 years ago by Mikkel Laursen <[email protected]>
Add shape to cheat sheet.

70575b10c57a771054f8755b50e5d4931f41cd81 authored over 7 years ago by Mikkel Laursen <[email protected]>
Added require proto

444a35ef1c7d93b951f123bfab946efe488a36a0 authored over 7 years ago by Mikkel Laursen <[email protected]>
proptype shortcuts

f8b0bd6682c5c9162c7b9b3b6041c396e7caf877 authored over 7 years ago by Mikkel Laursen <[email protected]>
Moved to es6

2d10e6ce244d850efd73ad149cdc6ef601acbb5f authored over 7 years ago by Mikkel Laursen <[email protected]>
Added the snippets and a decent amount of the readme

ee70a4d001ea3c7f63fec70ac71edefe468ff0e3 authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed typos in readme

dbc218fa44183b5680c9fde42460d1d693110d18 authored over 7 years ago by Mikkel Laursen <[email protected]>
Ok. Couldn't do bolding an italics in code

07891332dd9a49a322357eac6f57d151b585e3f8 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated immutablea nd addeded some missing semicolons

f0fe8468ec79e9ac87fd3f60f3ebd3361bc2ec20 authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed some of the snippets

44b478d6ce5d4c51273d74034179d841d5da45bb authored over 7 years ago by Mikkel Laursen <[email protected]>
3rd time is the charm?

6717e411c055a31644960c3f08ccbeb3e17b15e4 authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated for react doc and some node require stuff

73b25e206093d7b4a417db7801e5b126b77f0f0e authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed the missing endglobal

dd97a176448859a9154648d66a653100ce2f6275 authored over 7 years ago by Mikkel Laursen <[email protected]>
Iunno

what happened

38a5c2652f8cfcd7f36bf9d040cd0c6609f5270c authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed flux store export

22b9a81c7f6189eb36d50cd62494638661accaec authored over 7 years ago by Mikkel Laursen <[email protected]>
Updated fluxit props to match the massed down state

dd4afda78eacba2e6eae03f3bdba52fc89c70f77 authored over 7 years ago by Mikkel Laursen <[email protected]>
Added more fluxy stuffs

5de043103c742e6b9a6a45ff780acabdf01d979a authored over 7 years ago by Mikkel Laursen <[email protected]>
Hopefully added examples in the correct markdown

c282a2356378673ffaba7dba2a5edbd00d62f825 authored over 7 years ago by Mikkel Laursen <[email protected]>
Sorta fixed constants cap casing with underscores

19693605dad0c6695c0856fca47eaef1e3aef772 authored over 7 years ago by Mikkel Laursen <[email protected]>
Spelling error..

52bfa75641277cca3f43b12fbc3c8108120b6c1b authored over 7 years ago by Mikkel Laursen <[email protected]>
Fixed spelling and reminders about dos2unix

3d5bec79492c826e40e8de3a7c205fa51aea9537 authored over 7 years ago by Mikkel Laursen <[email protected]>
Hopefully fixed links

edf91cd0e70a31e526e0f65d0aa2c1b99541daf8 authored over 7 years ago by Mikkel Laursen <[email protected]>