Skip to content

Commit

Permalink
chore: upgrade prettier to 2.0
Browse files Browse the repository at this point in the history
default arrowParens is now always
upgraded ts-node
  • Loading branch information
dpinol committed Mar 26, 2020
1 parent 63e4bea commit 2693f85
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"jsxSingleQuote": true,
"semi": false,
"tabWidth": 2,
"trailingComma": "es5"
"trailingComma": "es5",
"arrowParens": "avoid"
}
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"jest": "^25.1.0",
"jest-each": "^25.1.0",
"lerna": "^3.19.0",
"prettier": "^1.19.1",
"prettier": "^2.0.2",
"ts-jest": "^25.2.1",
"ts-mockito": "^2.5.0",
"ts-node": "^8.6.2",
"tslib": "^1.10.0",
"ts-node": "^8.8.1",
"tslib": "^1.11.1",
"typescript": "^3.8.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Uploading...
}
// Show the current bot in credentials at top of the list
const first_id = this.botonicApiService.bot.id
bots.sort(function(x, y) {
bots.sort(function (x, y) {
return x.id == first_id ? -1 : y.id == first_id ? 1 : 0
})
return this.selectExistentBot(bots)
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function sleep(ms: number) {
}

async function sh(cmd) {
return new Promise(function(resolve, reject) {
return new Promise(function (resolve, reject) {
exec(cmd, (err, stdout, stderr) => {
if (err) {
reject(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CachedClientApi implements ReducedClientApi {
primitive: true,
maxAge: cacheTtlMs,
length,
normalizer: function(...args: any): string {
normalizer: function (...args: any): string {
return args
.map((arg: any) => JSON.stringify(arg))
.reduce((a: any, b: any) => a + b)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export class CsvImport {
continue
}
console.log(
`Importing '${record.Model}' field '${record.Code.trim() ||
record.Id}.${record.Field}'`
`Importing '${record.Model}' field '${
record.Code.trim() || record.Id
}.${record.Field}'`
)
await this.importer.consume(record)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class Track extends TrackKey {

// https://metisai.atlassian.net/browse/HTYPE-1881
const proto = Object.getPrototypeOf(this)
const sym = Object.getOwnPropertySymbols(proto).find(function(s) {
const sym = Object.getOwnPropertySymbols(proto).find(function (s) {
return String(s) === DynamoDbSchema.toString()
}) as symbol
schema = (proto as any)[sym]
Expand Down

0 comments on commit 2693f85

Please sign in to comment.