feat(create-turbo): apply official-starter transform

This commit is contained in:
Turbobot
2025-02-08 13:41:40 -08:00
committed by ryan
parent 9fe2818df8
commit c158dda08f
48 changed files with 5621 additions and 24 deletions
+9
View File
@@ -0,0 +1,9 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ["@repo/eslint-config/react-internal.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
};
+21
View File
@@ -0,0 +1,21 @@
{
"name": "@repo/ui",
"version": "0.0.0",
"exports": {
"./button": "./src/button.tsx"
},
"scripts": {
"lint": "eslint \"**/*.ts*\" --max-warnings 0"
},
"devDependencies": {
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"eslint": "^8.57.0",
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"typescript": "5.5.4"
},
"dependencies": {
"react": "^18.2.0"
}
}
+7
View File
@@ -0,0 +1,7 @@
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
}
export const Button = ({ children, ...rest }: ButtonProps) => {
return <button {...rest}>{children}</button>;
};
+5
View File
@@ -0,0 +1,5 @@
{
"extends": "@repo/typescript-config/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}