Skip to content

Commit 97ea84f

Browse files
authored
Set up @emotion/react correctly (#1626)
* Correctly, set up @emotion/react * Run prettier
1 parent d813772 commit 97ea84f

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAiAnswer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @jsxImportSource @emotion/react */
21
import { useAskAiTerm } from './search.store'
32
import { LlmGatewayMessage, useLlmGateway } from './useLlmGateway'
43
import {

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAiSuggestions.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @jsxImportSource @emotion/react */
21
import { useSearchActions, useSearchTerm } from './search.store'
32
import { EuiButton, EuiSpacer, EuiText, useEuiTheme } from '@elastic/eui'
43
import { css } from '@emotion/react'

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/SearchOrAskAiModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {
1111
import { css } from '@emotion/react'
1212
import * as React from 'react'
1313

14-
/** @jsxImportSource @emotion/react */
15-
1614
export const SearchOrAskAiModal = () => {
1715
const searchTerm = useSearchTerm()
1816
const askAiTerm = useAskAiTerm()

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/SearchSuggestions.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @jsxImportSource @emotion/react */
21
import { useModalActions } from './modal.store'
32
import {
43
EuiButton,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"lib": ["DOM", "DOM.Iterable", "ES6"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"esModuleInterop": true,
8+
"allowSyntheticDefaultImports": true,
9+
"strict": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"module": "ES2020",
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"isolatedModules": true,
15+
"noEmit": true,
16+
"jsx": "react-jsx",
17+
"jsxImportSource": "@emotion/react"
18+
},
19+
"include": ["Assets/**/*"],
20+
"exclude": ["node_modules", "_static"]
21+
}

0 commit comments

Comments
 (0)