Skip to content

Commit

Permalink
feat: upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Oct 20, 2023
1 parent 58aa1b0 commit 2917685
Show file tree
Hide file tree
Showing 7 changed files with 544 additions and 282 deletions.
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import antfu from '@antfu/eslint-config'

export default antfu({
stylistic: true, // enable stylistic formatting rules
typescript: true,
vue: true,
jsonc: true,
yaml: true,
}, {
rules: {
// https://github.com/antfu/eslint-config/pull/214
'node/prefer-global/process': [
'off',
'never',
],
},
})
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "nuxt-app",
"name": "cash-register",
"type": "module",
"private": true,
"packageManager": "[email protected]",
"scripts": {
Expand All @@ -13,7 +14,7 @@
"typecheck": "vue-tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^0.42.0",
"@antfu/eslint-config": "1.0.0-beta.27",
"@cloudflare/workers-types": "^4.20230821.0",
"@iconify-json/tabler": "^1.1.89",
"@lucia-auth/adapter-sqlite": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions plugins/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default defineNuxtPlugin({
const { default: superjson } = await import('superjson')

/**
* createTRPCNuxtClient adds a `useQuery` composable
* built on top of `useAsyncData`.
*/
* createTRPCNuxtClient adds a `useQuery` composable
* built on top of `useAsyncData`.
*/
const client = createTRPCNuxtClient<AppRouter>({
transformer: superjson,
links: [
Expand Down
Loading

0 comments on commit 2917685

Please sign in to comment.