Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Declare Required Modules As Const Instead Of Var
Browse files Browse the repository at this point in the history
Part of #345
  • Loading branch information
javierjmx committed Mar 29, 2016
1 parent b28af09 commit 8d131e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/language-javascript.cson
Expand Up @@ -103,7 +103,7 @@
'body': '/**\n * $1\n */$0'
'CommonJS require':
'prefix': 'req'
'body': 'var ${1:module} = require(\'${1:module}\');'
'body': 'const ${1:module} = require(\'${1:module}\');'
'Class':
'prefix': 'class'
'body': 'class ${1:ClassName} {\n\tconstructor($2) {\n\t\t$3\n\t}\n}'
Expand Down

0 comments on commit 8d131e0

Please sign in to comment.