add customized yas-snippets

This commit is contained in:
zedhugh committed 2022-11-25 00:53:28 +08:00
1 parent 860395da33
commit df702b9932
10 files changed
+72

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: eslint next line
# key: ednl
# --
eslint-disable-next-line
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: prettier ignore comment
# key: pi
# --
prettier-ignore
+5
View File
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: prettier ignore import
# key: pioi
# --
// organize-imports-ignore
+11
View File
@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: react function component template in javascript
# key: rfj
# --
const $1 = (${2:props}) => {
return (
$0
);
};
export default $1;
+13
View File
@@ -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;
+20
View File
@@ -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;
+1
View File
@@ -0,0 +1 @@
js-mode
+10
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
js-mode
+1
View File
@@ -0,0 +1 @@
js-mode