From 2f61638eac8d10ecdbabfacbad0b34e9042d9364 Mon Sep 17 00:00:00 2001 From: aldbr Date: Tue, 10 Dec 2024 13:47:15 +0100 Subject: [PATCH] fix --- .../diracx-web-components/eslint.config.js | 53 +++++++++++-------- packages/diracx-web/eslint.config.js | 53 +++++++++++-------- 2 files changed, 60 insertions(+), 46 deletions(-) diff --git a/packages/diracx-web-components/eslint.config.js b/packages/diracx-web-components/eslint.config.js index 84219f8..09a3ff2 100644 --- a/packages/diracx-web-components/eslint.config.js +++ b/packages/diracx-web-components/eslint.config.js @@ -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'.", + }, + ], }, }, ]; diff --git a/packages/diracx-web/eslint.config.js b/packages/diracx-web/eslint.config.js index 76e4d55..b1b9fb5 100644 --- a/packages/diracx-web/eslint.config.js +++ b/packages/diracx-web/eslint.config.js @@ -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'.", + }, + ], }, }, ];