-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintcache
1 lines (1 loc) · 5.7 KB
/
.eslintcache
1
[{"/home/steven/Documents/GitHub/pokedex/src/reportWebVitals.ts":"1","/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/inmemory/InMemoryPokemon.loader.ts":"2","/home/steven/Documents/GitHub/pokedex/src/App.tsx":"3","/home/steven/Documents/GitHub/pokedex/src/core/domain/entities/pokemon.ts":"4","/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/real/RESTPokemon.loader.ts":"5","/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/real/mappers/pokemon.mappers.ts":"6","/home/steven/Documents/GitHub/pokedex/src/core/usecases/pokemon.builder.ts":"7","/home/steven/Documents/GitHub/pokedex/src/core/configuration/pokemonDI.factory.ts":"8","/home/steven/Documents/GitHub/pokedex/src/index.tsx":"9","/home/steven/Documents/GitHub/pokedex/src/core/usecases/pokemon.handler.ts":"10","/home/steven/Documents/GitHub/pokedex/src/views/PokemonDetails.tsx":"11","/home/steven/Documents/GitHub/pokedex/src/views/Home.tsx":"12"},{"size":425,"mtime":1611697349235,"results":"13","hashOfConfig":"14"},{"size":666,"mtime":1612193951443,"results":"15","hashOfConfig":"14"},{"size":463,"mtime":1612298511725,"results":"16","hashOfConfig":"14"},{"size":559,"mtime":1612192146349,"results":"17","hashOfConfig":"14"},{"size":1015,"mtime":1612283288683,"results":"18","hashOfConfig":"14"},{"size":977,"mtime":1612299222963,"results":"19","hashOfConfig":"14"},{"size":1015,"mtime":1612193900751,"results":"20","hashOfConfig":"14"},{"size":1689,"mtime":1612298820418,"results":"21","hashOfConfig":"14"},{"size":500,"mtime":1611697349235,"results":"22","hashOfConfig":"14"},{"size":414,"mtime":1612193933415,"results":"23","hashOfConfig":"14"},{"size":977,"mtime":1612299080245,"results":"24","hashOfConfig":"14"},{"size":765,"mtime":1612298619491,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1kt8y25",{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"48"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/steven/Documents/GitHub/pokedex/src/reportWebVitals.ts",[],"/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/inmemory/InMemoryPokemon.loader.ts",[],"/home/steven/Documents/GitHub/pokedex/src/App.tsx",[],"/home/steven/Documents/GitHub/pokedex/src/core/domain/entities/pokemon.ts",[],"/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/real/RESTPokemon.loader.ts",[],"/home/steven/Documents/GitHub/pokedex/src/core/adapters/secondaries/real/mappers/pokemon.mappers.ts",[],"/home/steven/Documents/GitHub/pokedex/src/core/usecases/pokemon.builder.ts",[],"/home/steven/Documents/GitHub/pokedex/src/core/configuration/pokemonDI.factory.ts",[],"/home/steven/Documents/GitHub/pokedex/src/index.tsx",[],"/home/steven/Documents/GitHub/pokedex/src/core/usecases/pokemon.handler.ts",[],"/home/steven/Documents/GitHub/pokedex/src/views/PokemonDetails.tsx",["51","52"],"import React, { useEffect, useState } from \"react\";\nimport { useHistory, useParams } from \"react-router-dom\";\nimport { pokemonHandler } from \"core/adapters/primaries/pokemon.module\";\nimport { Pokemon } from \"core/domain/entities/pokemon\";\n\nconst PokemonDetails = () => {\n const [pokemon, setPokemon] = useState<Pokemon>();\n const { number = \"\" }: { number: string } = useParams();\n const history = useHistory();\n\n useEffect(() => {\n pokemonHandler.get(number).subscribe((pokemon) => setPokemon(pokemon));\n }, []);\n\n return (\n <div\n className=\"card\"\n onClick={() => history.push(`/`)}\n style={{ maxWidth: 600, margin: \"0 auto\" }}\n >\n <img src={pokemon?.avatar} />\n <h2>\n #{pokemon?.number} <br /> {pokemon?.name}\n </h2>\n <ul>\n <li>Weight: {pokemon?.weight}</li>\n <li>Height: {pokemon?.height}</li>\n <li>Type: {pokemon?.description}</li>\n </ul>\n </div>\n );\n};\n\nexport default PokemonDetails;\n","/home/steven/Documents/GitHub/pokedex/src/views/Home.tsx",[],{"ruleId":"53","severity":1,"message":"54","line":13,"column":6,"nodeType":"55","endLine":13,"endColumn":8,"suggestions":"56"},{"ruleId":"57","severity":1,"message":"58","line":21,"column":7,"nodeType":"59","endLine":21,"endColumn":36},"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'number'. Either include it or remove the dependency array.","ArrayExpression",["60"],"jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement",{"desc":"61","fix":"62"},"Update the dependencies array to be: [number]",{"range":"63","text":"64"},[517,519],"[number]"]