You should use js
as syntax name since Sublime Text defines JavaScript scope as source.js
. In future, you should use source.(SYNTAX_NAME)
part for syntax name.
And you shouldn’t use abbreviations
section for snippets since abbreviations defines element blocks and should be written as HTML element. Use snippets
section.
Note that in JS files in ST editor you have to use Ctrl+E to expand abbreviations since Tab key is disabled for this syntax.
And, as Protractor Ninja noted, it’s not a good idea to use Emmet snippets in editors that supports native ones.