Skip to content

Commit

Permalink
style: update nuxt eslint config to flat
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed May 11, 2024
1 parent c7329b0 commit aed4d9c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 23 deletions.
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({

}).append({
rules: {
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'warn'
}
})
19 changes: 1 addition & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,5 @@
"taze": "^0.13.8",
"tsup": "8.0.2",
"typescript": "^5.4.5"
},
"eslintConfig": {
"extends": [
"@nuxt/eslint-config"
],
"rules": {
"@typescript-eslint/no-unused-vars": 0,
"vue/multi-word-component-names": "off",
"vue/no-multiple-template-root": "off"
}
},
"eslintIgnore": [
"*.json",
"node_modules",
"*.md",
"dist",
".output"
]
}
}
2 changes: 1 addition & 1 deletion playground/server/trpc/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import type { inferAsyncReturnType } from '@trpc/server'
import type { H3Event } from 'h3'

Expand Down
2 changes: 1 addition & 1 deletion src/client/decorationProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function createNuxtProxyDecoration<TRouter extends AnyRouter> (name: stri
immediate: false
})

// eslint-disable-next-line no-inner-declarations
async function mutate (input: any) {
payload.value = input
await asyncData.execute()
Expand Down
4 changes: 2 additions & 2 deletions src/client/getQueryKey.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {
import type {
AnyQueryProcedure,
AnyRouter,
DeepPartial,
inferProcedureInput,
} from '@trpc/server';
import { hash } from 'ohash'
import { DecorateProcedure } from './types';
import type { DecorateProcedure } from './types';

export type GetQueryParams<
TProcedureOrRouter extends AnyQueryProcedure,
Expand Down
2 changes: 1 addition & 1 deletion src/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
AnySubscriptionProcedure
} from '@trpc/server'
import { type inferObservableValue, type Unsubscribable } from '@trpc/server/observable'
import { inferTransformedProcedureOutput } from '@trpc/server/shared'
import type { inferTransformedProcedureOutput } from '@trpc/server/shared'
import type { AsyncData, AsyncDataOptions } from 'nuxt/app'
import type { MaybeRefOrGetter, UnwrapRef } from 'vue'

Expand Down

0 comments on commit aed4d9c

Please sign in to comment.