-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 7.91 KB
/
.eslintcache
1
[{"E:\\Akshay\\snapchat-clone-yt\\src\\index.js":"1","E:\\Akshay\\snapchat-clone-yt\\src\\App.js":"2","E:\\Akshay\\snapchat-clone-yt\\src\\serviceWorker.js":"3","E:\\Akshay\\snapchat-clone-yt\\src\\app\\store.js":"4","E:\\Akshay\\snapchat-clone-yt\\src\\features\\appSlice.js":"5","E:\\Akshay\\snapchat-clone-yt\\src\\WebcamCapture.js":"6","E:\\Akshay\\snapchat-clone-yt\\src\\features\\cameraSlice.js":"7","E:\\Akshay\\snapchat-clone-yt\\src\\Preview.js":"8","E:\\Akshay\\snapchat-clone-yt\\src\\firebase.js":"9","E:\\Akshay\\snapchat-clone-yt\\src\\Chats.js":"10","E:\\Akshay\\snapchat-clone-yt\\src\\Chat.js":"11","E:\\Akshay\\snapchat-clone-yt\\src\\ChatView.js":"12","E:\\Akshay\\snapchat-clone-yt\\src\\Login.js":"13"},{"size":627,"mtime":1647498438888,"results":"14","hashOfConfig":"15"},{"size":1860,"mtime":1648195777982,"results":"16","hashOfConfig":"15"},{"size":5014,"mtime":1647498438888,"results":"17","hashOfConfig":"15"},{"size":260,"mtime":1648133703470,"results":"18","hashOfConfig":"15"},{"size":729,"mtime":1648182836050,"results":"19","hashOfConfig":"15"},{"size":1248,"mtime":1648135864630,"results":"20","hashOfConfig":"15"},{"size":547,"mtime":1648136009008,"results":"21","hashOfConfig":"15"},{"size":2712,"mtime":1648198026793,"results":"22","hashOfConfig":"15"},{"size":672,"mtime":1648124440920,"results":"23","hashOfConfig":"15"},{"size":2308,"mtime":1648198743132,"results":"24","hashOfConfig":"15"},{"size":1254,"mtime":1648198791825,"results":"25","hashOfConfig":"15"},{"size":1210,"mtime":1648199198236,"results":"26","hashOfConfig":"15"},{"size":1000,"mtime":1648198165083,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"k14fa1",{"filePath":"31","messages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"35","messages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"39","messages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"30"},{"filePath":"42","messages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"44","messages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"46","messages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54"},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"E:\\Akshay\\snapchat-clone-yt\\src\\index.js",[],["57","58"],"E:\\Akshay\\snapchat-clone-yt\\src\\App.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\serviceWorker.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\app\\store.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\features\\appSlice.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\WebcamCapture.js",["59"],"import React, { useRef, useCallback } from \"react\";\r\nimport Webcam from \"react-webcam\";\r\nimport RadioButtonUncheckedIcon from \"@mui/icons-material/RadioButtonUnchecked\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { setCameraImage } from \"./features/cameraSlice\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport \"./WebcamCapture.css\";\r\n\r\nconst videoConstraints = {\r\n width: 250,\r\n height: 400,\r\n facingMode: \"user\",\r\n};\r\n\r\nfunction WebcamCapture() {\r\n const webcamRef = useRef(null);\r\n const dispatch = useDispatch();\r\n const history = useHistory();\r\n\r\n const capture = useCallback(() => {\r\n const imageSrc = webcamRef.current.getScreenshot();\r\n dispatch(setCameraImage(imageSrc));\r\n history.push(\"/preview\");\r\n }, [webcamRef]);\r\n\r\n return (\r\n <div className=\"webcamCapture\">\r\n <Webcam\r\n audio={false}\r\n height={videoConstraints.height}\r\n ref={webcamRef}\r\n screenshotFormat=\"image/jpeg\"\r\n width={videoConstraints.width}\r\n videoConstraints={videoConstraints}\r\n />\r\n\r\n <RadioButtonUncheckedIcon\r\n className=\"webcamCapture__button\"\r\n onClick={capture}\r\n fontSize=\"large\"\r\n />\r\n </div>\r\n );\r\n}\r\n\r\nexport default WebcamCapture;\r\n","E:\\Akshay\\snapchat-clone-yt\\src\\features\\cameraSlice.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\Preview.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\firebase.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\Chats.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\Chat.js",[],"E:\\Akshay\\snapchat-clone-yt\\src\\ChatView.js",["60"],"import React, { useEffect } from \"react\";\r\nimport \"./ChatView.css\";\r\nimport { selectSelectedImage } from \"./features/appSlice\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { CountdownCircleTimer } from \"react-countdown-circle-timer\";\r\n\r\nfunction ChatView() {\r\n const selectedImage = useSelector(selectSelectedImage);\r\n const history = useHistory();\r\n\r\n useEffect(() => {\r\n if (!selectedImage) {\r\n exit();\r\n }\r\n }, [selectedImage]);\r\n\r\n const exit = () => {\r\n history.replace(\"/chats\");\r\n };\r\n\r\n return (\r\n <div className=\"chatView\">\r\n <img src={selectedImage} onClick={exit} alt=\"\" />\r\n <div className=\"chatView__timer\">\r\n <CountdownCircleTimer\r\n isPlaying\r\n duration={10}\r\n strokeWidth={6}\r\n size={50}\r\n colors={[\"#004777\", \"#F7B801\", \"#A30000\", \"#A30000\"]}\r\n colorsTime={[7, 5, 2, 0]}\r\n >\r\n {({ remainingTime }) => {\r\n if (remainingTime === 0) {\r\n exit();\r\n }\r\n return remainingTime;\r\n }}\r\n </CountdownCircleTimer>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default ChatView;\r\n","E:\\Akshay\\snapchat-clone-yt\\src\\Login.js",[],{"ruleId":"61","replacedBy":"62"},{"ruleId":"63","replacedBy":"64"},{"ruleId":"65","severity":1,"message":"66","line":24,"column":6,"nodeType":"67","endLine":24,"endColumn":17,"suggestions":"68"},{"ruleId":"65","severity":1,"message":"69","line":16,"column":6,"nodeType":"67","endLine":16,"endColumn":21,"suggestions":"70"},"no-native-reassign",["71"],"no-negated-in-lhs",["72"],"react-hooks/exhaustive-deps","React Hook useCallback has missing dependencies: 'dispatch' and 'history'. Either include them or remove the dependency array.","ArrayExpression",["73"],"React Hook useEffect has a missing dependency: 'exit'. Either include it or remove the dependency array.",["74"],"no-global-assign","no-unsafe-negation",{"desc":"75","fix":"76"},{"desc":"77","fix":"78"},"Update the dependencies array to be: [dispatch, history]",{"range":"79","text":"80"},"Update the dependencies array to be: [exit, selectedImage]",{"range":"81","text":"82"},[748,759],"[dispatch, history]",[485,500],"[exit, selectedImage]"]