Skip to content

Commit

Permalink
chore: Remove unused eslint configuration file and update instantsear…
Browse files Browse the repository at this point in the history
…ch types
  • Loading branch information
xlanex6 committed May 20, 2024
1 parent 83b3a02 commit aeae9c3
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 56 deletions.
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
failOnWarn: false,
externals: ['#imports', '#app'],
})
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export default createConfigForNuxt({
},
})
.append(
// your custom flat config here...

)
68 changes: 34 additions & 34 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions src/runtime/types/instantsearh.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint no-use-before-define: 0 */

import type { SearchClient } from 'instantsearch.js'
import type {
MultipleQueriesQuery as AlgoliaMultipleQueriesQuery,
Expand Down Expand Up @@ -167,7 +169,7 @@ export type Pagination = {
limit?: number
}

export type ResourceQuery = Pagination & {}
export type ResourceQuery = Pagination & object

export type ResourceResults<T> = Pagination & {
results: T
Expand All @@ -189,9 +191,9 @@ export type IndexObject = {
updatedAt: Date
}

export type IndexesQuery = ResourceQuery & {}
export type IndexesQuery = ResourceQuery & object

export type IndexesResults<T> = ResourceResults<T> & {}
export type IndexesResults<T> = ResourceResults<T> & object

/*
* SEARCH PARAMETERS
Expand Down Expand Up @@ -529,8 +531,8 @@ export type TasksQuery = {
limit?: number
from?: number
}
export type CancelTasksQuery = Omit<TasksQuery, 'limit' | 'from'> & {}
export type DeleteTasksQuery = Omit<TasksQuery, 'limit' | 'from'> & {}
export type CancelTasksQuery = Omit<TasksQuery, 'limit' | 'from'> & object
export type DeleteTasksQuery = Omit<TasksQuery, 'limit' | 'from'> & object

export type EnqueuedTaskObject = {
taskUid: number
Expand Down Expand Up @@ -680,9 +682,9 @@ export type KeyUpdate = {
description?: string
}

export type KeysQuery = ResourceQuery & {}
export type KeysQuery = ResourceQuery & object

export type KeysResults = ResourceResults<Key[]> & {}
export type KeysResults = ResourceResults<Key[]> & object

/*
** version
Expand Down

0 comments on commit aeae9c3

Please sign in to comment.