Skip to content

Commit

Permalink
Upgrade to latest Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Feb 11, 2025
1 parent 9fa2d36 commit 18e2554
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"markov_draftjs": "^2.0.1",
"mkdirp": "^1.0.4",
"normalize.css": "^8.0.1",
"prettier": "^2.7.1",
"prettier": "^2.8.8",
"prismjs": "^1.28.0",
"puppeteer": "^14.3.0",
"react": "^16.14.0",
Expand Down
8 changes: 4 additions & 4 deletions src/api/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export const BLOCK_TYPE = {
ATOMIC: "atomic",
} as const;

export type BlockType = typeof BLOCK_TYPE[keyof typeof BLOCK_TYPE];
export type BlockType = (typeof BLOCK_TYPE)[keyof typeof BLOCK_TYPE];

export const ENTITY_TYPE = {
LINK: "LINK",
IMAGE: "IMAGE",
HORIZONTAL_RULE: "HORIZONTAL_RULE",
} as const;

export type EntityType = typeof ENTITY_TYPE[keyof typeof ENTITY_TYPE];
export type EntityType = (typeof ENTITY_TYPE)[keyof typeof ENTITY_TYPE];

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

export type InlineStyle = typeof INLINE_STYLE[keyof typeof INLINE_STYLE];
export type InlineStyle = (typeof INLINE_STYLE)[keyof typeof INLINE_STYLE];

const BLOCK_TYPES = Object.values(BLOCK_TYPE);
const ENTITY_TYPES = Object.values(ENTITY_TYPE);
Expand All @@ -62,7 +62,7 @@ export const KEY_COMMANDS = [
"code",
] as const;

export type KnownKeyCommand = typeof KEY_COMMANDS[number];
export type KnownKeyCommand = (typeof KEY_COMMANDS)[number];

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

0 comments on commit 18e2554

Please sign in to comment.