Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import tsdoc from 'eslint-plugin-tsdoc'
import vitest from '@vitest/eslint-plugin'
import globals from 'globals'
import prettier from 'eslint-config-prettier'
import pluginCypress from 'eslint-plugin-cypress/flat'
import pluginReact from 'eslint-plugin-react'
import pluginCypress from 'eslint-plugin-cypress'
import pluginVue from 'eslint-plugin-vue'

export default tseslint.config([
Expand All @@ -27,20 +26,6 @@ export default tseslint.config([
files: ['playgrounds/vue3/src/*.{js,vue}'],
extends: [pluginVue.configs['flat/recommended']],
},
// React
{
files: ['playgrounds/{local-react,react}/src/*.jsx'],
extends: [
pluginReact.configs.flat.recommended,
pluginReact.configs.flat['jsx-runtime'],
],
settings: { react: { version: 'detect' } },
languageOptions: { globals: globals.browser },
// TODO: Remove rules
rules: {
'react/prop-types': 'off',
},
},
// Cypress
{
files: [
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
"@algolia/autocomplete-theme-classic": "1.17.9",
"@algolia/client-search": "4.24.0",
"@changesets/cli": "2.29.8",
"@eslint/js": "9.39.2",
"@typescript-eslint/utils": "8.51.0",
"@eslint/js": "10.0.1",
"@typescript-eslint/utils": "8.56.1",
"@vitejs/plugin-react": "5.1.2",
"@vitejs/plugin-vue": "6.0.4",
"@vitest/eslint-plugin": "1.6.4",
"@vitest/eslint-plugin": "1.6.9",
"algoliasearch": "5.19.0",
"algoliasearch-helper": "3.23.0",
"concurrently": "9.2.1",
"cssnano": "4.1.10",
"cypress": "8.6.0",
"eslint": "9.39.2",
"eslint": "10.0.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-cypress": "5.2.0",
"eslint-plugin-cypress": "6.1.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-tsdoc": "0.5.0",
"eslint-plugin-vue": "10.6.2",
"globals": "16.5.0",
"eslint-plugin-tsdoc": "0.5.2",
"eslint-plugin-vue": "10.8.0",
"globals": "17.4.0",
"instantsearch.css": "8.5.1",
"instantsearch.js": "4.85.2",
"prettier": "3.8.1",
Expand All @@ -70,7 +70,7 @@
"search-insights": "2.17.3",
"turbo": "2.7.2",
"typescript": "5.7.3",
"typescript-eslint": "8.51.0",
"typescript-eslint": "8.56.1",
"vite": "7.3.1",
"vitest": "4.0.16",
"vue": "3.5.25",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function instantMeiliSearch(
return instantSearchResponse
} catch (e: any) {
console.error(e)
throw new Error(e)
throw new Error(e?.message ?? String(e), { cause: e })
}
},
searchForFacetValues: async function (
Expand Down
2 changes: 1 addition & 1 deletion packages/instant-meilisearch/src/utils/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export function isString(str: any): boolean {
*/
export function stringifyArray(arr: any[]): string {
return arr.reduce((acc: string, curr: any) => {
return (acc += JSON.stringify(curr))
return acc + JSON.stringify(curr)
}, '')
}
Loading