aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-create-react-app/packages/ui
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-create-react-app/packages/ui')
-rw-r--r--examples/with-create-react-app/packages/ui/.eslintrc.js1
-rw-r--r--examples/with-create-react-app/packages/ui/package.json25
-rw-r--r--examples/with-create-react-app/packages/ui/src/Link.tsx20
-rw-r--r--examples/with-create-react-app/packages/ui/src/index.tsx4
-rw-r--r--examples/with-create-react-app/packages/ui/tsconfig.json5
5 files changed, 0 insertions, 55 deletions
diff --git a/examples/with-create-react-app/packages/ui/.eslintrc.js b/examples/with-create-react-app/packages/ui/.eslintrc.js
deleted file mode 100644
index 3f6c1e9..0000000
--- a/examples/with-create-react-app/packages/ui/.eslintrc.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("../eslint-config-custom");
diff --git a/examples/with-create-react-app/packages/ui/package.json b/examples/with-create-react-app/packages/ui/package.json
deleted file mode 100644
index e9aedab..0000000
--- a/examples/with-create-react-app/packages/ui/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "ui",
- "version": "0.0.0",
- "private": true,
- "license": "MIT",
- "sideEffects": false,
- "main": "./dist/index.js",
- "types": "./dist/index.d.ts",
- "scripts": {
- "build": "tsup src/index.tsx --format cjs --dts --external react",
- "clean": "rm -rf dist",
- "dev": "tsup src/index.tsx --format cjs --watch --dts --external react",
- "lint": "eslint \"src/**/*.ts*\""
- },
- "devDependencies": {
- "@types/react": "^17.0.13",
- "@types/react-dom": "^17.0.8",
- "eslint": "^8.4.1",
- "eslint-config-custom": "workspace:*",
- "react": "^17.0.2",
- "tsconfig": "workspace:*",
- "tsup": "^5.10.1",
- "typescript": "^4.5.3"
- }
-}
diff --git a/examples/with-create-react-app/packages/ui/src/Link.tsx b/examples/with-create-react-app/packages/ui/src/Link.tsx
deleted file mode 100644
index 416bac8..0000000
--- a/examples/with-create-react-app/packages/ui/src/Link.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import * as React from "react";
-
-interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
- children: React.ReactNode;
- href: string;
-}
-
-export const Link = (props: LinkProps) => {
- const { children, href, ...rest } = props;
-
- if (rest.target === "_blank") {
- rest.rel = "noopener noreferrer";
- }
-
- return (
- <a href={href} {...rest}>
- {children}
- </a>
- );
-};
diff --git a/examples/with-create-react-app/packages/ui/src/index.tsx b/examples/with-create-react-app/packages/ui/src/index.tsx
deleted file mode 100644
index c7aa624..0000000
--- a/examples/with-create-react-app/packages/ui/src/index.tsx
+++ /dev/null
@@ -1,4 +0,0 @@
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-import * as React from "react";
-
-export * from "./Link";
diff --git a/examples/with-create-react-app/packages/ui/tsconfig.json b/examples/with-create-react-app/packages/ui/tsconfig.json
deleted file mode 100644
index ad010d9..0000000
--- a/examples/with-create-react-app/packages/ui/tsconfig.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "extends": "tsconfig/react-library.json",
- "include": ["."],
- "exclude": ["dist", "node_modules"]
-}