Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Jun 16, 2023
1 parent c70235c commit b3011ef
Show file tree
Hide file tree
Showing 15 changed files with 1,242 additions and 50 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"root": true,
"extends": [
"@nuxt/eslint-config"
]
"extends": "@antfu"
}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
on:
push:
tags:
- "**"
- '**'

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default defineEventHandler(async (event) => {
// If validation failed, an error will be thrown and handled by this package.

return title
});
})
```

`v` is an alias for `vine`.
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "nuxt-vine",
"type": "module",
"version": "0.1.1",
"description": "A module to easily use VineJS in Nuxt",
"repository": "barbapapazes/nuxt-vine",
"license": "MIT",
"type": "module",
"repository": "barbapapazes/nuxt-vine",
"exports": {
".": {
"types": "./dist/types.d.ts",
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
"require": "./dist/module.cjs",
"import": "./dist/module.mjs"
}
},
"main": "./dist/module.cjs",
Expand All @@ -30,10 +30,11 @@
"dependencies": {
"@nuxt/kit": "^3.5.2",
"@vinejs/vine": "^1.4.0",
"h3": "^1.6.6",
"defu": "^6.1.2"
"defu": "^6.1.2",
"h3": "^1.6.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.5",
"@nuxt/eslint-config": "^0.1.1",
"@nuxt/module-builder": "^0.4.0",
"@nuxt/schema": "^3.5.2",
Expand Down
6 changes: 3 additions & 3 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup>
</script>

<template>
<div>
Nuxt module playground!
</div>
</template>

<script setup>
</script>
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "my-module-playground",
"type": "module",
"private": true,
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
Expand Down
4 changes: 2 additions & 2 deletions playground/server/api/tasks/index.post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createTaskValidator } from "../../validators/createTaskValidator";
import { createTaskValidator } from '../../validators/createTaskValidator'

export default defineEventHandler(async (event) => {
const { title } = await validateBody(event, createTaskValidator)
Expand All @@ -9,4 +9,4 @@ export default defineEventHandler(async (event) => {
// })

return title
});
})
4 changes: 2 additions & 2 deletions playground/server/validators/createTaskValidator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// For small project, you can keep event handler and validator in the same file.
export const createTaskValidator = v.compile(
v.object({
title: v.string()
})
title: v.string(),
}),
)
Loading

0 comments on commit b3011ef

Please sign in to comment.