Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const config = {
version: 'detect',
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json',
},
node: {
// The migration is an incremental process so we import TypeScript modules
// from JavaScript files.
Expand All @@ -35,6 +39,8 @@ const config = {
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/explicit-member-accessibility': ['off'],
'import/extensions': 'off',
// Allow markdown-to-jsx subpath exports (exports field not fully supported by old resolver version)
'import/no-unresolved': ['error', { ignore: ['^markdown-to-jsx/'] }],
'eslint-comments/disable-enable-pair': 'off',
'react/jsx-no-bind': 'off',
// We can't display an error message with the ESLint version we're using
Expand Down
2 changes: 1 addition & 1 deletion packages/instantsearch-ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@babel/runtime": "^7.27.6",
"ai": "^5.0.18",
"markdown-to-jsx": "^7.7.15",
"markdown-to-jsx": "^9.1.2",
"zod": "^3.25.76 || ^4",
"zod-to-json-schema": "3.24.6"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx createElement */
import { compiler } from 'markdown-to-jsx';
import { compiler } from 'markdown-to-jsx/react';

import { cx, startsWith } from '../../lib';
import { createButtonComponent } from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ESNEXT",
"module": "es2020",
"moduleResolution": "node",
"moduleResolution": "bundler",
"noEmit": true,
"strict": true,
"jsx": "react",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21705,10 +21705,10 @@ markdown-to-jsx@^6.9.1, markdown-to-jsx@^6.9.3:
prop-types "^15.6.2"
unquote "^1.1.0"

markdown-to-jsx@^7.7.15:
version "7.7.15"
resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.7.15.tgz#7dad08e2b2cf35460a1c157f5d3e7bc875bcb511"
integrity sha512-U5dw5oRajrPTE2oJQWAbLK8RgbCDJ264AjW3fGABq+/rZjQ0E/WGVCLKAHvpKHQFUwoWoK8ZZWVPNLR/biYMhg==
markdown-to-jsx@^9.1.2:
version "9.1.2"
resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-9.1.2.tgz#8a0ee7103ece66037d74c9316762f2527fa5870c"
integrity sha512-bHBappSlwhloYlee+elyhy8A1yPjzUqTlphFUkG9khIdlJuUSUnPk2s2MkaUN5bfDqhOZEa3gSSjMvb4HahgfA==

marked@^0.7.0:
version "0.7.0"
Expand Down