File tree 2 files changed +7
-7
lines changed
src/npm-fastui/src/components
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
4
4
extends : [
5
5
'standard' ,
6
6
'eslint:recommended' ,
7
+ 'plugin:react/recommended' ,
7
8
'plugin:@typescript-eslint/recommended' ,
8
9
'plugin:react-hooks/recommended' ,
9
10
'prettier' ,
@@ -15,6 +16,9 @@ module.exports = {
15
16
'react-refresh/only-export-components' : 'off' , // how much effect does this have?
16
17
'@typescript-eslint/no-explicit-any' : 'off' ,
17
18
'no-use-before-define' : 'off' ,
19
+ 'react/react-in-jsx-scope' : 'off' ,
20
+ 'react/prop-types' : 'off' ,
21
+ 'react/display-name' : 'off' ,
18
22
'import/order' : [
19
23
'error' ,
20
24
{
Original file line number Diff line number Diff line change @@ -10,12 +10,8 @@ export default function (props: Code) {
10
10
const codeLookup = codeStyle as keyof typeof codeStyles
11
11
const style = ( codeStyle && codeStyles [ codeLookup ] ) || codeStyles . coldarkCold
12
12
return (
13
- < SyntaxHighlighter
14
- className = { useClassName ( props ) }
15
- PreTag = "div"
16
- children = { text }
17
- language = { language }
18
- style = { style }
19
- />
13
+ < SyntaxHighlighter className = { useClassName ( props ) } PreTag = "div" language = { language } style = { style } >
14
+ { text }
15
+ </ SyntaxHighlighter >
20
16
)
21
17
}
You can’t perform that action at this time.
0 commit comments