From db1790d1d5cbbe290da9b98f631e9c8084a66063 Mon Sep 17 00:00:00 2001 From: mlfaa Date: Fri, 17 Dec 2021 11:55:24 -0300 Subject: [PATCH] fixing lint on files --- .eslintrc.js | 1 + src/components/Carousel/index.js | 8 ++++++-- src/components/ChartAndReport/index.js | 2 +- src/components/ChartTotalRoomsWithFilter/index.js | 8 ++++---- src/components/Frames/TotalFrame/index.js | 9 +++++---- src/containers/Audiencias/index.js | 2 +- src/containers/Wikilegis/index.js | 2 +- src/layouts/Navbar/index.js | 9 ++++----- src/pages/index.js | 2 +- 9 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a04682d4..4e67e387 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,7 @@ module.exports = { 'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }], 'react/jsx-props-no-spreading': 'off', 'react/forbid-prop-types': 'off', + 'jsx-a11y/click-events-have-key-events': 'off', 'import/no-extraneous-dependencies': ["error", {"devDependencies": ["**/*.js","**/*.test.js", "**/*.spec.js"]}] }, }; diff --git a/src/components/Carousel/index.js b/src/components/Carousel/index.js index 3ce4e00f..32828ac0 100644 --- a/src/components/Carousel/index.js +++ b/src/components/Carousel/index.js @@ -1,4 +1,6 @@ /* eslint-disable react/prop-types */ +/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ + import React from 'react'; import { isDesktop, isTablet } from 'react-device-detect'; import Carousel from 'react-multi-carousel'; @@ -16,8 +18,8 @@ const CustomDot = ({ onClick, active }) => { className={`${classes.dot} ${ active ? classes.dotActive : classes.dotInactive }`} - onClick={() => onClick()} - > + onClick={onClick} + /> ); }; @@ -25,6 +27,7 @@ const CustomLeft = ({ onClick }) => { const classes = useStyles(); return (