From 9c3cef2cda489501a177c34ebe47951321284463 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Fri, 1 Nov 2024 10:16:44 -0500 Subject: feat: Add React (#38) * feat: Add React Closes #35 Signed-off-by: Matt Strapp * lint Signed-off-by: Matt Strapp * docs Signed-off-by: Matt Strapp * lint Signed-off-by: Matt Strapp * add keywords Signed-off-by: Matt Strapp --------- Signed-off-by: Matt Strapp --- src/packages/vue/README.md | 2 +- src/packages/vue/eslint.config.mjs | 4 ++-- src/packages/vue/package.json | 6 +++--- src/packages/vue/tsconfig.json | 9 ++------- 4 files changed, 8 insertions(+), 13 deletions(-) (limited to 'src/packages/vue') diff --git a/src/packages/vue/README.md b/src/packages/vue/README.md index bd675a1..4d41eb3 100644 --- a/src/packages/vue/README.md +++ b/src/packages/vue/README.md @@ -12,7 +12,7 @@ Why would you want to do that? I don't know. ## Installation ```bash -npm install @locusts/vue +npm install -D @locusts/vue ``` ## Usage diff --git a/src/packages/vue/eslint.config.mjs b/src/packages/vue/eslint.config.mjs index 439d403..eb0d6d0 100644 --- a/src/packages/vue/eslint.config.mjs +++ b/src/packages/vue/eslint.config.mjs @@ -1,10 +1,10 @@ import library from "@repo/eslint-config/eslint.library.config.js"; -import pluginVue from "eslint-plugin-vue"; +import vue from "eslint-plugin-vue"; /** @type {import("eslint").Linter.Config[]} */ export default [ ...library, - ...pluginVue.configs["flat/recommended"], + ...vue.configs["flat/recommended"], { ignores: ["dist/"], }, diff --git a/src/packages/vue/package.json b/src/packages/vue/package.json index 41a56c6..4932a01 100644 --- a/src/packages/vue/package.json +++ b/src/packages/vue/package.json @@ -28,8 +28,8 @@ "dev": "vite dev", "build": "vite build && vue-tsc --declaration --emitDeclarationOnly && publint", "check": "vue-tsc --noEmit", - "format": "prettier --write .", - "lint": "prettier --check . && eslint --fix .", + "format": "prettier --write . && eslint --fix .", + "lint": "prettier --check . && eslint .", "preview": "vite preview" }, "keywords": [ @@ -40,7 +40,7 @@ "joke" ], "peerDependencies": { - "vue": "^3.0.0" + "vue": ">=3.0.0" }, "devDependencies": { "@repo/eslint-config": "workspace:*", diff --git a/src/packages/vue/tsconfig.json b/src/packages/vue/tsconfig.json index b8e300a..23ddef4 100644 --- a/src/packages/vue/tsconfig.json +++ b/src/packages/vue/tsconfig.json @@ -9,11 +9,6 @@ "moduleResolution": "Bundler", "useDefineForClassFields": true }, - "exclude": [ - "node_modules", - "dist", - "src/main.ts", - "src/components/Locusts.vue" - ], - "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] + "exclude": ["node_modules", "dist"], + "include": ["src"] } -- cgit v1.2.3