diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index eb0d5cd..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/** -docs/** \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 9724e23..0000000 --- a/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "root": true, - "env": { - "es6": true, - "browser": true, - "node": true - }, - "extends": ["@antfu/eslint-config-ts"], - "rules": {} -} diff --git a/README.md b/README.md index 221fde8..be98afb 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ You can install `@watermarkify/vue-watermark` via npm or yarn: npm install @watermarkify/vue-watermark # or yarn add @watermarkify/vue-watermark -# or +# or pnpm install @watermarkify/vue-watermark ``` @@ -77,4 +77,4 @@ Pass `watermarkOptions` to `options` and define your slot. ## Contributing -Contributions are welcome! To contribute to `@watermarkify/vue-watermark`, please fork the repository and submit a pull request. \ No newline at end of file +Contributions are welcome! To contribute to `@watermarkify/vue-watermark`, please fork the repository and submit a pull request. diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c9043c9 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,8 @@ +import antfu from '@antfu/eslint-config' + +export default antfu({ + ignores: [ + 'dist/**', + 'docs/**', + ], +}) diff --git a/package.json b/package.json index 0e121f0..b45afc7 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "access": "public" }, "devDependencies": { - "@antfu/eslint-config-ts": "^0.43.0", + "@antfu/eslint-config": "^2.12.2", "bumpp": "^9.2.0", "eslint": "^9.0.0", "pkgroll": "^2.0.0", diff --git a/playground/README.md b/playground/README.md index 9383745..6e13310 100644 --- a/playground/README.md +++ b/playground/README.md @@ -10,4 +10,4 @@ then browse ``` http://localhost:3000/ -``` \ No newline at end of file +``` diff --git a/playground/src/components/MyComponent.vue b/playground/src/components/MyComponent.vue index fbbed7a..b527307 100644 --- a/playground/src/components/MyComponent.vue +++ b/playground/src/components/MyComponent.vue @@ -24,7 +24,9 @@ const watermarkOptions = ref({
-
This is the content of the slot.
+
+ This is the content of the slot. +
@@ -35,52 +37,52 @@ const watermarkOptions = ref({
+ >
+ >
+ >
- + > + + >
@@ -89,97 +91,97 @@ const watermarkOptions = ref({
- + > + + >
+ >
+ >
+ >
+ >
+ >
+ >
+ >
diff --git a/playground/src/components/Navbar.vue b/playground/src/components/Navbar.vue index 9d60bd3..9a8b163 100644 --- a/playground/src/components/Navbar.vue +++ b/playground/src/components/Navbar.vue @@ -4,7 +4,9 @@