diff --git a/front/.eslintrc.json b/front/.eslintrc.json index efe29bf76e..fd30876ae1 100644 --- a/front/.eslintrc.json +++ b/front/.eslintrc.json @@ -6,7 +6,9 @@ "preact-i18n/no-missing-template-field": "error", "preact-i18n/no-text-as-attribute": "error", "preact-i18n/no-text-as-children": "error", - "preact-i18n/no-unknown-key": "error" + "preact-i18n/no-unknown-key": "error", + "no-useless-concat": "error", + "prefer-template": "error" }, "plugins": ["json", "preact-i18n"], "parserOptions": { diff --git a/front/src/components/boxs/device-in-room/RoomCard.jsx b/front/src/components/boxs/device-in-room/RoomCard.jsx index 0db2cbec39..952a49e868 100644 --- a/front/src/components/boxs/device-in-room/RoomCard.jsx +++ b/front/src/components/boxs/device-in-room/RoomCard.jsx @@ -1,3 +1,5 @@ +import cx from 'classnames'; + import DeviceRow from './DeviceRow'; const RoomCard = ({ children, ...props }) => { @@ -6,10 +8,7 @@ const RoomCard = ({ children, ...props }) => { } return ( -