Skip to content

Commit e7606e5

Browse files
committed
Migrate koenig-lexical to TypeScript
1 parent b7f5c6e commit e7606e5

82 files changed

Lines changed: 123 additions & 207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/koenig-lexical/demo/components/FloatingButton.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react';
2-
31
interface FloatingButtonProps {
42
isOpen: boolean;
53
onClick: (view: string) => void;

packages/koenig-lexical/eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import js from '@eslint/js';
2+
import {defineConfig} from 'eslint/config';
23
import reactHooks from 'eslint-plugin-react-hooks';
34
import reactRefresh from 'eslint-plugin-react-refresh';
45
import tseslint from 'typescript-eslint';
56
import ghostPlugin from 'eslint-plugin-ghost';
67

7-
export default tseslint.config([
8+
export default defineConfig([
89
{ignores: ['dist/**', 'build/**', '.storybook/**']},
910
{
1011
files: ['**/*.{ts,tsx}'],

packages/koenig-lexical/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
"@storybook/builder-vite": "10.3.5",
7373
"@storybook/react": "10.3.5",
7474
"@storybook/react-vite": "10.3.5",
75-
"@storybook/test-runner": "^0.24.1",
7675
"@testing-library/dom": "10.4.1",
7776
"@testing-library/jest-dom": "6.9.1",
7877
"@testing-library/react": "16.3.2",
@@ -99,8 +98,6 @@
9998
"dompurify": "3.3.3",
10099
"dotenv": "17.4.1",
101100
"emoji-mart": "5.6.0",
102-
"eslint-config-react-app": "7.0.1",
103-
"eslint-plugin-jest": "29.15.0",
104101
"eslint-plugin-react": "7.37.5",
105102
"eslint-plugin-react-hooks": "5.2.0",
106103
"eslint-plugin-react-refresh": "0.4.24",

packages/koenig-lexical/src/components/ui/Button.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
3-
42
import {Button} from './Button';
53

64
const story = {

packages/koenig-lexical/src/components/ui/Button.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import clsx from 'clsx';
32

43
interface ButtonProps {

packages/koenig-lexical/src/components/ui/CardMenu.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
3-
42
import {
53
CardMenu,
64
CardMenuItem,

packages/koenig-lexical/src/components/ui/ColorPicker.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
32
import {ColorPicker} from './ColorPicker';
43

54
const story = {

packages/koenig-lexical/src/components/ui/Dropdown.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
3-
42
import {Dropdown} from './Dropdown';
53

64
const story = {

packages/koenig-lexical/src/components/ui/IconButton.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
3-
42
import DeleteIcon from '../../assets/icons/kg-trash.svg?react';
53
import {IconButton} from './IconButton';
64

packages/koenig-lexical/src/components/ui/Input.stories.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// @ts-nocheck
2-
import React from 'react';
3-
42
import {Input} from './Input';
53

64
const story = {

0 commit comments

Comments
 (0)