Skip to content

Commit 35349e1

Browse files
committed
downgrade playground prettier
1 parent 219e692 commit 35349e1

File tree

7 files changed

+19
-17
lines changed

7 files changed

+19
-17
lines changed

package-lock.json

+12-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
"lint-staged": "^11.1.0",
175175
"minimist": "^1.2.5",
176176
"npm-run-all": "^4.1.5",
177-
"prettier": "^2.3.2",
177+
"prettier": "^2.8.8",
178178
"prettier-plugin-hermes-parser": "^0.26.0",
179179
"prettier-plugin-organize-attributes": "^0.0.5",
180180
"prettier-plugin-tailwindcss": "^0.4.1",

packages/lexical-headless/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function createHeadlessEditor(
3333
'blur',
3434
] as const;
3535

36-
unsupportedMethods.forEach((method: typeof unsupportedMethods[number]) => {
36+
unsupportedMethods.forEach((method: (typeof unsupportedMethods)[number]) => {
3737
editor[method] = () => {
3838
throw new Error(`${method} is not supported in headless mode`);
3939
};

packages/lexical-playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"katex": "^0.16.10",
3030
"lexical": "0.27.2",
3131
"lodash-es": "^4.17.21",
32-
"prettier": "^3.4.2",
32+
"prettier": "^2.8.8",
3333
"react": "^18.2.0",
3434
"react-dom": "^18.2.0",
3535
"react-error-boundary": "^3.1.4",

packages/lexical-table/src/LexicalTableCellNode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const TableCellHeaderStates = {
4141
};
4242

4343
export type TableCellHeaderState =
44-
typeof TableCellHeaderStates[keyof typeof TableCellHeaderStates];
44+
(typeof TableCellHeaderStates)[keyof typeof TableCellHeaderStates];
4545

4646
export type SerializedTableCellNode = Spread<
4747
{

packages/lexical/src/LexicalUpdates.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function collectBuildInformation(): string {
133133
} else if (editor) {
134134
let version = String(
135135
(
136-
editor.constructor as typeof editor['constructor'] &
136+
editor.constructor as (typeof editor)['constructor'] &
137137
Record<string, unknown>
138138
).version || '<0.17.1',
139139
);

packages/lexical/src/caret/LexicalCaret.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export type CaretDirection = 'next' | 'previous';
2222
/**
2323
* A type utility to flip next and previous
2424
*/
25-
export type FlipDirection<D extends CaretDirection> = typeof FLIP_DIRECTION[D];
25+
export type FlipDirection<D extends CaretDirection> =
26+
(typeof FLIP_DIRECTION)[D];
2627
/**
2728
* A sibling caret type points from a LexicalNode origin to its next or previous sibling,
2829
* and a child caret type points from an ElementNode origin to its first or last child.

0 commit comments

Comments
 (0)