Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Dec 10, 2024
1 parent 31dc7b4 commit 2f61638
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 46 deletions.
53 changes: 30 additions & 23 deletions packages/diracx-web-components/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,41 +67,48 @@ export default [
"no-restricted-properties": [
"error",
{
"object": "React",
"property": "useCallback",
"message": "Please import 'useCallback' directly from 'react' instead of 'React.useCallback'."
object: "React",
property: "useCallback",
message:
"Please import 'useCallback' directly from 'react' instead of 'React.useCallback'.",
},
{
"object": "React",
"property": "useContext",
"message": "Please import 'useContext' directly from 'react' instead of 'React.useContext'."
object: "React",
property: "useContext",
message:
"Please import 'useContext' directly from 'react' instead of 'React.useContext'.",
},
{
"object": "React",
"property": "useEffect",
"message": "Please import 'useEffect' directly from 'react' instead of 'React.useEffect'."
object: "React",
property: "useEffect",
message:
"Please import 'useEffect' directly from 'react' instead of 'React.useEffect'.",
},
{
"object": "React",
"property": "useMemo",
"message": "Please import 'useMemo' directly from 'react' instead of 'React.useMemo'."
object: "React",
property: "useMemo",
message:
"Please import 'useMemo' directly from 'react' instead of 'React.useMemo'.",
},
{
"object": "React",
"property": "useReducer",
"message": "Please import 'useReducer' directly from 'react' instead of 'React.useReducer'."
object: "React",
property: "useReducer",
message:
"Please import 'useReducer' directly from 'react' instead of 'React.useReducer'.",
},
{
"object": "React",
"property": "useRef",
"message": "Please import 'useRef' directly from 'react' instead of 'React.useRef'."
object: "React",
property: "useRef",
message:
"Please import 'useRef' directly from 'react' instead of 'React.useRef'.",
},
{
"object": "React",
"property": "useState",
"message": "Please import 'useState' directly from 'react' instead of 'React.useState'."
}
]
object: "React",
property: "useState",
message:
"Please import 'useState' directly from 'react' instead of 'React.useState'.",
},
],
},
},
];
53 changes: 30 additions & 23 deletions packages/diracx-web/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,48 @@ export default [
"no-restricted-properties": [
"error",
{
"object": "React",
"property": "useCallback",
"message": "Please import 'useCallback' directly from 'react' instead of 'React.useCallback'."
object: "React",
property: "useCallback",
message:
"Please import 'useCallback' directly from 'react' instead of 'React.useCallback'.",
},
{
"object": "React",
"property": "useContext",
"message": "Please import 'useContext' directly from 'react' instead of 'React.useContext'."
object: "React",
property: "useContext",
message:
"Please import 'useContext' directly from 'react' instead of 'React.useContext'.",
},
{
"object": "React",
"property": "useEffect",
"message": "Please import 'useEffect' directly from 'react' instead of 'React.useEffect'."
object: "React",
property: "useEffect",
message:
"Please import 'useEffect' directly from 'react' instead of 'React.useEffect'.",
},
{
"object": "React",
"property": "useMemo",
"message": "Please import 'useMemo' directly from 'react' instead of 'React.useMemo'."
object: "React",
property: "useMemo",
message:
"Please import 'useMemo' directly from 'react' instead of 'React.useMemo'.",
},
{
"object": "React",
"property": "useReducer",
"message": "Please import 'useReducer' directly from 'react' instead of 'React.useReducer'."
object: "React",
property: "useReducer",
message:
"Please import 'useReducer' directly from 'react' instead of 'React.useReducer'.",
},
{
"object": "React",
"property": "useRef",
"message": "Please import 'useRef' directly from 'react' instead of 'React.useRef'."
object: "React",
property: "useRef",
message:
"Please import 'useRef' directly from 'react' instead of 'React.useRef'.",
},
{
"object": "React",
"property": "useState",
"message": "Please import 'useState' directly from 'react' instead of 'React.useState'."
}
]
object: "React",
property: "useState",
message:
"Please import 'useState' directly from 'react' instead of 'React.useState'.",
},
],
},
},
];

0 comments on commit 2f61638

Please sign in to comment.