Skip to content

Commit

Permalink
fix lint (#1)
Browse files Browse the repository at this point in the history
* fix lint

* add more rules

* fix fix
  • Loading branch information
Foxandxss committed Oct 12, 2023
1 parent b15bbb7 commit 062d473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions front/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn"
},
}
6 changes: 3 additions & 3 deletions front/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import { ReactElement, useEffect, useState } from 'react'
import './App.css'

function App() {
function App(): ReactElement {
const [cats, setCats] = useState([])

useEffect(() => {
Expand All @@ -13,7 +13,7 @@ function App() {

return (
<>
{cats.map((cat: any) => (
{cats.map((cat) => (
<div key={cat._id}>
<div>Nombre: {cat.name}</div>
<div>Edad: {cat.age}</div>
Expand Down

0 comments on commit 062d473

Please sign in to comment.