JavaScript Standard Style Snippets for Atom
Go to Atom > Preferences...
then search for JavaScript Standard Snippets
in the Packages
tab.
or..
apm install javascript-standard-snippets
This package is a fork of
- https://github.com/zenorocha/atom-javascript-snippets which is a fork of
- https://github.com/zenorocha/sublime-javascript-snippets which is a fork of
- https://github.com/jprichardson/sublime-js-snippets
So thanks to zenorocha for helping these snippets come full-circle.
Why not javascript-snippets
package? Because it doesn't adhere to
JavaScript Standard Style and doesn't
support ES2015.
console.dir(${1:obj})
console.error(${1:error})
console.log(${1:message})
process.exit(${1:code})
function ${1:methodName} (${2:arguments}) {
${0:// body...}
}
function (${1:arguments}) {
${0:// body...}
}
module.exports = ${1:name}
require('${1:module}')
assert.strictEqual(${1:actual}, ${2:expected})
assert.deepEqual(${1:actual}, ${2:expected})
describe('${1:description}', function () {
${0:// body...}
})
it('${1:description}', function (done) {
${0:// body...}
})
it('${1:description}', function () {
${0:// body...}
})
Wanna suggest new snippets? Excellent! First, make sure that they adhere to JavaScript Standard Style. This means that if you suggest that any of these snippets should have semicolons, your suggestion will be rejected :p
I have no intention of maintaining compability with my older sublime JavaScript snippet package.
This package will adhere to semver. This means until it's 1.0, you can and should expect breaking changes.
I'm particularly interested in ES6 (ES2015)/ES7 snippet suggestions.
Please don't suggest maintaining snippets for the sake of ES5 compatibility, it's not gonna happen.
- https://github.com/atom/language-javascript
- https://github.com/extrabacon/atom-turbo-javascript
- https://github.com/zenorocha/atom-javascript-snippets#afn-anonymous-function
MIT
Copyright (c) JP Richardson