aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:27:31 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commite21f9f8733b0894a348831fff02e2d8ab71d3c35 (patch)
tree2d1dd813f746efd94e50d0565fa04b817c14e216
parent2e7006ce24c42ec2b6642346d153429338e7334e (diff)
Fix lint rules
-rw-r--r--.eslintrc8
-rw-r--r--src/settings/components/ui/AddButton.tsx3
-rw-r--r--src/settings/components/ui/DeleteButton.tsx3
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<HTMLInputElement> {
-}
+type Props = React.AllHTMLAttributes<HTMLInputElement>;
class AddButton extends React.Component<Props> {
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<HTMLInputElement> {
-}
+type Props = React.AllHTMLAttributes<HTMLInputElement>;
class DeleteButton extends React.Component<Props> {
render() {