feat: add initial TypeScript and ESLint configurations for library and React applications

- Created TypeScript configuration files for library and React applications.
- Added ESLint configurations for library, React, and Storybook.
- Implemented a basic Button component in the UI package.
- Set up Vite for the docs development environment.
This commit is contained in:
Firman Ramdhani
2026-01-09 18:26:12 +07:00
parent ed949e4174
commit 554c5fbee3
83 changed files with 63031 additions and 42 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
module.exports = {
root: true,
ignorePatterns: ['.eslintrc.cjs'],
extends: ['@repo/eslint-config/index.js'],
extends: ['@repo/eslint-config/react.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
+15
View File
@@ -0,0 +1,15 @@
import { ReactNode } from 'react';
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
}
export function Button({ children, ...other }: ButtonProps): ReactNode {
return (
<button type="button" {...other}>
{children}
</button>
);
}
Button.displayName = 'Button';
+1
View File
@@ -2,3 +2,4 @@ export * from './header';
export * from './counter';
export * from './date-example';
export * from './encryption-demo';
export * from './button';