-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 6.44 KB
/
.eslintcache
1
[{"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\index.js":"1","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\reportWebVitals.js":"2","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\App.jsx":"3","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Home.jsx":"4","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Sobre.jsx":"5","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\PaginaNotFound.jsx":"6","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\ListaPost.jsx":"7","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\api\\api.js":"8","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Post.jsx":"9","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\ListaCategorias.jsx":"10","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\Cabecalho.jsx":"11","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Categoria.jsx":"12"},{"size":494,"mtime":1657409381870,"results":"13","hashOfConfig":"14"},{"size":356,"mtime":1657409381907,"results":"15","hashOfConfig":"14"},{"size":810,"mtime":1657546511247,"results":"16","hashOfConfig":"14"},{"size":383,"mtime":1657507618451,"results":"17","hashOfConfig":"14"},{"size":491,"mtime":1657409383276,"results":"18","hashOfConfig":"14"},{"size":530,"mtime":1657421117617,"results":"19","hashOfConfig":"14"},{"size":892,"mtime":1657501404189,"results":"20","hashOfConfig":"14"},{"size":225,"mtime":1657475279135,"results":"21","hashOfConfig":"14"},{"size":790,"mtime":1657506238105,"results":"22","hashOfConfig":"14"},{"size":847,"mtime":1657507989709,"results":"23","hashOfConfig":"14"},{"size":1298,"mtime":1657508548165,"results":"24","hashOfConfig":"14"},{"size":746,"mtime":1657546515099,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"l0yx6w",{"filePath":"29","messages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"31","messages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"35","messages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"39","messages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"41","messages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"43","messages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"45","usedDeprecatedRules":"28"},{"filePath":"46","messages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\index.js",[],["52","53"],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\reportWebVitals.js",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\App.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Home.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Sobre.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\PaginaNotFound.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\ListaPost.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\api\\api.js",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Post.jsx",["54"],"import React, { useState, useEffect } from \"react\"\r\nimport { useParams, useNavigate } from \"react-router-dom\"\r\nimport { busca } from '../api/api'\r\nimport '../assets/css/post.css'\r\n\r\nconst Post = () => {\r\n const navigate= useNavigate()\r\n const { id } = useParams()\r\n const [post, setPost] = useState([])\r\n\r\n useEffect(() => {\r\n busca(`/posts/${id}`, setPost)\r\n .catch(() => (\r\n navigate('/404')\r\n ))\r\n }, [id])\r\n\r\n return (\r\n <main className=\"container flex flex--centro\">\r\n <article className=\"cartao post\">\r\n <h2 className=\"cartao__titulo\">{post.title}</h2>\r\n <p className=\"carta__texto\">{post.body}</p>\r\n </article>\r\n </main>\r\n )\r\n\r\n}\r\n\r\nexport default Post","C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\ListaCategorias.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\components\\Cabecalho.jsx",[],"C:\\Users\\samue\\OneDrive\\Documentos\\GitHub\\PetShop-React-Router\\src\\paginas\\Categoria.jsx",[],{"ruleId":"55","replacedBy":"56"},{"ruleId":"57","replacedBy":"58"},{"ruleId":"59","severity":1,"message":"60","line":16,"column":8,"nodeType":"61","endLine":16,"endColumn":12,"suggestions":"62"},"no-native-reassign",["63"],"no-negated-in-lhs",["64"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'navigate'. Either include it or remove the dependency array.","ArrayExpression",["65"],"no-global-assign","no-unsafe-negation",{"desc":"66","fix":"67"},"Update the dependencies array to be: [id, navigate]",{"range":"68","text":"69"},[463,467],"[id, navigate]"]