I hereby claim:
- I am alextes on github.
- I am alextes (https://keybase.io/alextes) on keybase.
- I have a public key ASAOBVBj1U5OPQD2s6BMh4KqESqsMjRYJLNZT5PHLHs4Pgo
To claim this, I am signing this object:
{ | |
"name": "stream-rows", | |
"version": "1.0.0", | |
"main": "index.js", | |
"dependencies": { | |
"postgres": "^2.0.0-beta.10" | |
} | |
} |
Package: libws-commons-util-java | |
Status: install ok installed | |
Priority: optional | |
Section: java | |
Installed-Size: 101 | |
Maintainer: Ubuntu Developers <[email protected]> | |
Architecture: all | |
Version: 1.0.1-7 | |
Description: Common utilities from the Apache Web Services Project | |
This is a small collection of utility classes, that allow high |
I hereby claim:
To claim this, I am signing this object:
So you have a JavaScript project and want to start linting it, great! There are a couple choices you need to make and a few things you should know. I will try to make the process a breeze.
Before we dive in, there are two things you'll have to keep in mind:
./node_modules/.bin/eslint --init
you'll get a few options to kick-start configuration. I would encourage you to opt to Use a popular style guide
followed by picking the airbnb
one. It is the most popular style guide and I feel a great starting point. You can always overwrite the rules later.As of writing this (26-12-16) Node does not support Async / Await yet. To check if it does now head over to node.green. In case you're thinking, but the harmony flag!, yes, node at this moment has a harmony flag that enables an unstable implementation of Async / Await. It is however, for good reason marked unstable. Use features behind harmony flags for testing only. Not for things that will at any point in the future be deployed.
In short, babel lets you use next generation JavaScript today. If you want to use some language feature that is marked red on node.green or for other environments like browsers, one of these compatibility tables chances are Babel can get you there. The cost will be having to compile your source code from JavaScript to JavaScript. The difference being that some language features will be rewritten
// style 1 | |
function asynchronouslyConstructTransformedObject(order) { | |
return Promise.try(() => { | |
return Promise.props(Object.assign({}, order, { | |
date: order.date, | |
item: getItem(order.item), | |
payments: Promise.map(order.payments, (paymentObject) => { | |
return Promise.props({ | |
payment: getPayment(paymentObject.payment), | |
amountCents: paymentObject.amountCents, |