-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 4.24 KB
/
.eslintcache
1
[{"/home/tangir/Documents/pokedex/src/index.js":"1","/home/tangir/Documents/pokedex/src/App.js":"2","/home/tangir/Documents/pokedex/src/components/Searchbar.js":"3","/home/tangir/Documents/pokedex/src/components/PokemonDetail.js":"4","/home/tangir/Documents/pokedex/src/components/PokemonGrid.js":"5","/home/tangir/Documents/pokedex/src/components/PokemonStats.js":"6","/home/tangir/Documents/pokedex/src/components/PokemonCard.js":"7"},{"size":432,"mtime":1608030413090,"results":"8","hashOfConfig":"9"},{"size":1903,"mtime":1608816880700,"results":"10","hashOfConfig":"9"},{"size":960,"mtime":1609004048030,"results":"11","hashOfConfig":"9"},{"size":14266,"mtime":1609508165750,"results":"12","hashOfConfig":"9"},{"size":1522,"mtime":1609508029280,"results":"13","hashOfConfig":"9"},{"size":1779,"mtime":1609004048030,"results":"14","hashOfConfig":"9"},{"size":1084,"mtime":1608207809890,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"1do2pkj",{"filePath":"19","messages":"20","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"21","messages":"22","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"23","usedDeprecatedRules":"18"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"/home/tangir/Documents/pokedex/src/index.js",[],["32","33"],"/home/tangir/Documents/pokedex/src/App.js",[],"/home/tangir/Documents/pokedex/src/components/Searchbar.js",["34"],"import SearchBar from \"material-ui-search-bar\";\nimport React, { useState } from \"react\";\n\nimport { Grid } from \"@material-ui/core\";\n\nexport const Searchbar = (props) => {\n const [searchItem, setSearchItem] = useState(\"\");\n\n const searchHandler = (e) => {\n console.log(props.pokemonList.filter((name) => name.name.includes(e)));\n props.setSearchedList(\n props.pokemonList.filter((name) => name.name.includes(e.toLowerCase()))\n );\n };\n return (\n <>\n <Grid container spacing={1} justify=\"center\">\n <Grid item xs={12} sm={12} lg={6}>\n <SearchBar\n value={searchItem}\n onChange={(e) => searchHandler(e)}\n onRequestSearch={(e) => searchHandler(e)}\n onCancelSearch={() => {\n props.setSearchedList(props.pokemonList);\n }}\n cancelOnEscape={true}\n placeholder=\"Search Pokemon...\"\n />\n </Grid>\n </Grid>\n </>\n );\n};\n","/home/tangir/Documents/pokedex/src/components/PokemonDetail.js",[],"/home/tangir/Documents/pokedex/src/components/PokemonGrid.js",["35"],"/home/tangir/Documents/pokedex/src/components/PokemonStats.js",[],"/home/tangir/Documents/pokedex/src/components/PokemonCard.js",[],{"ruleId":"36","replacedBy":"37"},{"ruleId":"38","replacedBy":"39"},{"ruleId":"40","severity":1,"message":"41","line":7,"column":22,"nodeType":"42","messageId":"43","endLine":7,"endColumn":35},{"ruleId":"44","severity":1,"message":"45","line":33,"column":6,"nodeType":"46","endLine":33,"endColumn":8,"suggestions":"47"},"no-native-reassign",["48"],"no-negated-in-lhs",["49"],"no-unused-vars","'setSearchItem' is assigned a value but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'setPokemonList' and 'setSearchedList'. Either include them or remove the dependency array. If 'setPokemonList' changes too often, find the parent component that defines it and wrap that definition in useCallback.","ArrayExpression",["50"],"no-global-assign","no-unsafe-negation",{"desc":"51","fix":"52"},"Update the dependencies array to be: [setPokemonList, setSearchedList]",{"range":"53","text":"54"},[1003,1005],"[setPokemonList, setSearchedList]"]