Skip to content

Commit

Permalink
chore: bump prettier to 3.0.0
Browse files Browse the repository at this point in the history
* Adds extra check to format:check so these are fixed as well.
  • Loading branch information
phantomjinx authored and tadayosi committed Jul 11, 2023
1 parent 1f19538 commit 60f0c5b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "2.8.8"
"prettier": "3.0.0"
},
"config": {
"commitizen": {
Expand Down
6 changes: 5 additions & 1 deletion packages/hawtio/src/plugins/camel/properties/property.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export class Property {
constructor(public name: string, public value: string | null, public description: string) {}
constructor(
public name: string,
public value: string | null,
public description: string,
) {}

static sortByName(a: Property, b: Property) {
if (a.name < b.name) return -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export class TypeConvertersStats {
}

export class TypeConverter {
constructor(public from: string, public to: string) {
constructor(
public from: string,
public to: string,
) {
this.from = from
this.to = to
}
Expand Down
6 changes: 5 additions & 1 deletion packages/hawtio/src/plugins/shared/operations/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export class Operation {
export class OperationArgument {
readonly readableType: string

constructor(readonly name: string, readonly type: string, readonly desc: string) {
constructor(
readonly name: string,
readonly type: string,
readonly desc: string,
) {
this.readableType = this.buildReadableType()
}

Expand Down
17 changes: 10 additions & 7 deletions packages/hawtio/src/preferences/preferences-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ class PreferencesService implements IPreferencesService {
// Ideally, the preferences would be better organised under structured keys
// that would be provided to the preferences registry, so that a local storage
// complete clear operation and restore of hard-coded K/V pairs could be avoided.
const backup = STORAGE_KEYS_TO_PRESERVE.reduce((acc, key) => {
const value = localStorage.getItem(key)
if (value) {
acc[key] = value
}
return acc
}, {} as Record<string, string>)
const backup = STORAGE_KEYS_TO_PRESERVE.reduce(
(acc, key) => {
const value = localStorage.getItem(key)
if (value) {
acc[key] = value
}
return acc
},
{} as Record<string, string>,
)

localStorage.clear()

Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ __metadata:
eslint-config-react-app: ^7.0.1
eslint-plugin-import: ^2.26.0
eslint-plugin-react-hooks: ^4.6.0
prettier: 2.8.8
prettier: 3.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -15262,12 +15262,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:2.8.8":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
"prettier@npm:3.0.0":
version: 3.0.0
resolution: "prettier@npm:3.0.0"
bin:
prettier: bin-prettier.js
checksum: b49e409431bf129dd89238d64299ba80717b57ff5a6d1c1a8b1a28b590d998a34e083fa13573bc732bb8d2305becb4c9a4407f8486c81fa7d55100eb08263cf8
prettier: bin/prettier.cjs
checksum: 6a832876a1552dc58330d2467874e5a0b46b9ccbfc5d3531eb69d15684743e7f83dc9fbd202db6270446deba9c82b79d24383d09924c462b457136a759425e33
languageName: node
linkType: hard

Expand Down

0 comments on commit 60f0c5b

Please sign in to comment.