-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 14.3 KB
/
.eslintcache
1
[{"D:\\Вика\\js\\movie-db\\src\\index.js":"1","D:\\Вика\\js\\movie-db\\src\\components\\app\\index.js":"2","D:\\Вика\\js\\movie-db\\src\\components\\app\\app.jsx":"3","D:\\Вика\\js\\movie-db\\src\\servises\\Context.js":"4","D:\\Вика\\js\\movie-db\\src\\servises\\defGenres.js":"5","D:\\Вика\\js\\movie-db\\src\\servises\\getFromLocalStorage.js":"6","D:\\Вика\\js\\movie-db\\src\\components\\menu-sider\\index.js":"7","D:\\Вика\\js\\movie-db\\src\\components\\loader\\index.js":"8","D:\\Вика\\js\\movie-db\\src\\components\\search-box\\index.js":"9","D:\\Вика\\js\\movie-db\\src\\components\\error\\index.js":"10","D:\\Вика\\js\\movie-db\\src\\components\\movie-container\\index.js":"11","D:\\Вика\\js\\movie-db\\src\\components\\movie-detail\\index.js":"12","D:\\Вика\\js\\movie-db\\src\\components\\loader\\loader.jsx":"13","D:\\Вика\\js\\movie-db\\src\\components\\menu-sider\\menu-sider.jsx":"14","D:\\Вика\\js\\movie-db\\src\\components\\movie-container\\movie-container.jsx":"15","D:\\Вика\\js\\movie-db\\src\\components\\movie-detail\\movie-detail.jsx":"16","D:\\Вика\\js\\movie-db\\src\\components\\error\\error.jsx":"17","D:\\Вика\\js\\movie-db\\src\\servises\\defTotalRes.js":"18","D:\\Вика\\js\\movie-db\\src\\components\\search-box\\search-box.jsx":"19","D:\\Вика\\js\\movie-db\\src\\servises\\choseRandomMovie.js":"20","D:\\Вика\\js\\movie-db\\src\\servises\\onRedirectClick.js":"21","D:\\Вика\\js\\movie-db\\src\\components\\starting-page\\index.js":"22","D:\\Вика\\js\\movie-db\\src\\components\\render-movie-card\\index.js":"23","D:\\Вика\\js\\movie-db\\src\\components\\filter-menu\\filter-menu.jsx":"24","D:\\Вика\\js\\movie-db\\src\\components\\render-movie-card\\render-movie-card.jsx":"25","D:\\Вика\\js\\movie-db\\src\\components\\starting-page\\starting-page.jsx":"26","D:\\Вика\\js\\movie-db\\src\\servises\\getDataRequest.js":"27","D:\\Вика\\js\\movie-db\\src\\components\\movie-card\\index.js":"28","D:\\Вика\\js\\movie-db\\src\\components\\movie-card\\movie-card.jsx":"29","D:\\Вика\\js\\movie-db\\src\\servises\\toggleItem.js":"30"},{"size":322,"mtime":1619529177012,"results":"31","hashOfConfig":"32"},{"size":48,"mtime":1610715858880,"results":"33","hashOfConfig":"32"},{"size":27691,"mtime":1619530316494,"results":"34","hashOfConfig":"32"},{"size":98,"mtime":1613739105728,"results":"35","hashOfConfig":"32"},{"size":260,"mtime":1617872226623,"results":"36","hashOfConfig":"32"},{"size":317,"mtime":1616497627845,"results":"37","hashOfConfig":"32"},{"size":68,"mtime":1610785389812,"results":"38","hashOfConfig":"32"},{"size":58,"mtime":1610785656805,"results":"39","hashOfConfig":"32"},{"size":64,"mtime":1610785389816,"results":"40","hashOfConfig":"32"},{"size":55,"mtime":1618389559385,"results":"41","hashOfConfig":"32"},{"size":83,"mtime":1617872226493,"results":"42","hashOfConfig":"32"},{"size":73,"mtime":1611051525320,"results":"43","hashOfConfig":"32"},{"size":242,"mtime":1617976255646,"results":"44","hashOfConfig":"32"},{"size":3683,"mtime":1619170363879,"results":"45","hashOfConfig":"32"},{"size":3820,"mtime":1619530281189,"results":"46","hashOfConfig":"32"},{"size":2791,"mtime":1619000841124,"results":"47","hashOfConfig":"32"},{"size":6878,"mtime":1618914509620,"results":"48","hashOfConfig":"32"},{"size":286,"mtime":1618492552447,"results":"49","hashOfConfig":"32"},{"size":2483,"mtime":1619175827399,"results":"50","hashOfConfig":"32"},{"size":229,"mtime":1617705056455,"results":"51","hashOfConfig":"32"},{"size":361,"mtime":1619418722862,"results":"52","hashOfConfig":"32"},{"size":76,"mtime":1616396085676,"results":"53","hashOfConfig":"32"},{"size":87,"mtime":1617872226498,"results":"54","hashOfConfig":"32"},{"size":1243,"mtime":1618828958911,"results":"55","hashOfConfig":"32"},{"size":2325,"mtime":1619530151932,"results":"56","hashOfConfig":"32"},{"size":20784,"mtime":1619418722830,"results":"57","hashOfConfig":"32"},{"size":1070,"mtime":1618816128099,"results":"58","hashOfConfig":"32"},{"size":68,"mtime":1617872226490,"results":"59","hashOfConfig":"32"},{"size":1946,"mtime":1617978543623,"results":"60","hashOfConfig":"32"},{"size":471,"mtime":1618816128218,"results":"61","hashOfConfig":"32"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1ccfoan",{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"105","messages":"106","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"111","messages":"112","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"113","usedDeprecatedRules":"70"},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},"D:\\Вика\\js\\movie-db\\src\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\app\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\app\\app.jsx",[],"D:\\Вика\\js\\movie-db\\src\\servises\\Context.js",[],["124","125"],"D:\\Вика\\js\\movie-db\\src\\servises\\defGenres.js",[],"D:\\Вика\\js\\movie-db\\src\\servises\\getFromLocalStorage.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\menu-sider\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\loader\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\search-box\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\error\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-container\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-detail\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\loader\\loader.jsx",[],"D:\\Вика\\js\\movie-db\\src\\components\\menu-sider\\menu-sider.jsx",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-container\\movie-container.jsx",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-detail\\movie-detail.jsx",[],"D:\\Вика\\js\\movie-db\\src\\components\\error\\error.jsx",[],"D:\\Вика\\js\\movie-db\\src\\servises\\defTotalRes.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\search-box\\search-box.jsx",[],"D:\\Вика\\js\\movie-db\\src\\servises\\choseRandomMovie.js",[],"D:\\Вика\\js\\movie-db\\src\\servises\\onRedirectClick.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\starting-page\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\render-movie-card\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\filter-menu\\filter-menu.jsx",[],"D:\\Вика\\js\\movie-db\\src\\components\\render-movie-card\\render-movie-card.jsx",["126","127","128"],"import './render-movie-card.css'\r\nimport React, { Suspense, useContext, useCallback, useEffect } from 'react';\r\nimport MyContext from '../../servises/Context';\r\nimport getDataRequest from '../../servises/getDataRequest';\r\nimport Loader from '../loader';\r\n\r\nconst MovieCard = React.lazy(() => import('../movie-card/'))\r\n\r\nconst RenderMovieCard = ({ state }) => {\r\n\r\n const { favList, watchList, q, setMovie, setLoading, setError, setTotalResults, setActivateModal, setDetailRequest, setShowDetail, genreList, yearValue, currPage } = useContext(MyContext)\r\n\r\n const getData = useCallback(() => {\r\n getDataRequest('s', q, setMovie, currPage, genreList, yearValue, setError, setTotalResults, setLoading, setDetailRequest);\r\n }, [q, currPage, genreList, yearValue])\r\n\r\n useEffect(() => {\r\n setLoading(true);\r\n setError(null);\r\n setMovie(null)\r\n setTotalResults(null)\r\n getData()\r\n }, [getData]);\r\n\r\n const movieClickHandler = (item) => { //обработчик события клика. при клике на карточку\r\n setActivateModal(true); //показать модалку. эл импортируется из другого компонента\r\n setDetailRequest(true); //обновить стейт с состоянием запроса к серверу\r\n getDataRequest('i', item.imdbID, setShowDetail, currPage, genreList, yearValue, setError, setTotalResults, setLoading, setDetailRequest) //запрос к серверу за деталями фильма\r\n }\r\n\r\n let uniqueID = []\r\n\r\n return (\r\n <>\r\n {state !== null && state.length > 0 && state.slice(0, 10).map((result) => {\r\n\r\n if (!uniqueID.includes(result.imdbID)) {\r\n uniqueID.push(result.imdbID)\r\n\r\n return (\r\n <Suspense fallback={<Loader />}>\r\n <MovieCard\r\n isFav={favList.includes(result) || localStorage.getItem('fav_' + result.imdbID)}\r\n isWatch={watchList.includes(result) || localStorage.getItem('watch_' + result.imdbID)}\r\n\r\n ClickHandler={() => movieClickHandler(result)}\r\n key={result.imdbID}\r\n result={result}\r\n {...result}\r\n />\r\n </Suspense>\r\n )\r\n }\r\n })}\r\n </>\r\n )\r\n}\r\n\r\nexport default RenderMovieCard;","D:\\Вика\\js\\movie-db\\src\\components\\starting-page\\starting-page.jsx",[],"D:\\Вика\\js\\movie-db\\src\\servises\\getDataRequest.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-card\\index.js",[],"D:\\Вика\\js\\movie-db\\src\\components\\movie-card\\movie-card.jsx",[],"D:\\Вика\\js\\movie-db\\src\\servises\\toggleItem.js",[],{"ruleId":"129","replacedBy":"130"},{"ruleId":"131","replacedBy":"132"},{"ruleId":"133","severity":1,"message":"134","line":15,"column":6,"nodeType":"135","endLine":15,"endColumn":41,"suggestions":"136"},{"ruleId":"133","severity":1,"message":"137","line":23,"column":6,"nodeType":"135","endLine":23,"endColumn":15,"suggestions":"138"},{"ruleId":"139","severity":1,"message":"140","line":35,"column":78,"nodeType":"141","messageId":"142","endLine":35,"endColumn":80},"no-native-reassign",["143"],"no-negated-in-lhs",["144"],"react-hooks/exhaustive-deps","React Hook useCallback has missing dependencies: 'setDetailRequest', 'setError', 'setLoading', 'setMovie', and 'setTotalResults'. Either include them or remove the dependency array.","ArrayExpression",["145"],"React Hook useEffect has missing dependencies: 'setError', 'setLoading', 'setMovie', and 'setTotalResults'. Either include them or remove the dependency array.",["146"],"array-callback-return","Array.prototype.map() expects a value to be returned at the end of arrow function.","ArrowFunctionExpression","expectedAtEnd","no-global-assign","no-unsafe-negation",{"desc":"147","fix":"148"},{"desc":"149","fix":"150"},"Update the dependencies array to be: [q, setMovie, currPage, genreList, yearValue, setError, setTotalResults, setLoading, setDetailRequest]",{"range":"151","text":"152"},"Update the dependencies array to be: [getData, setError, setLoading, setMovie, setTotalResults]",{"range":"153","text":"154"},[730,765],"[q, setMovie, currPage, genreList, yearValue, setError, setTotalResults, setLoading, setDetailRequest]",[902,911],"[getData, setError, setLoading, setMovie, setTotalResults]"]