.eslintcache 9.5 KB

1
  1. [{"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\index.tsx":"1","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\store\\index.ts":"2","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\reducer\\index.ts":"3","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\api-data\\index.ts":"4","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\loading\\reducer\\index.ts":"5","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\operations\\index.ts":"6","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\action\\index.ts":"7","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\App.tsx":"8","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Authorization\\countries.tsx":"9","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\index.tsx":"10","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\Routes\\PrivateRoute\\PrivateRoute.tsx":"11","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\SMSCode\\index.tsx":"12","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Authorization\\index.tsx":"13","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\QRCode\\index.tsx":"14","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\selector\\index.ts":"15","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\Routes\\PublicRoute\\PublicRoute.tsx":"16","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Registration\\index.tsx":"17","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\rootReducer\\index.ts":"18"},{"size":651,"mtime":1644235341256,"results":"19","hashOfConfig":"20"},{"size":466,"mtime":1643966451100,"results":"21","hashOfConfig":"20"},{"size":856,"mtime":1644247575446,"results":"22","hashOfConfig":"20"},{"size":1418,"mtime":1644248075062,"results":"23","hashOfConfig":"20"},{"size":253,"mtime":1643967732431,"results":"24","hashOfConfig":"20"},{"size":1033,"mtime":1644247267630,"results":"25","hashOfConfig":"20"},{"size":543,"mtime":1644247432173,"results":"26","hashOfConfig":"20"},{"size":1211,"mtime":1644247506326,"results":"27","hashOfConfig":"20"},{"size":15435,"mtime":1643905724114,"results":"28","hashOfConfig":"20"},{"size":2209,"mtime":1644249021208,"results":"29","hashOfConfig":"20"},{"size":534,"mtime":1644246799216,"results":"30","hashOfConfig":"20"},{"size":1896,"mtime":1644236810242,"results":"31","hashOfConfig":"20"},{"size":3904,"mtime":1644235188871,"results":"32","hashOfConfig":"20"},{"size":1880,"mtime":1644235197856,"results":"33","hashOfConfig":"20"},{"size":607,"mtime":1644227472772,"results":"34","hashOfConfig":"20"},{"size":565,"mtime":1644247930856,"results":"35","hashOfConfig":"20"},{"size":2497,"mtime":1644245421331,"results":"36","hashOfConfig":"20"},{"size":530,"mtime":1643966531551,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"1qtp245",{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"45"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"45"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"75","usedDeprecatedRules":"40"},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\index.tsx",[],["78","79"],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\store\\index.ts",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\reducer\\index.ts",[],["80","81"],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\api-data\\index.ts",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\loading\\reducer\\index.ts",[],["82","83"],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\operations\\index.ts",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\action\\index.ts",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\App.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Authorization\\countries.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\index.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\Routes\\PrivateRoute\\PrivateRoute.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\SMSCode\\index.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Authorization\\index.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\QRCode\\index.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\authorization\\selector\\index.ts",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\Routes\\PublicRoute\\PublicRoute.tsx",[],"D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\components\\AuthPage\\Registration\\index.tsx",["84"],"import { makeStyles, Button, TextField, Typography } from '@material-ui/core'\r\nimport {useState} from 'react';\r\n\r\nconst useStyles = makeStyles({\r\n container: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n alignContent:'center',\r\n flexDirection: 'column',\r\n width: 350,\r\n margin: '0 auto',\r\n paddingTop: 64,\r\n paddingBottom: 24,\r\n },\r\n title: {\r\n marginBottom:20\r\n },\r\n buttonNext: {\r\n marginTop: 20,\r\n height: 50,\r\n color: '#f8f8f8',\r\n backgroundColor:'#1d74c5',\r\n },\r\n textField: {\r\n marginBottom:20\r\n }\r\n})\r\n\r\ninterface IRegistration {\r\n}\r\n\r\n\r\nconst Registration = () => {\r\n const classes = useStyles()\r\n const [name, setName] = useState<string>('')\r\n const [lastName, setLastName] = useState<string>('')\r\n \r\n const format = (a: string) => a.split(' ').join('').trim()\r\n\r\n const isValidCredentials = () => {\r\n \r\n const validName = name.length\r\n const validLastName = lastName.length\r\n if (validName < 3 || validName > 30) return false\r\n if (validLastName < 3 || validLastName > 30) return false\r\n return true\r\n }\r\n\r\n\r\n const handleTextField = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n const value = format(e.target.value)\r\n const name = e.target.name\r\n switch (name) {\r\n case 'name':\r\n setName(value)\r\n break;\r\n case 'lastName':\r\n setLastName(value)\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n const handleUpdateUser = () => {\r\n console.log(name,lastName)\r\n }\r\n\r\n return (\r\n <div className={classes.container} >\r\n <Typography\r\n className={classes.title}\r\n variant=\"h5\"\r\n color=\"initial\">\r\n Fill registration form\r\n </Typography>\r\n <TextField\r\n id=\"name\"\r\n name='name'\r\n label=\"Name\"\r\n value={name}\r\n fullWidth\r\n variant='outlined'\r\n onChange={handleTextField}\r\n className={classes.textField}\r\n />\r\n <TextField\r\n id=\"lastName\"\r\n name='lastName'\r\n label=\"LastName\"\r\n value={lastName}\r\n fullWidth\r\n variant='outlined'\r\n onChange={handleTextField}\r\n className={classes.textField}\r\n />\r\n\r\n {isValidCredentials() &&\r\n <Button\r\n onClick={handleUpdateUser}\r\n className={classes.buttonNext}\r\n color='primary'\r\n variant=\"contained\"\r\n fullWidth\r\n > NEXT\r\n </Button>}\r\n </div>\r\n );\r\n};\r\n\r\nexport default Registration;","D:\\web\\NIX\\FINAL-PROJECT-FRONT\\src\\redux\\rootReducer\\index.ts",[],{"ruleId":"85","replacedBy":"86"},{"ruleId":"87","replacedBy":"88"},{"ruleId":"85","replacedBy":"89"},{"ruleId":"87","replacedBy":"90"},{"ruleId":"85","replacedBy":"91"},{"ruleId":"87","replacedBy":"92"},{"ruleId":"93","severity":1,"message":"94","line":29,"column":11,"nodeType":"95","messageId":"96","endLine":29,"endColumn":24},"no-native-reassign",["97"],"no-negated-in-lhs",["98"],["97"],["98"],["97"],["98"],"@typescript-eslint/no-unused-vars","'IRegistration' is defined but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation"]