From 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:47:57 +0800 Subject: --- examples/with-gatsby/packages/ui/.eslintrc.js | 7 +++++++ examples/with-gatsby/packages/ui/Button.tsx | 4 ++++ examples/with-gatsby/packages/ui/index.tsx | 2 ++ examples/with-gatsby/packages/ui/package.json | 19 +++++++++++++++++++ examples/with-gatsby/packages/ui/tsconfig.json | 5 +++++ 5 files changed, 37 insertions(+) create mode 100644 examples/with-gatsby/packages/ui/.eslintrc.js create mode 100644 examples/with-gatsby/packages/ui/Button.tsx create mode 100644 examples/with-gatsby/packages/ui/index.tsx create mode 100644 examples/with-gatsby/packages/ui/package.json create mode 100644 examples/with-gatsby/packages/ui/tsconfig.json (limited to 'examples/with-gatsby/packages/ui') 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 ; +}; 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"] +} -- cgit v1.2.3-70-g09d2