-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.13 KB
/
.eslintcache
1
[{"/Users/kasper/Documents/snapchart-clone/src/index.js":"1","/Users/kasper/Documents/snapchart-clone/src/serviceWorker.js":"2","/Users/kasper/Documents/snapchart-clone/src/App.js":"3","/Users/kasper/Documents/snapchart-clone/src/app/store.js":"4","/Users/kasper/Documents/snapchart-clone/src/features/appSlice.js":"5","/Users/kasper/Documents/snapchart-clone/src/WebcamCapture.js":"6","/Users/kasper/Documents/snapchart-clone/src/features/cameraSlice.js":"7","/Users/kasper/Documents/snapchart-clone/src/Preview.js":"8","/Users/kasper/Documents/snapchart-clone/src/firebase.js":"9","/Users/kasper/Documents/snapchart-clone/src/Chats.js":"10","/Users/kasper/Documents/snapchart-clone/src/Chat.js":"11","/Users/kasper/Documents/snapchart-clone/src/ChatView.js":"12","/Users/kasper/Documents/snapchart-clone/src/Login.js":"13"},{"size":644,"mtime":1610351366595,"results":"14","hashOfConfig":"15"},{"size":5141,"mtime":1610351366632,"results":"16","hashOfConfig":"15"},{"size":1659,"mtime":1611226228940,"results":"17","hashOfConfig":"15"},{"size":264,"mtime":1610444842157,"results":"18","hashOfConfig":"15"},{"size":745,"mtime":1611218991609,"results":"19","hashOfConfig":"15"},{"size":1204,"mtime":1610612945329,"results":"20","hashOfConfig":"15"},{"size":545,"mtime":1610523820669,"results":"21","hashOfConfig":"15"},{"size":2619,"mtime":1611226097876,"results":"22","hashOfConfig":"15"},{"size":617,"mtime":1610541930972,"results":"23","hashOfConfig":"15"},{"size":2202,"mtime":1611225834409,"results":"24","hashOfConfig":"15"},{"size":1167,"mtime":1611221077654,"results":"25","hashOfConfig":"15"},{"size":1242,"mtime":1611220975574,"results":"26","hashOfConfig":"15"},{"size":950,"mtime":1611222473916,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"12wgsop",{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"30"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54","usedDeprecatedRules":"30"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"/Users/kasper/Documents/snapchart-clone/src/index.js",[],["57","58"],"/Users/kasper/Documents/snapchart-clone/src/serviceWorker.js",[],"/Users/kasper/Documents/snapchart-clone/src/App.js",["59"],"/Users/kasper/Documents/snapchart-clone/src/app/store.js",[],"/Users/kasper/Documents/snapchart-clone/src/features/appSlice.js",[],"/Users/kasper/Documents/snapchart-clone/src/WebcamCapture.js",["60"],"import React, { useCallback, useRef } from \"react\";\nimport Webcam from \"react-webcam\";\nimport RadioButtonUncheckedIcon from \"@material-ui/icons/RadioButtonUnchecked\";\nimport { setCameraImage } from \"./features/cameraSlice\";\nimport { useDispatch } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport \"./WebcamCapture.css\";\n\nconst videoConstraints = {\n width: 250,\n height: 400,\n facingMode: \"user\",\n};\n\nconst WebcamCapture = () => {\n const webcamRef = useRef(null);\n const dispatch = useDispatch();\n const history = useHistory();\n\n const capture = useCallback(() => {\n const imageSrc = webcamRef.current.getScreenshot();\n dispatch(setCameraImage(imageSrc));\n history.push(\"/preview\");\n }, [webcamRef]);\n\n return (\n <div className=\"webcamCapture\">\n <Webcam\n audio={false}\n height={videoConstraints.height}\n width={videoConstraints.width}\n ref={webcamRef}\n screenshotFormat=\"image/jpeg\"\n videoConstraints={videoConstraints}\n />\n <RadioButtonUncheckedIcon\n className=\"webcamCapture__button\"\n onClick={capture}\n fontSize=\"large\"\n />\n </div>\n );\n};\n\nexport default WebcamCapture;\n","/Users/kasper/Documents/snapchart-clone/src/features/cameraSlice.js",[],"/Users/kasper/Documents/snapchart-clone/src/Preview.js",[],"/Users/kasper/Documents/snapchart-clone/src/firebase.js",[],"/Users/kasper/Documents/snapchart-clone/src/Chats.js",[],"/Users/kasper/Documents/snapchart-clone/src/Chat.js",[],"/Users/kasper/Documents/snapchart-clone/src/ChatView.js",["61"],"import React, { useEffect } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport \"./ChatView.css\";\nimport { selectSelectedImage } from \"./features/appSlice\";\nimport { CountdownCircleTimer } from \"react-countdown-circle-timer\";\n\nconst ChatView = () => {\n const selectedImage = useSelector(selectSelectedImage);\n const history = useHistory();\n\n console.log(\"selectedImage\", selectedImage);\n\n useEffect(() => {\n if (!selectedImage) {\n exit();\n }\n }, [selectedImage]);\n\n const exit = () => {\n history.replace(\"/chats\");\n };\n\n return (\n <div className=\"chatView\">\n <img src={selectedImage} onClick={exit} alt=\"\" />\n <div className=\"chatView__timer\">\n <CountdownCircleTimer\n isPlaying\n duration={10}\n strokeWidth={6}\n size={50}\n colors={[\n [\"#004777\", 0.33],\n [\"#F7B801\", 0.33],\n [\"#A30000\", 0.33],\n ]}\n >\n {({ remainingTime }) => {\n if (remainingTime === 0) {\n exit();\n }\n return remainingTime;\n }}\n </CountdownCircleTimer>\n </div>\n </div>\n );\n};\n\nexport default ChatView;\n","/Users/kasper/Documents/snapchart-clone/src/Login.js",[],{"ruleId":"62","replacedBy":"63"},{"ruleId":"64","replacedBy":"65"},{"ruleId":"66","severity":1,"message":"67","line":31,"column":6,"nodeType":"68","endLine":31,"endColumn":8,"suggestions":"69"},{"ruleId":"66","severity":1,"message":"70","line":24,"column":6,"nodeType":"68","endLine":24,"endColumn":17,"suggestions":"71"},{"ruleId":"66","severity":1,"message":"72","line":18,"column":6,"nodeType":"68","endLine":18,"endColumn":21,"suggestions":"73"},"no-native-reassign",["74"],"no-negated-in-lhs",["75"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["76"],"React Hook useCallback has missing dependencies: 'dispatch' and 'history'. Either include them or remove the dependency array.",["77"],"React Hook useEffect has a missing dependency: 'exit'. Either include it or remove the dependency array.",["78"],"no-global-assign","no-unsafe-negation",{"desc":"79","fix":"80"},{"desc":"81","fix":"82"},{"desc":"83","fix":"84"},"Update the dependencies array to be: [dispatch]",{"range":"85","text":"86"},"Update the dependencies array to be: [dispatch, history]",{"range":"87","text":"88"},"Update the dependencies array to be: [exit, selectedImage]",{"range":"89","text":"90"},[927,929],"[dispatch]",[727,738],"[dispatch, history]",[521,536],"[exit, selectedImage]"]