diff options
author | Matthew Strapp <matt@mattstrapp.net> | 2024-11-01 10:16:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 10:16:44 -0500 |
commit | 9c3cef2cda489501a177c34ebe47951321284463 (patch) | |
tree | a6b45cdef7acde058ee033c386b93fa819e15c36 /src/packages/vue | |
parent | badge bleach (diff) | |
download | locusts-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.md | 2 | ||||
-rw-r--r-- | src/packages/vue/eslint.config.mjs | 4 | ||||
-rw-r--r-- | src/packages/vue/package.json | 6 | ||||
-rw-r--r-- | src/packages/vue/tsconfig.json | 9 |
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"] } |