Skip to content

Commit 4ccbeaf

Browse files
authored
Resolve Unused Packages + Linting (#864)
1 parent 4a2403b commit 4ccbeaf

File tree

11 files changed

+49
-486
lines changed

11 files changed

+49
-486
lines changed

package-lock.json

Lines changed: 35 additions & 460 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102
"axe-core": "^4.10.2",
103103
"babel-plugin-module-resolver": "5.0.2",
104104
"eslint": "8.56.0",
105-
"eslint-config-google": "0.14.0",
106-
"eslint-config-love": "^62.0.0",
107105
"eslint-config-standard": "17.1.0",
108106
"eslint-plugin-import": "2.29.1",
109107
"eslint-plugin-jsx-a11y": "^6.10.2",
@@ -113,27 +111,22 @@
113111
"eslint-plugin-react-hooks": "4.6.0",
114112
"husky": "8.0.3",
115113
"jest": "29.7.0",
116-
"jest-canvas-mock": "^2.5.2",
117114
"jest-environment-jsdom": "29.7.0",
118115
"mkdirp": "^3.0.1",
119116
"postcss": "8.4.49",
120-
"pretty-quick": "^4.0.0",
121117
"rimraf": "5.0.5",
122118
"rollup": "4.28.0",
123119
"rollup-plugin-banner2": "1.3.0",
124120
"rollup-plugin-postcss": "^4.0.2",
125-
"rollup-plugin-scss": "^4.0.0",
126121
"sass": "^1.77.2",
127122
"sass-loader": "16.0.4",
128123
"storybook": "8.2.9",
129124
"stylelint": "^16.12.0",
130125
"stylelint-config-standard": "^36.0.1",
131126
"stylelint-config-standard-scss": "^14.0.0",
132127
"stylelint-config-tailwindcss": "^0.0.7",
133-
"stylelint-scss": "^6.10.0",
134128
"tailwindcss": "3.4.1",
135129
"ts-jest": "29.1.1",
136-
"ts-node": "^10.9.2",
137130
"tsx": "^4.17.0",
138131
"typescript": "5.7.2"
139132
},
@@ -147,4 +140,4 @@
147140
"react": "^18.2.0",
148141
"react-dom": "^18.2.0"
149142
}
150-
}
143+
}

src/components/ui/Em/stories/Em.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react"
1+
import React from 'react';
22
import Em, { EmProps } from '../Em';
33
import Heading from '../../Heading/Heading';
44

src/components/ui/Heading/stories/Heading.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react"
1+
import React from 'react';
22
import Heading from '../Heading';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
44

src/components/ui/HoverCard/stories/HoverCard.stories.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import React from 'react';
22
import HoverCard from '../HoverCard';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
44

5-
65
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
76
export default {
87
title: 'WIP/HoverCard',
98
component: HoverCard,
10-
render: (args: React.JSX.IntrinsicAttributes ) => {
9+
render: (args: React.JSX.IntrinsicAttributes) => {
1110
const Content = () => {
1211
return <div>
1312
<div className=' space-y-2'>
@@ -16,7 +15,7 @@ export default {
1615
</div>;
1716
};
1817
return <SandboxEditor className='bg-gray-200 h-[400px] flex items-center justify-center'>
19-
<HoverCard content={<Content />} {...args} >
18+
<HoverCard content={<Content />} {...args} >
2019
<div className="p-10 bg-gray-100 rounded-md shadow">Hover me</div>
2120
</HoverCard>
2221
</SandboxEditor>;
@@ -26,12 +25,12 @@ export default {
2625
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
2726
export const All = {
2827
args: {
29-
className:'text-gray-900 text-center'
28+
className: 'text-gray-900 text-center'
3029
}
3130
};
3231

3332
export const Controlled = {
3433
args: {
3534
open: true
3635
}
37-
};
36+
};

src/components/ui/Kbd/stories/Kbd.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react"
1+
import React from 'react';
22
import Kbd, { KbdProps } from '../Kbd';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
44

src/components/ui/Link/stories/Link.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react"
1+
import React from 'react';
22
import Link, { LinkProps } from '../Link';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
44

@@ -17,7 +17,7 @@ export default {
1717
export const All = {
1818
args: {
1919
className: '',
20-
href:"https://www.google.com",
21-
target:"_blank"
20+
href: 'https://www.google.com',
21+
target: '_blank'
2222
}
2323
};

src/components/ui/Separator/stories/Separator.stories.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { JSX, ClassAttributes, HTMLAttributes } from 'react';
2-
import Separator, {SeparatorProps} from '../Separator';
1+
import React, { JSX, ClassAttributes, HTMLAttributes } from 'react';
2+
import Separator, { SeparatorProps } from '../Separator';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
4-
import React from 'react';
54

65
const textClasses = 'text-gray-950 text-sm font-light';
76
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export

src/components/ui/Switch/stories/Switch.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { JSX, useState } from 'react';
1+
import React, { JSX, useState } from 'react';
22
import Switch, { SwitchProps } from '../Switch';
33
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
4-
import React from 'react';
54

65
export default {
76
title: 'Components/Switch',

src/components/ui/Tabs/stories/Tabs.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
44

55
import Button from '~/components/ui/Button/Button';
66

7-
87
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
98
export default {
109
title: 'WIP/Tabs',

0 commit comments

Comments
 (0)