Add --report-unused-disable-directives in ESLint.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-04-25 22:48:55 +03:00
parent 9b25cd5068
commit c3262caced
3 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -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"
-2
View File
@@ -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";
-3
View File
@@ -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");
};