add customized yas-snippets
This commit is contained in:
10 files changed
+72
No files matched your search
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: eslint next line
|
||||
# key: ednl
|
||||
# --
|
||||
eslint-disable-next-line
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: prettier ignore comment
|
||||
# key: pi
|
||||
# --
|
||||
prettier-ignore
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: prettier ignore import
|
||||
# key: pioi
|
||||
# --
|
||||
// organize-imports-ignore
|
||||
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: react function component template in javascript
|
||||
# key: rfj
|
||||
# --
|
||||
const $1 = (${2:props}) => {
|
||||
return (
|
||||
$0
|
||||
);
|
||||
};
|
||||
|
||||
export default $1;
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: react function component template in typescript
|
||||
# key: rft
|
||||
# --
|
||||
import { FC } from 'react';
|
||||
|
||||
const $1: FC = (${2:props}) => {
|
||||
return (
|
||||
$0
|
||||
);
|
||||
};
|
||||
|
||||
export default $1;
|
||||
@@ -0,0 +1,20 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: react class component template
|
||||
# key: rtc
|
||||
# --
|
||||
import { Component } from 'react';
|
||||
|
||||
class $1 extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
$2
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
$0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default $1;
|
||||
@@ -0,0 +1 @@
|
||||
js-mode
|
||||
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: hugo
|
||||
# key: hh
|
||||
# --
|
||||
#+hugo_base_dir: $1
|
||||
#+hugo_section: ${2:post}
|
||||
#+hugo_auto_set_lastmod: t
|
||||
#+author:
|
||||
#+hugo_custom_front_matter: :author $3
|
||||
$0
|
||||
@@ -0,0 +1 @@
|
||||
js-mode
|
||||
@@ -0,0 +1 @@
|
||||
js-mode
|
||||
Reference in new issue
Block a user