diff --git a/cabra/.eslintrc.json b/cabra/.eslintrc.json
index 3981cf1..ff31e61 100644
--- a/cabra/.eslintrc.json
+++ b/cabra/.eslintrc.json
@@ -17,7 +17,15 @@
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
+ "camelcase": "error",
+ "eqeqeq": "error",
"no-console": "error",
+ "prefer-const": "error",
+ "no-var": "error",
+ "react/function-component-definition": [
+ "error",
+ { "namedComponents": "function-declaration" }
+ ],
"react/react-in-jsx-scope": "off",
"sort-imports": "error",
"@typescript-eslint/no-inferrable-types": "off",
diff --git a/cabra/src/pages/components/CardField.tsx b/cabra/src/pages/components/CardField.tsx
index 3d178d6..3d0f335 100644
--- a/cabra/src/pages/components/CardField.tsx
+++ b/cabra/src/pages/components/CardField.tsx
@@ -25,11 +25,13 @@ interface Props {
align?: Align;
}
-const CardField = ({ className, children, title, span, align }: Props) => (
-
- {title && {title}}
- {children}
-
-);
+function CardField({ className, children, title, span, align }: Props) {
+ return (
+
+ {title && {title}}
+ {children}
+
+ );
+}
export default CardField;
diff --git a/cabra/src/pages/components/RelatedTaskList.tsx b/cabra/src/pages/components/RelatedTaskList.tsx
index 127d257..0fbe888 100644
--- a/cabra/src/pages/components/RelatedTaskList.tsx
+++ b/cabra/src/pages/components/RelatedTaskList.tsx
@@ -30,7 +30,7 @@ export default function RelatedTasksList({
const subtasks = data.data.slice().reverse();
- if (subtasks.length == 0) {
+ if (subtasks.length === 0) {
return
{""}
;
}
diff --git a/cabra/src/pages/components/TasksList.tsx b/cabra/src/pages/components/TasksList.tsx
index 81e5b5b..c1c6548 100644
--- a/cabra/src/pages/components/TasksList.tsx
+++ b/cabra/src/pages/components/TasksList.tsx
@@ -14,7 +14,7 @@ export default function TasksList() {
const tasks = data.data;
- const hasNoTasks = !tasks || tasks.length == 0;
+ const hasNoTasks = !tasks || tasks.length === 0;
return (
{hasNoTasks ? (