update packages
This commit is contained in:
@@ -6,7 +6,7 @@ class ${1:Class}${2: extends ${3:ParentClass}} {
|
||||
${4:constructor(${5:arg}) {
|
||||
${6:super(arg);}
|
||||
$7
|
||||
}}
|
||||
\}}
|
||||
|
||||
$0
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: 3d2ddcac-d8c0-4b56-81a7-523eb6621442
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: console.log (formatted)
|
||||
# key: clo
|
||||
# group: console
|
||||
# --
|
||||
|
||||
console.log('${1:object}', ${1:object})
|
||||
console.log('$1: ', ${1:object})
|
||||
5
lisp/yasnippet-snippets/snippets/js-mode/error
Normal file
5
lisp/yasnippet-snippets/snippets/js-mode/error
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: new error
|
||||
# key: err
|
||||
# --
|
||||
new Error(${1:message});
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
for(let ${1:item} in ${2:object}) {
|
||||
${0}
|
||||
$0
|
||||
}
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
for(let ${1:item} of ${2:object}) {
|
||||
${0}
|
||||
$0
|
||||
}
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
${1:array}.forEach(${2:currentItem} => {
|
||||
${0}
|
||||
$0
|
||||
})
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
${1:methodName} = (${2:params}) => {
|
||||
${0}
|
||||
$0
|
||||
}
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
get ${1:propertyName}() {
|
||||
return this.${0}
|
||||
return this.${2:propertyName}
|
||||
}
|
||||
@@ -6,5 +6,5 @@
|
||||
# --
|
||||
|
||||
set ${1:propertyName}(${2:value}) {
|
||||
${0}
|
||||
$0
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: type-inline-comment
|
||||
# name: type-multiline-comment
|
||||
# key: *ty
|
||||
#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT)
|
||||
# --
|
||||
|
||||
Reference in New Issue
Block a user