Skip to content

Commit

Permalink
#62 Update edf snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
xabikos committed Apr 21, 2020
1 parent d03cde9 commit ac8a963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Below is a list of all available snippets and the triggers of each one. The **
| `mde→` | default module.exports `module.exports = {};`|
| `env→` | exports name variable `export const nameVariable = localVariable;` |
| `enf→` | exports name function `export const log = (parameter) => { console.log(parameter);};` |
| `edf→` | exports default function `export default (parameter) => { console.log(parameter);};` |
| `edf→` | exports default function `export default function fileName (parameter){ console.log(parameter);};` |
| `ecl→` | exports default class `export default class Calculator { };` |
| `ece→` | exports default class by extending a base one `export default class Calculator extends BaseClass { };` |

Expand Down
2 changes: 1 addition & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"exportDefaultFunction": {
"prefix": "edf",
"body": "export default (${1:params}) => {\n\t$0\n};\n",
"body": "export default function ${1:${TM_FILENAME_BASE}}(${2:params}) {\n\t$0\n};\n",
"description": "Export default function in ES6 syntax"
},
"exportClass": {
Expand Down

0 comments on commit ac8a963

Please sign in to comment.