Support additional JS snippets
Because React + Redux + Flow = SO MUCH BOILERPLATE...
This commit is contained in:
parent
fc283b7a23
commit
3d256c6b3b
3 changed files with 15 additions and 0 deletions
5
emacs.d/snippets/rjsx-mode/action-extractor
Normal file
5
emacs.d/snippets/rjsx-mode/action-extractor
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: exactness
|
||||
# key: $x
|
||||
# --
|
||||
$Exact<$Call<typeof $1>>
|
5
emacs.d/snippets/rjsx-mode/redux-action
Normal file
5
emacs.d/snippets/rjsx-mode/redux-action
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: redux-action
|
||||
# key: rax
|
||||
# --
|
||||
export const ${1:$$(lower->caps yas-text)} = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'
|
5
emacs.d/snippets/rjsx-mode/typed-redux-action
Normal file
5
emacs.d/snippets/rjsx-mode/typed-redux-action
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: typed-redux-action
|
||||
# key: trax
|
||||
# --
|
||||
export const ${1:$$(lower->caps yas-text)}: '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}' = '`(downcase (buffer-dirname))`/${1:$(caps->kebab yas-text)}'
|
Loading…
Reference in a new issue