aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-create-react-app/packages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-create-react-app/packages')
-rw-r--r--examples/with-create-react-app/packages/eslint-config-custom/index.js16
-rw-r--r--examples/with-create-react-app/packages/eslint-config-custom/package.json16
-rw-r--r--examples/with-create-react-app/packages/tsconfig/README.md3
-rw-r--r--examples/with-create-react-app/packages/tsconfig/base.json20
-rw-r--r--examples/with-create-react-app/packages/tsconfig/package.json9
-rw-r--r--examples/with-create-react-app/packages/tsconfig/react-app.json17
-rw-r--r--examples/with-create-react-app/packages/tsconfig/react-library.json11
-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
12 files changed, 0 insertions, 147 deletions
diff --git a/examples/with-create-react-app/packages/eslint-config-custom/index.js b/examples/with-create-react-app/packages/eslint-config-custom/index.js
deleted file mode 100644
index 74c5b1e..0000000
--- a/examples/with-create-react-app/packages/eslint-config-custom/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- extends: [
- "eslint:recommended",
- "plugin:@typescript-eslint/recommended",
- "plugin:react/recommended",
- "turbo",
- "prettier",
- ],
- plugins: ["@typescript-eslint"],
- parser: "@typescript-eslint/parser",
- settings: {
- react: {
- version: "detect",
- },
- },
-};
diff --git a/examples/with-create-react-app/packages/eslint-config-custom/package.json b/examples/with-create-react-app/packages/eslint-config-custom/package.json
deleted file mode 100644
index 8eb5702..0000000
--- a/examples/with-create-react-app/packages/eslint-config-custom/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "eslint-config-custom",
- "version": "0.0.0",
- "license": "MIT",
- "main": "index.js",
- "dependencies": {
- "@typescript-eslint/eslint-plugin": "^5.30.5",
- "@typescript-eslint/parser": "^5.30.5",
- "eslint-config-prettier": "^8.3.0",
- "eslint-plugin-react": "^7.30.1",
- "eslint-config-turbo": "latest"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/examples/with-create-react-app/packages/tsconfig/README.md b/examples/with-create-react-app/packages/tsconfig/README.md
deleted file mode 100644
index 6ef3b81..0000000
--- a/examples/with-create-react-app/packages/tsconfig/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# `tsconfig`
-
-This is the Turborepo shared `tsconfig.json` from which all others `tsconfig.json`s inherit from. Making changes to this may have unintended consequences.
diff --git a/examples/with-create-react-app/packages/tsconfig/base.json b/examples/with-create-react-app/packages/tsconfig/base.json
deleted file mode 100644
index d72a9f3..0000000
--- a/examples/with-create-react-app/packages/tsconfig/base.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "display": "Default",
- "compilerOptions": {
- "composite": false,
- "declaration": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "forceConsistentCasingInFileNames": true,
- "inlineSources": false,
- "isolatedModules": true,
- "moduleResolution": "node",
- "noUnusedLocals": false,
- "noUnusedParameters": false,
- "preserveWatchOutput": true,
- "skipLibCheck": true,
- "strict": true
- },
- "exclude": ["node_modules"]
-}
diff --git a/examples/with-create-react-app/packages/tsconfig/package.json b/examples/with-create-react-app/packages/tsconfig/package.json
deleted file mode 100644
index 6efb83e..0000000
--- a/examples/with-create-react-app/packages/tsconfig/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "tsconfig",
- "version": "0.0.0",
- "private": true,
- "license": "MIT",
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/examples/with-create-react-app/packages/tsconfig/react-app.json b/examples/with-create-react-app/packages/tsconfig/react-app.json
deleted file mode 100644
index 6af1347..0000000
--- a/examples/with-create-react-app/packages/tsconfig/react-app.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "display": "Next.js",
- "extends": "./base.json",
- "compilerOptions": {
- "allowJs": true,
- "declaration": false,
- "declarationMap": false,
- "incremental": true,
- "jsx": "preserve",
- "lib": ["dom", "dom.iterable", "esnext"],
- "module": "esnext",
- "noEmit": true,
- "resolveJsonModule": true,
- "target": "es5"
- }
-}
diff --git a/examples/with-create-react-app/packages/tsconfig/react-library.json b/examples/with-create-react-app/packages/tsconfig/react-library.json
deleted file mode 100644
index af8711c..0000000
--- a/examples/with-create-react-app/packages/tsconfig/react-library.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "display": "React Library",
- "extends": "./base.json",
- "compilerOptions": {
- "jsx": "react-jsx",
- "lib": ["ES2015"],
- "module": "ESNext",
- "target": "es6"
- }
-}
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"]
-}