Skip to content

Commit

Permalink
Migrate to the Airbnb code style (closes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dokmic committed Jan 22, 2020
1 parent e80c1f5 commit 97d33d9
Show file tree
Hide file tree
Showing 9 changed files with 538 additions and 526 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ npm install --save snowplow-analytics-sdk
## Usage
In your `app.js`:
```javascript
const transform = require('snowplow-analytics-sdk').transform;
const { transform } = require('snowplow-analytics-sdk');

module.exports.handler = input => {
let event = transform(
new Buffer(input.Records[0].kinesis.data, 'base64').toString('utf8')
new Buffer(input.Records[0].kinesis.data, 'base64').toString('utf8'),
);

// ...
Expand All @@ -36,7 +36,7 @@ import { transform } from 'snowplow-analytics-sdk';

export function handler(input: any) {
let event = transform(
new Buffer(input.Records[0].kinesis.data, 'base64').toString('utf8')
new Buffer(input.Records[0].kinesis.data, 'base64').toString('utf8'),
);

// ...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@babel/preset-env": "^7.0",
"@types/jest": "^24.0",
"codecov": "^3.0",
"gts": "^1.0",
"jest": "^24.0",
"js-beautify": "^1.0",
"rollup": "^1.23",
Expand All @@ -43,6 +42,7 @@
"rollup-plugin-typescript2": "^0.24",
"ts-jest": "^24.0",
"tslint": "^5.0",
"tslint-config-airbnb": "^5.0",
"typescript": "^3.0"
},
"jest": {
Expand Down
Loading

0 comments on commit 97d33d9

Please sign in to comment.