diff --git a/.eslintrc.json b/.eslintrc.json
index f279e226..de639b85 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -20,7 +20,7 @@
"next"
],
- "plugins": ["@typescript-eslint","prettier"],
+ "plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"alias": {
@@ -46,7 +46,9 @@
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"import/no-anonymous-default-export": "off",
- "@next/next/no-img-element": "off"
+ "@next/next/no-img-element": "off",
+ "@typescript-eslint/no-empty-function": "off",
+ "@typescript-eslint/no-explicit-any": "off"
},
"globals": {
"React": "writable"
diff --git a/components/common/EventDataButton.js b/components/common/EventDataButton.js
index 5393d7d5..1b95f950 100644
--- a/components/common/EventDataButton.js
+++ b/components/common/EventDataButton.js
@@ -1,5 +1,4 @@
import EventDataForm from 'components/metrics/EventDataForm';
-import PropTypes from 'prop-types';
import { useState } from 'react';
import { Button, Icon, Modal, Icons } from 'react-basics';
import { FormattedMessage } from 'react-intl';
@@ -44,8 +43,4 @@ function EventDataButton({ websiteId }) {
);
}
-EventDataButton.propTypes = {
- websiteId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
-};
-
export default EventDataButton;
diff --git a/components/common/Favicon.js b/components/common/Favicon.js
index ad7056af..2127d482 100644
--- a/components/common/Favicon.js
+++ b/components/common/Favicon.js
@@ -1,4 +1,3 @@
-import PropTypes from 'prop-types';
import styles from './Favicon.module.css';
function getHostName(url) {
@@ -20,8 +19,4 @@ function Favicon({ domain, ...props }) {
) : null;
}
-Favicon.propTypes = {
- domain: PropTypes.string,
-};
-
export default Favicon;
diff --git a/components/common/FilterButtons.js b/components/common/FilterButtons.js
index b4b42291..4d08a132 100644
--- a/components/common/FilterButtons.js
+++ b/components/common/FilterButtons.js
@@ -1,24 +1,11 @@
-import PropTypes from 'prop-types';
-import ButtonLayout from 'components/layout/ButtonLayout';
-import { ButtonGroup } from 'react-basics';
+import { ButtonGroup, Button, Flexbox } from 'react-basics';
-function FilterButtons({ buttons, selected, onClick }) {
+export default function FilterButtons({ items, selectedKey, onSelect }) {
return (
-