-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
2 lines (1 loc) · 6.2 KB
/
.eslintcache
1
[{"E:\\react\\hooks-todo\\src\\index.js":"1","E:\\react\\hooks-todo\\src\\reportWebVitals.js":"2","E:\\react\\hooks-todo\\src\\App.js":"3","E:\\react\\hooks-todo\\src\\Todo.js":"4","E:\\react\\hooks-todo\\src\\Todolist.js":"5","E:\\react\\hooks-todo\\src\\hooks\\useInputState.js":"6","E:\\react\\hooks-todo\\src\\Todoform.js":"7","E:\\react\\hooks-todo\\src\\TodoItem.js":"8","E:\\react\\hooks-todo\\src\\hooks\\useToggleState.js":"9","E:\\react\\hooks-todo\\src\\EditTodoForm.js":"10","E:\\react\\hooks-todo\\src\\hooks\\useTodoState.js":"11","E:\\react\\hooks-todo\\src\\hooks\\useLocalStorageState.js":"12","E:\\react\\hooks-todo\\src\\context\\Todos.Context.js":"13","E:\\react\\hooks-todo\\src\\reducers\\Todos.reducer.js":"14","E:\\react\\hooks-todo\\src\\hooks\\useLocalStorageReducer.js":"15"},{"size":500,"mtime":499162500000,"results":"16","hashOfConfig":"17"},{"size":362,"mtime":499162500000,"results":"18","hashOfConfig":"17"},{"size":155,"mtime":1606486932666,"results":"19","hashOfConfig":"17"},{"size":1222,"mtime":1607775605424,"results":"20","hashOfConfig":"17"},{"size":980,"mtime":1607929730501,"results":"21","hashOfConfig":"17"},{"size":335,"mtime":1606568405534,"results":"22","hashOfConfig":"17"},{"size":835,"mtime":1607929873802,"results":"23","hashOfConfig":"17"},{"size":1607,"mtime":1607930661619,"results":"24","hashOfConfig":"17"},{"size":258,"mtime":1606750333463,"results":"25","hashOfConfig":"17"},{"size":856,"mtime":1607929817120,"results":"26","hashOfConfig":"17"},{"size":1054,"mtime":1607926345278,"results":"27","hashOfConfig":"17"},{"size":582,"mtime":1607095934836,"results":"28","hashOfConfig":"17"},{"size":752,"mtime":1607931877924,"results":"29","hashOfConfig":"17"},{"size":659,"mtime":1607928147572,"results":"30","hashOfConfig":"17"},{"size":573,"mtime":1607931847383,"results":"31","hashOfConfig":"17"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},"11pe3f8",{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"37"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"60","usedDeprecatedRules":"61"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"E:\\react\\hooks-todo\\src\\index.js",[],["68","69"],"E:\\react\\hooks-todo\\src\\reportWebVitals.js",[],["70","71"],"E:\\react\\hooks-todo\\src\\App.js",[],["72","73"],"E:\\react\\hooks-todo\\src\\Todo.js",[],"E:\\react\\hooks-todo\\src\\Todolist.js",[],"E:\\react\\hooks-todo\\src\\hooks\\useInputState.js",[],["74","75"],"E:\\react\\hooks-todo\\src\\Todoform.js",[],"E:\\react\\hooks-todo\\src\\TodoItem.js",[],"E:\\react\\hooks-todo\\src\\hooks\\useToggleState.js",[],"E:\\react\\hooks-todo\\src\\EditTodoForm.js",[],"E:\\react\\hooks-todo\\src\\hooks\\useTodoState.js",[],"E:\\react\\hooks-todo\\src\\hooks\\useLocalStorageState.js",["76"],"import {useState, useEffect} from 'react';\r\n\r\nfunction useLocalStorageState(key, defaultVal){\r\n const [state, setState] = useState(() => {\r\n let val;\r\n try{\r\n val = JSON.parse(window.localStorage.getItem(key) || String(defaultVal));\r\n }\r\n catch(e){\r\n val = defaultVal;\r\n }\r\n return val\r\n });\r\n useEffect(() => {\r\n window.localStorage.setItem(key, JSON.stringify(state));\r\n }, [state]);\r\n return [state, setState]\r\n}\r\n\r\nexport default useLocalStorageState;\r\n\r\n// reusable useLocalStorageState hook",["77","78"],"E:\\react\\hooks-todo\\src\\context\\Todos.Context.js",[],"E:\\react\\hooks-todo\\src\\reducers\\Todos.reducer.js",[],"E:\\react\\hooks-todo\\src\\hooks\\useLocalStorageReducer.js",["79"],{"ruleId":"80","replacedBy":"81"},{"ruleId":"82","replacedBy":"83"},{"ruleId":"80","replacedBy":"84"},{"ruleId":"82","replacedBy":"85"},{"ruleId":"80","replacedBy":"86"},{"ruleId":"82","replacedBy":"87"},{"ruleId":"80","replacedBy":"88"},{"ruleId":"82","replacedBy":"89"},{"ruleId":"90","severity":1,"message":"91","line":16,"column":8,"nodeType":"92","endLine":16,"endColumn":15,"suggestions":"93"},{"ruleId":"80","replacedBy":"94"},{"ruleId":"82","replacedBy":"95"},{"ruleId":"90","severity":1,"message":"91","line":16,"column":8,"nodeType":"92","endLine":16,"endColumn":15,"suggestions":"96"},"no-native-reassign",["97"],"no-negated-in-lhs",["98"],["97"],["98"],["97"],["98"],["97"],["98"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'key'. Either include it or remove the dependency array.","ArrayExpression",["99"],["97"],["98"],["100"],"no-global-assign","no-unsafe-negation",{"desc":"101","fix":"102"},{"desc":"101","fix":"103"},"Update the dependencies array to be: [key, state]",{"range":"104","text":"105"},{"range":"106","text":"105"},[459,466],"[key, state]",[495,502]]