Skip to content

Commit 44c08ab

Browse files
committed
chore(*): Formatting
1 parent 9ef7b84 commit 44c08ab

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/CHANGELOG.md
2+
/coverage
3+
/dist

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ const logger = getLogger('encoda')
7373
```javascript
7474
// Handle the log messages in application code
7575
addHandler((data: LogData) => {
76-
// Send off to log output function
77-
winstonLogger.log(LogLevel[data.level], data.message);
78-
79-
// or filter on tag
80-
if (data.tag === 'encoda') {
81-
// do something different
82-
}
76+
// Send off to log output function
77+
winstonLogger.log(LogLevel[data.level], data.message)
78+
79+
// or filter on tag
80+
if (data.tag === 'encoda') {
81+
// do something different
82+
}
8383
})
8484
```
8585

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"/dist"
99
],
1010
"scripts": {
11+
"format": "npx prettier --write './**/*.{md,ts}'",
12+
"lint": "eslint 'src/**/*.{ts,js}' --fix",
1113
"test": "jest",
1214
"test:cover": "jest --collectCoverage",
1315
"build": "tsc index.ts --outDir dist --declaration"

0 commit comments

Comments
 (0)