aboutsummaryrefslogtreecommitdiffstats
path: root/src/packages/vue
diff options
context:
space:
mode:
authorMatthew Strapp <matt@mattstrapp.net>2024-11-01 10:16:44 -0500
committerGitHub <noreply@github.com>2024-11-01 10:16:44 -0500
commit9c3cef2cda489501a177c34ebe47951321284463 (patch)
treea6b45cdef7acde058ee033c386b93fa819e15c36 /src/packages/vue
parentbadge bleach (diff)
downloadlocusts-9c3cef2cda489501a177c34ebe47951321284463.tar
locusts-9c3cef2cda489501a177c34ebe47951321284463.tar.gz
locusts-9c3cef2cda489501a177c34ebe47951321284463.tar.bz2
locusts-9c3cef2cda489501a177c34ebe47951321284463.tar.lz
locusts-9c3cef2cda489501a177c34ebe47951321284463.tar.xz
locusts-9c3cef2cda489501a177c34ebe47951321284463.tar.zst
locusts-9c3cef2cda489501a177c34ebe47951321284463.zip
feat: Add React (#38)
* feat: Add React Closes #35 Signed-off-by: Matt Strapp <matt@mattstrapp.net> * lint Signed-off-by: Matt Strapp <matt@mattstrapp.net> * docs Signed-off-by: Matt Strapp <matt@mattstrapp.net> * lint Signed-off-by: Matt Strapp <matt@mattstrapp.net> * add keywords Signed-off-by: Matt Strapp <matt@mattstrapp.net> --------- Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--src/packages/vue/README.md2
-rw-r--r--src/packages/vue/eslint.config.mjs4
-rw-r--r--src/packages/vue/package.json6
-rw-r--r--src/packages/vue/tsconfig.json9
4 files changed, 8 insertions, 13 deletions
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"]
}