Skip to content

Commit

Permalink
chore(*): Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Sep 3, 2019
1 parent 9ef7b84 commit 44c08ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/CHANGELOG.md
/coverage
/dist
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const logger = getLogger('encoda')
```javascript
// Handle the log messages in application code
addHandler((data: LogData) => {
// Send off to log output function
winstonLogger.log(LogLevel[data.level], data.message);
// or filter on tag
if (data.tag === 'encoda') {
// do something different
}
// Send off to log output function
winstonLogger.log(LogLevel[data.level], data.message)

// or filter on tag
if (data.tag === 'encoda') {
// do something different
}
})
```

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"/dist"
],
"scripts": {
"format": "npx prettier --write './**/*.{md,ts}'",
"lint": "eslint 'src/**/*.{ts,js}' --fix",
"test": "jest",
"test:cover": "jest --collectCoverage",
"build": "tsc index.ts --outDir dist --declaration"
Expand Down

0 comments on commit 44c08ab

Please sign in to comment.