-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintcache
1 lines (1 loc) · 15 KB
/
.eslintcache
1
[{"C:\\ReactJS projects\\resume-craft\\src\\reportWebVitals.js":"1","C:\\ReactJS projects\\resume-craft\\src\\index.js":"2","C:\\ReactJS projects\\resume-craft\\src\\App.js":"3","C:\\ReactJS projects\\resume-craft\\src\\components\\Home\\index.js":"4","C:\\ReactJS projects\\resume-craft\\src\\theme.js":"5","C:\\ReactJS projects\\resume-craft\\src\\components\\Containers.js":"6","C:\\ReactJS projects\\resume-craft\\src\\breakpoints.js":"7","C:\\ReactJS projects\\resume-craft\\src\\components\\Text.js":"8","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\index.js":"9","C:\\ReactJS projects\\resume-craft\\src\\components\\Form.js":"10","C:\\ReactJS projects\\resume-craft\\src\\components\\Button.js":"11","C:\\ReactJS projects\\resume-craft\\src\\components\\Misc.js":"12","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\Final.js":"13","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\SecondStep.js":"14","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\ThirdStep.js":"15","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\Experience.js":"16","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FirstStep.js":"17","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\index.js":"18","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\ExperienceModal.js":"19","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FifthStep.js":"20","C:\\ReactJS projects\\resume-craft\\src\\utils\\date.js":"21","C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\index.js":"22","C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Experience.js":"23","C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Contact.js":"24","C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Skill.js":"25","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\Layout.js":"26"},{"size":362,"mtime":1609153967866,"results":"27","hashOfConfig":"28"},{"size":497,"mtime":1609246702859,"results":"29","hashOfConfig":"28"},{"size":527,"mtime":1609691320363,"results":"30","hashOfConfig":"28"},{"size":1406,"mtime":1609516808859,"results":"31","hashOfConfig":"28"},{"size":386,"mtime":1609359213807,"results":"32","hashOfConfig":"28"},{"size":850,"mtime":1609593937270,"results":"33","hashOfConfig":"28"},{"size":600,"mtime":1609264774544,"results":"34","hashOfConfig":"28"},{"size":853,"mtime":1609690607885,"results":"35","hashOfConfig":"28"},{"size":830,"mtime":1609691280560,"results":"36","hashOfConfig":"28"},{"size":1337,"mtime":1609380745078,"results":"37","hashOfConfig":"28"},{"size":661,"mtime":1609388588825,"results":"38","hashOfConfig":"28"},{"size":527,"mtime":1609380212612,"results":"39","hashOfConfig":"28"},{"size":2344,"mtime":1609535258793,"results":"40","hashOfConfig":"28"},{"size":1542,"mtime":1609383851743,"results":"41","hashOfConfig":"28"},{"size":2410,"mtime":1609386686119,"results":"42","hashOfConfig":"28"},{"size":1901,"mtime":1609514815786,"results":"43","hashOfConfig":"28"},{"size":1944,"mtime":1609691348217,"results":"44","hashOfConfig":"28"},{"size":2482,"mtime":1609428878913,"results":"45","hashOfConfig":"28"},{"size":4044,"mtime":1609514871030,"results":"46","hashOfConfig":"28"},{"size":1583,"mtime":1609416361086,"results":"47","hashOfConfig":"28"},{"size":343,"mtime":1609429529445,"results":"48","hashOfConfig":"28"},{"size":3009,"mtime":1609536527132,"results":"49","hashOfConfig":"28"},{"size":1628,"mtime":1609515984842,"results":"50","hashOfConfig":"28"},{"size":624,"mtime":1609512309971,"results":"51","hashOfConfig":"28"},{"size":549,"mtime":1609512843250,"results":"52","hashOfConfig":"28"},{"size":1938,"mtime":1609691129843,"results":"53","hashOfConfig":"28"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"1pxlem",{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"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},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"79"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"79"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"94"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"97"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"70"},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\ReactJS projects\\resume-craft\\src\\reportWebVitals.js",[],["112","113"],"C:\\ReactJS projects\\resume-craft\\src\\index.js",[],["114","115"],"C:\\ReactJS projects\\resume-craft\\src\\App.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\Home\\index.js",[],"C:\\ReactJS projects\\resume-craft\\src\\theme.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\Containers.js",[],"C:\\ReactJS projects\\resume-craft\\src\\breakpoints.js",[],["116","117"],"C:\\ReactJS projects\\resume-craft\\src\\components\\Text.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\index.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\Form.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\Button.js",[],["118","119"],"C:\\ReactJS projects\\resume-craft\\src\\components\\Misc.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\Final.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\SecondStep.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\ThirdStep.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\Experience.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FirstStep.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\index.js",[],["120","121"],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FourthStep\\ExperienceModal.js",["122"],"import { useState, useEffect } from 'react';\r\nimport styled from 'styled-components';\r\n\r\nimport { FormGroup, Label, Input, TextArea } from '../../Form';\r\nimport { Button } from '../../Button';\r\nimport { H2 } from '../../Text';\r\n\r\nimport { Modal } from 'react-responsive-modal';\r\nimport 'react-responsive-modal/styles.css';\r\n\r\nimport './modal.css';\r\n\r\nconst ModalContent = styled.div`margin-top: 35px;`;\r\n\r\nconst Row = styled.div`display: flex;`;\r\n\r\nconst SmallFormGroup = styled(FormGroup)`\r\n\tmargin-bottom: 30px;\r\n`;\r\n\r\nconst SmallLabel = styled(Label)`\r\n\tfont-size: 16px;\r\n`;\r\nconst SmallInput = styled(Input)`\r\n\tpadding: 14px 15px;\r\n`;\r\n\r\nconst ExperienceModal = (props) => {\r\n\tconst [ formState, setFormState ] = useState({\r\n\t\ttitle: '',\r\n\t\temployer: '',\r\n\t\tstartDate: null,\r\n\t\tendDate: null,\r\n\t\tdescription: '',\r\n\t\tcurrent: false\r\n\t});\r\n\r\n\tconst handleChange = (e) => {\r\n\t\tif (e.target.type === 'checkbox') {\r\n\t\t\tsetFormState({\r\n\t\t\t\t...formState,\r\n\t\t\t\t[e.target.name]: e.target.checked\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tsetFormState({\r\n\t\t\t\t...formState,\r\n\t\t\t\t[e.target.name]: e.target.value\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleSubmit = (e) => {\r\n\t\te.preventDefault();\r\n\t\tconst { title, employer, startDate, endDate, description } = formState;\r\n\r\n\t\tprops.setState('experiences', [\r\n\t\t\t...props.getState('experiences', []),\r\n\t\t\t{\r\n\t\t\t\ttitle,\r\n\t\t\t\temployer,\r\n\t\t\t\tstartDate,\r\n\t\t\t\tendDate,\r\n\t\t\t\tdescription\r\n\t\t\t}\r\n\t\t]);\r\n\r\n\t\t// close the modal\r\n\t\tprops.onClose();\r\n\r\n\t\t// Reset the form\r\n\t\tsetFormState({\r\n\t\t\ttitle: '',\r\n\t\t\temployer: '',\r\n\t\t\tstartDate: null,\r\n\t\t\tendDate: null,\r\n\t\t\tdescription: '',\r\n\t\t\tcurrent: false\r\n\t\t});\r\n\t};\r\n\r\n\tuseEffect(\r\n\t\t() => {\r\n\t\t\tif (formState.current) {\r\n\t\t\t\tsetFormState({\r\n\t\t\t\t\t...formState,\r\n\t\t\t\t\tendDate: 'Present'\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\t[ formState.current ]\r\n\t);\r\n\r\n\treturn (\r\n\t\t<Modal open={props.open} onClose={props.onClose} closeOnOverlayClick={false} center>\r\n\t\t\t<H2>Work experience</H2>\r\n\t\t\t<ModalContent>\r\n\t\t\t\t<form onSubmit={handleSubmit}>\r\n\t\t\t\t\t<Row>\r\n\t\t\t\t\t\t<SmallFormGroup style={{ marginRight: '20px', flex: 1 }}>\r\n\t\t\t\t\t\t\t<SmallLabel>Job title</SmallLabel>\r\n\t\t\t\t\t\t\t<SmallInput\r\n\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Job title\"\r\n\t\t\t\t\t\t\t\tname=\"title\"\r\n\t\t\t\t\t\t\t\tvalue={formState.title}\r\n\t\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</SmallFormGroup>\r\n\r\n\t\t\t\t\t\t<SmallFormGroup style={{ flex: 1 }}>\r\n\t\t\t\t\t\t\t<SmallLabel>Employer</SmallLabel>\r\n\t\t\t\t\t\t\t<SmallInput\r\n\t\t\t\t\t\t\t\tplaceholder=\"Enter the employer name\"\r\n\t\t\t\t\t\t\t\tname=\"employer\"\r\n\t\t\t\t\t\t\t\tvalue={formState.employer}\r\n\t\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</SmallFormGroup>\r\n\t\t\t\t\t</Row>\r\n\r\n\t\t\t\t\t<Row>\r\n\t\t\t\t\t\t<SmallFormGroup style={{ marginRight: '20px', flex: 1 }}>\r\n\t\t\t\t\t\t\t<SmallLabel>Start date</SmallLabel>\r\n\t\t\t\t\t\t\t<SmallInput\r\n\t\t\t\t\t\t\t\ttype=\"date\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Start date\"\r\n\t\t\t\t\t\t\t\tname=\"startDate\"\r\n\t\t\t\t\t\t\t\tvalue={formState.startDate}\r\n\t\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</SmallFormGroup>\r\n\r\n\t\t\t\t\t\t<SmallFormGroup style={{ flex: 1 }}>\r\n\t\t\t\t\t\t\t<SmallLabel>End date</SmallLabel>\r\n\t\t\t\t\t\t\t<SmallInput\r\n\t\t\t\t\t\t\t\ttype={formState.current ? 'text' : 'date'}\r\n\t\t\t\t\t\t\t\tplaceholder=\"End date\"\r\n\t\t\t\t\t\t\t\tname=\"endDate\"\r\n\t\t\t\t\t\t\t\tvalue={formState.endDate}\r\n\t\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t\t\tdisabled={formState.current}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</SmallFormGroup>\r\n\t\t\t\t\t</Row>\r\n\r\n\t\t\t\t\t<SmallFormGroup>\r\n\t\t\t\t\t\t<SmallLabel>\r\n\t\t\t\t\t\t\tI currently work here{' '}\r\n\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\tname=\"current\"\r\n\t\t\t\t\t\t\t\ttype=\"checkbox\"\r\n\t\t\t\t\t\t\t\tchecked={formState.current}\r\n\t\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t\t/>{' '}\r\n\t\t\t\t\t\t</SmallLabel>\r\n\t\t\t\t\t</SmallFormGroup>\r\n\r\n\t\t\t\t\t<SmallFormGroup>\r\n\t\t\t\t\t\t<SmallLabel>Job description</SmallLabel>\r\n\t\t\t\t\t\t<TextArea\r\n\t\t\t\t\t\t\trows=\"5\"\r\n\t\t\t\t\t\t\tplaceholder=\"Description of what you did at the job\"\r\n\t\t\t\t\t\t\tname=\"description\"\r\n\t\t\t\t\t\t\tvalue={formState.description}\r\n\t\t\t\t\t\t\tonChange={handleChange}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</SmallFormGroup>\r\n\r\n\t\t\t\t\t<div style={{ textAlign: 'right' }}>\r\n\t\t\t\t\t\t<Button>Submit</Button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</ModalContent>\r\n\t\t</Modal>\r\n\t);\r\n};\r\n\r\nexport default ExperienceModal;\r\n","C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\FifthStep.js",[],"C:\\ReactJS projects\\resume-craft\\src\\utils\\date.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\index.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Experience.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Contact.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\resume\\Skill.js",[],"C:\\ReactJS projects\\resume-craft\\src\\components\\createResume\\Layout.js",[],{"ruleId":"123","replacedBy":"124"},{"ruleId":"125","replacedBy":"126"},{"ruleId":"123","replacedBy":"127"},{"ruleId":"125","replacedBy":"128"},{"ruleId":"123","replacedBy":"129"},{"ruleId":"125","replacedBy":"130"},{"ruleId":"123","replacedBy":"131"},{"ruleId":"125","replacedBy":"132"},{"ruleId":"123","replacedBy":"133"},{"ruleId":"125","replacedBy":"134"},{"ruleId":"135","severity":1,"message":"136","line":90,"column":3,"nodeType":"137","endLine":90,"endColumn":24,"suggestions":"138"},"no-native-reassign",["139"],"no-negated-in-lhs",["140"],["139"],["140"],["139"],["140"],["139"],["140"],["139"],["140"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'formState'. Either include it or remove the dependency array. Mutable values like 'formState.current' aren't valid dependencies because mutating them doesn't re-render the component.","ArrayExpression",["141"],"no-global-assign","no-unsafe-negation",{"desc":"142","fix":"143"},"Update the dependencies array to be: [formState]",{"range":"144","text":"145"},[1762,1783],"[formState]"]