From e21f9f8733b0894a348831fff02e2d8ab71d3c35 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 22 Dec 2019 10:27:31 +0900 Subject: Fix lint rules --- .eslintrc | 8 ++++++++ src/settings/components/ui/AddButton.tsx | 3 +-- src/settings/components/ui/DeleteButton.tsx | 3 +-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 83c628c..0ff0b11 100644 --- a/.eslintrc +++ b/.eslintrc @@ -25,5 +25,13 @@ "ecmaFeatures": { "jsx": true } + }, + "rules": { + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-namespace": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "@typescript-eslint/no-use-before-define": "off" } } diff --git a/src/settings/components/ui/AddButton.tsx b/src/settings/components/ui/AddButton.tsx index 0577068..bb76d08 100644 --- a/src/settings/components/ui/AddButton.tsx +++ b/src/settings/components/ui/AddButton.tsx @@ -1,8 +1,7 @@ import './AddButton.scss'; import React from 'react'; -interface Props extends React.AllHTMLAttributes { -} +type Props = React.AllHTMLAttributes; class AddButton extends React.Component { render() { diff --git a/src/settings/components/ui/DeleteButton.tsx b/src/settings/components/ui/DeleteButton.tsx index f0ef6c9..e666426 100644 --- a/src/settings/components/ui/DeleteButton.tsx +++ b/src/settings/components/ui/DeleteButton.tsx @@ -1,8 +1,7 @@ import './DeleteButton.scss'; import React from 'react'; -interface Props extends React.AllHTMLAttributes { -} +type Props = React.AllHTMLAttributes; class DeleteButton extends React.Component { render() { -- cgit v1.2.3