Skip to content

Commit 18e2554

Browse files
committed
Upgrade to latest Prettier
1 parent 9fa2d36 commit 18e2554

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"markov_draftjs": "^2.0.1",
9090
"mkdirp": "^1.0.4",
9191
"normalize.css": "^8.0.1",
92-
"prettier": "^2.7.1",
92+
"prettier": "^2.8.8",
9393
"prismjs": "^1.28.0",
9494
"puppeteer": "^14.3.0",
9595
"react": "^16.14.0",

src/api/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export const BLOCK_TYPE = {
1616
ATOMIC: "atomic",
1717
} as const;
1818

19-
export type BlockType = typeof BLOCK_TYPE[keyof typeof BLOCK_TYPE];
19+
export type BlockType = (typeof BLOCK_TYPE)[keyof typeof BLOCK_TYPE];
2020

2121
export const ENTITY_TYPE = {
2222
LINK: "LINK",
2323
IMAGE: "IMAGE",
2424
HORIZONTAL_RULE: "HORIZONTAL_RULE",
2525
} as const;
2626

27-
export type EntityType = typeof ENTITY_TYPE[keyof typeof ENTITY_TYPE];
27+
export type EntityType = (typeof ENTITY_TYPE)[keyof typeof ENTITY_TYPE];
2828

2929
// See https://github.com/facebook/draft-js/blob/master/src/model/immutable/DefaultDraftInlineStyle.js
3030
export const INLINE_STYLE = {
@@ -44,7 +44,7 @@ export const INLINE_STYLE = {
4444
SUBSCRIPT: "SUBSCRIPT",
4545
} as const;
4646

47-
export type InlineStyle = typeof INLINE_STYLE[keyof typeof INLINE_STYLE];
47+
export type InlineStyle = (typeof INLINE_STYLE)[keyof typeof INLINE_STYLE];
4848

4949
const BLOCK_TYPES = Object.values(BLOCK_TYPE);
5050
const ENTITY_TYPES = Object.values(ENTITY_TYPE);
@@ -62,7 +62,7 @@ export const KEY_COMMANDS = [
6262
"code",
6363
] as const;
6464

65-
export type KnownKeyCommand = typeof KEY_COMMANDS[number];
65+
export type KnownKeyCommand = (typeof KEY_COMMANDS)[number];
6666

6767
export const FONT_FAMILY_MONOSPACE =
6868
"Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif";

0 commit comments

Comments
 (0)