-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 9.77 KB
/
.eslintcache
1
[{"C:\\js\\Admin-Frontend\\src\\index.tsx":"1","C:\\js\\Admin-Frontend\\src\\reportWebVitals.ts":"2","C:\\js\\Admin-Frontend\\src\\App.tsx":"3","C:\\js\\Admin-Frontend\\src\\Components\\MenuBar.tsx":"4","C:\\js\\Admin-Frontend\\src\\Components\\HomePage.tsx":"5","C:\\js\\Admin-Frontend\\src\\Components\\AddUser.tsx":"6","C:\\js\\Admin-Frontend\\src\\Components\\UserDetail.tsx":"7","C:\\js\\Admin-Frontend\\src\\Components\\UserList.tsx":"8","C:\\js\\Admin-Frontend\\src\\Components\\DrawerComponents.tsx":"9","C:\\js\\Admin-Frontend\\src\\Data.tsx":"10","C:\\js\\Admin-Frontend\\src\\Components\\ReportList.tsx":"11","C:\\js\\Admin-Frontend\\src\\Components\\UserCard.tsx":"12","C:\\js\\Admin-Frontend\\src\\BackendData.tsx":"13"},{"size":292,"mtime":1617425880446,"results":"14","hashOfConfig":"15"},{"size":425,"mtime":1611853668849,"results":"16","hashOfConfig":"15"},{"size":981,"mtime":1617427493666,"results":"17","hashOfConfig":"15"},{"size":2359,"mtime":1617425880337,"results":"18","hashOfConfig":"15"},{"size":171,"mtime":1617425880326,"results":"19","hashOfConfig":"15"},{"size":3908,"mtime":1617606548587,"results":"20","hashOfConfig":"15"},{"size":2153,"mtime":1620302396528,"results":"21","hashOfConfig":"15"},{"size":1297,"mtime":1620300399323,"results":"22","hashOfConfig":"15"},{"size":1827,"mtime":1617425880312,"results":"23","hashOfConfig":"15"},{"size":4314,"mtime":1617773478684,"results":"24","hashOfConfig":"15"},{"size":208,"mtime":1617425880371,"results":"25","hashOfConfig":"15"},{"size":2556,"mtime":1620299024277,"results":"26","hashOfConfig":"15"},{"size":172,"mtime":1620301992059,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},"cdkoco",{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"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":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"44","messages":"45","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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,"usedDeprecatedRules":"30"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"30"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"C:\\js\\Admin-Frontend\\src\\index.tsx",[],["56","57"],"C:\\js\\Admin-Frontend\\src\\reportWebVitals.ts",[],"C:\\js\\Admin-Frontend\\src\\App.tsx",[],"C:\\js\\Admin-Frontend\\src\\Components\\MenuBar.tsx",[],"C:\\js\\Admin-Frontend\\src\\Components\\HomePage.tsx",[],"C:\\js\\Admin-Frontend\\src\\Components\\AddUser.tsx",["58"],"import React from 'react';\nimport TextField from '@material-ui/core/TextField';\nimport Paper from '@material-ui/core/Paper';\nimport Button from '@material-ui/core/Button';\nimport { makeStyles } from '@material-ui/core/styles';\nimport {useForm} from 'react-hook-form';\nimport Grid from '@material-ui/core/Grid';\nimport { deepPurple } from '@material-ui/core/colors';\nimport axios from 'axios';\nconst useStyles = makeStyles((theme) => ({\n inp: {\n minWidth: 100,\n display : 'flex',\n margin : 'auto',\n marginBottom : 15,\n },\n paper : {\n paddingTop : 20,\n paddingBottom : 25,\n paddingLeft : 100,\n paddingRight : 100,\n width : \"60%\",\n margin : \"auto\",\n marginTop : 40,\n textAlign : \"center\"\n },\n button : {\n marginLeft : 10,\n marginRight : 10,\n },\n avatar : {\n height: '50px', \n width: '50px', \n fontSize : '35px',\n color: theme.palette.getContrastText(deepPurple[500]),\n backgroundColor: deepPurple[500],\n }\n }));\n\n\nconst AddUser = (props : any) => {\n\n const classes = useStyles();\n const {register, handleSubmit, setValue} = useForm();\n\n const submitForm = (data : any)=> {\n axios({\n method: 'post',\n url: 'http://localhost:3200/add/user',\n data: data\n })\n .then((res: any) =>{\n console.log(res)\n })\n .catch((err: any)=>{\n console.log(err)\n })\n }\n\n return (\n <div>\n <Paper className={classes.paper} elevation={3}>\n <h1>Add Client</h1>\n <form onSubmit={handleSubmit(submitForm)}>\n <Grid container spacing={4}>\n <Grid item xs={11}></Grid>\n <Grid item xs={4}>\n <TextField inputRef={register} required className={classes.inp} id=\"filled-basic\" label=\"Name\" variant=\"outlined\" name=\"name\"/>\n </Grid>\n <Grid item xs={4}>\n <TextField inputRef={register} required className={classes.inp} id=\"filled-basic\" label=\"Age\" type=\"text\" variant=\"outlined\" name=\"age\"/>\n </Grid>\n <Grid item xs={4}>\n <TextField inputRef={register} className={classes.inp} id=\"filled-basic\" label=\"Image Url\" type=\"url\" variant=\"outlined\" name=\"imageUrl\" />\n </Grid>\n \n <Grid item xs={6}>\n <TextField inputRef={register} required className={classes.inp} id=\"filled-basic\" label=\"Client Email\" type=\"email\" variant=\"outlined\" name=\"email1\" />\n </Grid>\n <Grid item xs={6}>\n <TextField inputRef={register} required className={classes.inp} id=\"filled-basic\" label=\"Guardian Email\" type=\"email\" variant=\"outlined\" name=\"email2\" />\n </Grid>\n\n <Grid item xs={6}>\n <TextField inputRef={register} required className={classes.inp} id=\"filled-basic\" label=\"Address\" multiline rows={4} variant=\"outlined\" name=\"address\" />\n </Grid>\n <Grid item xs={6}>\n <TextField inputRef={register} className={classes.inp} id=\"filled-basic\" label=\"Remarks\" multiline rows={4} variant=\"outlined\" name=\"remarks\" />\n </Grid>\n </Grid>\n \n <Button variant=\"contained\" color=\"primary\" type=\"submit\" className={classes.button}>Submit</Button>\n <Button variant=\"contained\" type=\"reset\" className={classes.button}>Clear</Button>\n </form>\n </Paper>\n </div>\n )\n}\n\nexport default AddUser;","C:\\js\\Admin-Frontend\\src\\Components\\UserDetail.tsx",["59","60","61"],"C:\\js\\Admin-Frontend\\src\\Components\\UserList.tsx",["62","63"],"C:\\js\\Admin-Frontend\\src\\Components\\DrawerComponents.tsx",[],"C:\\js\\Admin-Frontend\\src\\Data.tsx",[],"C:\\js\\Admin-Frontend\\src\\Components\\ReportList.tsx",[],"C:\\js\\Admin-Frontend\\src\\Components\\UserCard.tsx",[],"C:\\js\\Admin-Frontend\\src\\BackendData.tsx",["64"],{"ruleId":"65","replacedBy":"66"},{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","severity":1,"message":"70","line":44,"column":36,"nodeType":"71","messageId":"72","endLine":44,"endColumn":44},{"ruleId":"69","severity":1,"message":"73","line":3,"column":9,"nodeType":"71","messageId":"72","endLine":3,"endColumn":17},{"ruleId":"69","severity":1,"message":"74","line":4,"column":8,"nodeType":"71","messageId":"72","endLine":4,"endColumn":16},{"ruleId":"69","severity":1,"message":"75","line":9,"column":11,"nodeType":"71","messageId":"72","endLine":9,"endColumn":23},{"ruleId":"69","severity":1,"message":"74","line":3,"column":8,"nodeType":"71","messageId":"72","endLine":3,"endColumn":16},{"ruleId":"76","severity":1,"message":"77","line":24,"column":8,"nodeType":"78","endLine":24,"endColumn":10,"suggestions":"79"},{"ruleId":"69","severity":1,"message":"80","line":1,"column":8,"nodeType":"71","messageId":"72","endLine":1,"endColumn":13},"no-native-reassign",["81"],"no-negated-in-lhs",["82"],"@typescript-eslint/no-unused-vars","'setValue' is assigned a value but never used.","Identifier","unusedVar","'useQuery' is defined but never used.","'userData' is defined but never used.","'params' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'userList.data'. Either include it or remove the dependency array. You can also replace multiple useState variables with useReducer if 'setUserList' needs the current value of 'userList.data'.","ArrayExpression",["83"],"'React' is defined but never used.","no-global-assign","no-unsafe-negation",{"desc":"84","fix":"85"},"Update the dependencies array to be: [userList.data]",{"range":"86","text":"87"},[882,884],"[userList.data]"]