-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 8.58 KB
/
.eslintcache
1
[{"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\styles\\global.ts":"1","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\components\\Button\\index.tsx":"2","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\App.tsx":"3","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\components\\Input\\index.tsx":"4","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\pages\\SignIn\\styles.ts":"5","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\utils\\getValidationErros.ts":"6","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\pages\\SignIn\\index.tsx":"7","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\context\\AuthContext.tsx":"8","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\services\\api.ts":"9"},{"size":527,"mtime":1612112531613,"results":"10","hashOfConfig":"11"},{"size":371,"mtime":1612112531613,"results":"12","hashOfConfig":"13"},{"size":430,"mtime":1612138345350,"results":"14","hashOfConfig":"11"},{"size":1876,"mtime":1612112531613,"results":"15","hashOfConfig":"11"},{"size":1373,"mtime":1612112531613,"results":"16","hashOfConfig":"11"},{"size":352,"mtime":1612112531629,"results":"17","hashOfConfig":"11"},{"size":2786,"mtime":1612140154227,"results":"18","hashOfConfig":"11"},{"size":823,"mtime":1612139594206,"results":"19","hashOfConfig":"11"},{"size":125,"mtime":1612139999059,"results":"20","hashOfConfig":"11"},{"filePath":"21","messages":"22","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xryg65",{"filePath":"23","messages":"24","errorCount":15,"warningCount":0,"fixableErrorCount":15,"fixableWarningCount":0,"source":null},"bfw2vd",{"filePath":"25","messages":"26","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"27"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"34"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":1,"warningCount":2,"fixableErrorCount":1,"fixableWarningCount":0,"source":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\styles\\global.ts",[],"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\components\\Button\\index.tsx",["42","43","44","45","46","47","48","49","50","51","52","53","54","55","56"],"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\App.tsx",["57"],"import React from 'react';\r\n\r\nimport SignIn from './pages/SignIn';\r\nimport SignUp from './pages/SignUp';\r\nimport GlobalStyle from './styles/global';\r\n\r\nimport { AuthProvider } from './context/AuthContext';\r\n\r\nconst App: React.FC = () => {\r\n return (\r\n <>\r\n <AuthProvider>\r\n <SignIn />\r\n </AuthProvider>\r\n\r\n <GlobalStyle />\r\n </>\r\n );\r\n};\r\n\r\nexport default App;\r\n","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\components\\Input\\index.tsx",["58"],"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\pages\\SignIn\\styles.ts",[],"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\utils\\getValidationErros.ts",["59"],"import { ValidationError } from 'yup';\r\n\r\ninterface Errors {\r\n [key: string]: string;\r\n}\r\n\r\nexport default function getValidationErrors(err: ValidationError): Errors {\r\n const validationErrors: Errors = {};\r\n\r\n err.inner.forEach((error) => {\r\n validationErrors[error.path!] = error.message;\r\n });\r\n\r\n return validationErrors;\r\n}\r\n","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\pages\\SignIn\\index.tsx",[],"C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\context\\AuthContext.tsx",["60","61","62"],"import React, { createContext, useCallback } from 'react';\r\nimport api from '../services/api';\r\n\r\n\r\ninterface SignInCredentials {\r\n email: string;\r\n password: string;\r\n}\r\n\r\ninterface AuthContextData {\r\n name: string;\r\n signIn(creadentials: SignInCredentials): Promise<void>;\r\n}\r\n\r\nexport const AuthContext = createContext<AuthContextData>(\r\n {} as AuthContextData\r\n);\r\n\r\nexport const AuthProvider: React.FC = ({ children }) => {\r\n const signIn = useCallback(async ({ email, password }) => {\r\n const response = await api.post('sessios', {\r\n email,\r\n password,\r\n });\r\n\r\n console.log(response.data);\r\n }, []);\r\n\r\n return (\r\n <AuthContext.Provider value={{ name: 'Heron', signIn }}>\r\n {children}\r\n </AuthContext.Provider>\r\n );\r\n};\r\n","C:\\Users\\heron\\OneDrive\\Documentos\\GitHub\\GoBarber\\src\\services\\api.ts",[],{"ruleId":"63","severity":2,"message":"64","line":1,"column":53,"nodeType":null,"endLine":1,"endColumn":54,"fix":"65"},{"ruleId":"63","severity":2,"message":"64","line":2,"column":1,"nodeType":null,"endLine":2,"endColumn":2,"fix":"66"},{"ruleId":"63","severity":2,"message":"64","line":3,"column":38,"nodeType":null,"endLine":3,"endColumn":39,"fix":"67"},{"ruleId":"63","severity":2,"message":"64","line":4,"column":1,"nodeType":null,"endLine":4,"endColumn":2,"fix":"68"},{"ruleId":"63","severity":2,"message":"64","line":5,"column":60,"nodeType":null,"endLine":5,"endColumn":61,"fix":"69"},{"ruleId":"63","severity":2,"message":"64","line":6,"column":1,"nodeType":null,"endLine":6,"endColumn":2,"fix":"70"},{"ruleId":"63","severity":2,"message":"64","line":7,"column":67,"nodeType":null,"endLine":7,"endColumn":68,"fix":"71"},{"ruleId":"63","severity":2,"message":"64","line":8,"column":13,"nodeType":null,"endLine":8,"endColumn":14,"fix":"72"},{"ruleId":"63","severity":2,"message":"64","line":9,"column":44,"nodeType":null,"endLine":9,"endColumn":45,"fix":"73"},{"ruleId":"63","severity":2,"message":"64","line":10,"column":23,"nodeType":null,"endLine":10,"endColumn":24,"fix":"74"},{"ruleId":"63","severity":2,"message":"64","line":11,"column":21,"nodeType":null,"endLine":11,"endColumn":22,"fix":"75"},{"ruleId":"63","severity":2,"message":"64","line":12,"column":7,"nodeType":null,"endLine":12,"endColumn":8,"fix":"76"},{"ruleId":"63","severity":2,"message":"64","line":13,"column":3,"nodeType":null,"endLine":13,"endColumn":4,"fix":"77"},{"ruleId":"63","severity":2,"message":"64","line":14,"column":1,"nodeType":null,"endLine":14,"endColumn":2,"fix":"78"},{"ruleId":"63","severity":2,"message":"64","line":15,"column":23,"nodeType":null,"endLine":15,"endColumn":24,"fix":"79"},{"ruleId":"80","severity":1,"message":"81","line":4,"column":8,"nodeType":"82","messageId":"83","endLine":4,"endColumn":14},{"ruleId":"80","severity":1,"message":"84","line":12,"column":8,"nodeType":"82","messageId":"83","endLine":12,"endColumn":15},{"ruleId":"85","severity":1,"message":"86","line":11,"column":26,"nodeType":"87","messageId":"88","endLine":11,"endColumn":37},{"ruleId":"63","severity":2,"message":"89","line":4,"column":1,"nodeType":null,"endLine":5,"endColumn":1,"fix":"90"},{"ruleId":"80","severity":1,"message":"91","line":5,"column":11,"nodeType":"82","messageId":"83","endLine":5,"endColumn":28},{"ruleId":"92","severity":1,"message":"93","line":26,"column":9,"nodeType":"94","messageId":"95","endLine":26,"endColumn":20},"prettier/prettier","Delete `␍`",{"range":"96","text":"97"},{"range":"98","text":"97"},{"range":"99","text":"97"},{"range":"100","text":"97"},{"range":"101","text":"97"},{"range":"102","text":"97"},{"range":"103","text":"97"},{"range":"104","text":"97"},{"range":"105","text":"97"},{"range":"106","text":"97"},{"range":"107","text":"97"},{"range":"108","text":"97"},{"range":"109","text":"97"},{"range":"110","text":"97"},{"range":"111","text":"97"},"@typescript-eslint/no-unused-vars","'SignUp' is defined but never used.","Identifier","unusedVar","'Tooltip' is defined but never used.","@typescript-eslint/no-non-null-assertion","Forbidden non-null assertion.","TSNonNullExpression","noNonNull","Delete `␍⏎`",{"range":"112","text":"97"},"'SignInCredentials' is defined but never used.","no-console","Unexpected console statement.","MemberExpression","unexpected",[52,53],"",[54,55],[93,94],[95,96],[156,157],[158,159],[226,227],[240,241],[285,286],[309,310],[331,332],[339,340],[343,344],[345,346],[369,370],[98,100]]