aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-gatsby/packages/ui
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-gatsby/packages/ui')
-rw-r--r--examples/with-gatsby/packages/ui/.eslintrc.js7
-rw-r--r--examples/with-gatsby/packages/ui/Button.tsx4
-rw-r--r--examples/with-gatsby/packages/ui/index.tsx2
-rw-r--r--examples/with-gatsby/packages/ui/package.json19
-rw-r--r--examples/with-gatsby/packages/ui/tsconfig.json5
5 files changed, 37 insertions, 0 deletions
diff --git a/examples/with-gatsby/packages/ui/.eslintrc.js b/examples/with-gatsby/packages/ui/.eslintrc.js
new file mode 100644
index 0000000..9c4577c
--- /dev/null
+++ b/examples/with-gatsby/packages/ui/.eslintrc.js
@@ -0,0 +1,7 @@
+module.exports = {
+ root: true,
+ extends: ["custom/react"],
+ rules: {
+ "@typescript-eslint/no-unused-vars": "off",
+ },
+};
diff --git a/examples/with-gatsby/packages/ui/Button.tsx b/examples/with-gatsby/packages/ui/Button.tsx
new file mode 100644
index 0000000..7d5c6a7
--- /dev/null
+++ b/examples/with-gatsby/packages/ui/Button.tsx
@@ -0,0 +1,4 @@
+import * as React from "react";
+export const Button = () => {
+ return <button>Boop</button>;
+};
diff --git a/examples/with-gatsby/packages/ui/index.tsx b/examples/with-gatsby/packages/ui/index.tsx
new file mode 100644
index 0000000..916730e
--- /dev/null
+++ b/examples/with-gatsby/packages/ui/index.tsx
@@ -0,0 +1,2 @@
+import * as React from "react";
+export * from "./Button";
diff --git a/examples/with-gatsby/packages/ui/package.json b/examples/with-gatsby/packages/ui/package.json
new file mode 100644
index 0000000..17b3a32
--- /dev/null
+++ b/examples/with-gatsby/packages/ui/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "ui",
+ "version": "0.0.0",
+ "main": "./index.tsx",
+ "types": "./index.tsx",
+ "license": "MIT",
+ "scripts": {
+ "lint": "eslint *.ts*"
+ },
+ "devDependencies": {
+ "@types/react": "^18.0.17",
+ "@types/react-dom": "^18.0.6",
+ "eslint": "^7.32.0",
+ "eslint-config-custom": "workspace:*",
+ "react": "^18.2.0",
+ "tsconfig": "workspace:*",
+ "typescript": "^4.5.2"
+ }
+}
diff --git a/examples/with-gatsby/packages/ui/tsconfig.json b/examples/with-gatsby/packages/ui/tsconfig.json
new file mode 100644
index 0000000..cd6c94d
--- /dev/null
+++ b/examples/with-gatsby/packages/ui/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "tsconfig/react-library.json",
+ "include": ["."],
+ "exclude": ["dist", "build", "node_modules"]
+}