-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 5.92 KB
/
.eslintcache
1
[{"/Users/k18083kk/Desktop/typescript_tutorial/src/index.tsx":"1","/Users/k18083kk/Desktop/typescript_tutorial/src/serviceWorker.ts":"2","/Users/k18083kk/Desktop/typescript_tutorial/src/app/store.ts":"3","/Users/k18083kk/Desktop/typescript_tutorial/src/App.tsx":"4","/Users/k18083kk/Desktop/typescript_tutorial/src/features/counter/counterSlice.ts":"5","/Users/k18083kk/Desktop/typescript_tutorial/src/features/counter/Counter.tsx":"6","/Users/k18083kk/Desktop/typescript_tutorial/src/TestComponent.tsx":"7","/Users/k18083kk/Desktop/typescript_tutorial/src/firebase.ts":"8","/Users/k18083kk/Desktop/typescript_tutorial/src/TaskItem.tsx":"9"},{"size":648,"mtime":1609887654599,"results":"10","hashOfConfig":"11"},{"size":5424,"mtime":1609887654605,"results":"12","hashOfConfig":"11"},{"size":414,"mtime":1609887654588,"results":"13","hashOfConfig":"11"},{"size":3499,"mtime":1609994754032,"results":"14","hashOfConfig":"11"},{"size":1851,"mtime":1609887654592,"results":"15","hashOfConfig":"11"},{"size":1626,"mtime":1609887654590,"results":"16","hashOfConfig":"11"},{"size":823,"mtime":1609916333728,"results":"17","hashOfConfig":"11"},{"size":633,"mtime":1609994754036,"results":"18","hashOfConfig":"11"},{"size":1250,"mtime":1609994754033,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"s0kv0z",{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"35","usedDeprecatedRules":"22"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"40"},"/Users/k18083kk/Desktop/typescript_tutorial/src/index.tsx",[],["41","42"],"/Users/k18083kk/Desktop/typescript_tutorial/src/serviceWorker.ts",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/app/store.ts",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/App.tsx",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/features/counter/counterSlice.ts",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/features/counter/Counter.tsx",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/TestComponent.tsx",["43","44"],"import React, { useState } from \"react\";\n\ninterface Props {\n text: string;\n}\n\ninterface UserData {\n id: number;\n name: string;\n}\n\nconst TestComponent: React.FC<Props> = (props) => {\n const [count, setCount] = useState<number>(0);\n const [user, setUser] = useState<UserData>({ id: 1, name: \"kaito\" });\n const [inputData, setInputData] = useState(\"\");\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) =>\n setInputData(e.target.value);\n const hanleClick = () => setCount(count + 1);\n return (\n <div>\n <h1>{props.text}</h1>\n <input type=\"text\" value={inputData} onChange={handleInputChange} />\n <div className=\"button\">\n <input type=\"button\" onClick={hanleClick} value={count} />\n </div>\n <h1>{inputData}</h1>\n </div>\n );\n};\n\nexport default TestComponent;\n","/Users/k18083kk/Desktop/typescript_tutorial/src/firebase.ts",[],"/Users/k18083kk/Desktop/typescript_tutorial/src/TaskItem.tsx",["45"],"import React, { useState } from \"react\";\nimport firebase from \"firebase/app\";\nimport { ListItem, TextField, Grid } from \"@material-ui/core\";\nimport DeleteOutlinedIcon from \"@material-ui/icons/DeleteOutlineOutlined\";\nimport EditOutlinedIcon from \"@material-ui/icons/EditOutlined\";\nimport { db } from \"./firebase\";\n\ninterface PROPS {\n id: string;\n title: string;\n}\n\nconst TaskItem: React.FC<PROPS> = (props) => {\n const [title, setTitle] = useState(props.title);\n\n const editTask = () => {\n db.collection(\"task\").doc(props.id).set({ title: title }, { merge: true });\n };\n\n const deleteTask = () => {\n db.collection(\"tasks\").doc(props.id).delete();\n };\n\n return (\n <ListItem>\n <h2>{props.title}</h2>\n <Grid container justify=\"flex-end\">\n <TextField\n InputLabelProps={{\n shrink: true,\n }}\n label=\"Edit task\"\n value={title}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setTitle(e.target.value)\n }\n />\n </Grid>\n <button onClick={editTask}>\n <EditOutlinedIcon />\n </button>\n <button onClick={deleteTask}>\n <DeleteOutlinedIcon />\n </button>\n </ListItem>\n );\n};\n\nexport default TaskItem;\n",{"ruleId":"46","replacedBy":"47"},{"ruleId":"48","replacedBy":"49"},{"ruleId":"50","severity":1,"message":"51","line":14,"column":10,"nodeType":"52","messageId":"53","endLine":14,"endColumn":14},{"ruleId":"50","severity":1,"message":"54","line":14,"column":16,"nodeType":"52","messageId":"53","endLine":14,"endColumn":23},{"ruleId":"50","severity":1,"message":"55","line":2,"column":8,"nodeType":"52","messageId":"53","endLine":2,"endColumn":16},"no-native-reassign",["56"],"no-negated-in-lhs",["57"],"@typescript-eslint/no-unused-vars","'user' is assigned a value but never used.","Identifier","unusedVar","'setUser' is assigned a value but never used.","'firebase' is defined but never used.","no-global-assign","no-unsafe-negation"]