mirror of
https://github.com/gosticks/web.git
synced 2026-08-12 12:10:20 +00:00
Add --report-unused-disable-directives in ESLint.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"coverage": "react-scripts test --env=jsdom --coverage",
|
||||
"codecov": "codecov",
|
||||
"lint": "eslint --ignore-path .gitignore --ext js,ts,tsx .",
|
||||
"lint": "eslint --ignore-path .gitignore --ext js,ts,tsx --report-unused-disable-directives .",
|
||||
"eject": "react-scripts eject",
|
||||
"format": "prettier --write \"**/*.{js,tsx}\" --ignore-path .gitignore",
|
||||
"check-format": "prettier --list-different \"**/*.{js,tsx}\" --ignore-path .gitignore"
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||
|
||||
import React, { Component, FormEvent } from "react";
|
||||
import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import NavButton from "./NavButton";
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||
|
||||
import React, { MouseEvent, ReactNode } from "react";
|
||||
|
||||
export interface NavDropdownProps {
|
||||
@@ -34,6 +32,5 @@ export default ({ name, icon, isOpen, children }: NavDropdownProps) => (
|
||||
);
|
||||
|
||||
const handleDropdownClick = (e: MouseEvent<HTMLButtonElement>) => {
|
||||
e.preventDefault();
|
||||
(e.target as HTMLButtonElement).parentElement!.classList.toggle("open");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user