1 |
- [{"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\index.tsx":"1","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\hooks\\useCountries.ts":"2","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\data\\api.js":"3","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Loader\\Loader.jsx":"4","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson1\\Lesson1.tsx":"5","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\App.tsx":"6","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson2-3\\Lesson2-3.tsx":"7","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson5\\Lesson5.tsx":"8","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson6\\PortalLesson6.tsx":"9","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson6\\ContextLesson6.tsx":"10","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\CountriesList\\CountriesList.tsx":"11","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson7\\Lesson7.tsx":"12","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson8\\Lesson8.tsx":"13","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Header\\SearchBar\\SearchBar.tsx":"14","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Header\\Header.tsx":"15","D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\App.tsx":"16","D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\components\\Loader\\Loader.jsx":"17","D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\index.tsx":"18","D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\components\\Just\\Just.tsx":"19"},{"size":976,"mtime":1642598452055,"results":"20","hashOfConfig":"21"},{"size":1160,"mtime":1635236205167,"results":"22","hashOfConfig":"21"},{"size":249,"mtime":1632293231802,"results":"23","hashOfConfig":"21"},{"size":361,"mtime":1632298122361,"results":"24","hashOfConfig":"21"},{"size":282,"mtime":1642410435634,"results":"25","hashOfConfig":"21"},{"size":2392,"mtime":1642598410684,"results":"26","hashOfConfig":"21"},{"size":1431,"mtime":1642412670850,"results":"27","hashOfConfig":"21"},{"size":3588,"mtime":1642417526545,"results":"28","hashOfConfig":"21"},{"size":584,"mtime":1642418585357,"results":"29","hashOfConfig":"21"},{"size":1378,"mtime":1642421213520,"results":"30","hashOfConfig":"21"},{"size":2116,"mtime":1635236205144,"results":"31","hashOfConfig":"21"},{"size":1668,"mtime":1642595931380,"results":"32","hashOfConfig":"21"},{"size":1506,"mtime":1642597815293,"results":"33","hashOfConfig":"21"},{"size":562,"mtime":1631265322013,"results":"34","hashOfConfig":"21"},{"size":334,"mtime":1631265322008,"results":"35","hashOfConfig":"21"},{"size":438,"mtime":1642675256301,"results":"36","hashOfConfig":"37"},{"size":361,"mtime":1632298122361,"results":"38","hashOfConfig":"37"},{"size":686,"mtime":1642675253012,"results":"39","hashOfConfig":"37"},{"size":162,"mtime":1642675242616,"results":"40","hashOfConfig":"37"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1uuyjzp",{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"49","messages":"50","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"51","messages":"52","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"53","messages":"54","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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,"usedDeprecatedRules":"61"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":14,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"66","messages":"67","errorCount":0,"warningCount":10,"fixableErrorCount":0,"fixableWarningCount":0,"source":"68"},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xx6u7j",{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\index.tsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\hooks\\useCountries.ts",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\data\\api.js",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Loader\\Loader.jsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson1\\Lesson1.tsx",["81"],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\App.tsx",["82"],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson2-3\\Lesson2-3.tsx",["83"],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson5\\Lesson5.tsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson6\\PortalLesson6.tsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson6\\ContextLesson6.tsx",[],["84","85"],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\CountriesList\\CountriesList.tsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson7\\Lesson7.tsx",["86","87","88","89","90","91","92","93","94","95","96","97","98","99"],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Lesson8\\Lesson8.tsx",["100","101","102","103","104","105","106","107","108","109"],"import React, {\r\n useState, useRef, useContext,\r\n useReducer, useCallback, useMemo, useEffect, useLayoutEffect, Component\r\n} from 'react'\r\nimport { createContext } from 'react';\r\n\r\ntype BaseProps = {\r\n primeTitle: string,\r\n secTitle: string,\r\n}\r\n\r\ntype InjectedProps = {\r\n toggleStatus: boolean,\r\n toggle: () => void\r\n}\r\n\r\n\r\nconst Button = ({ primeTitle, secTitle, toggle, toggleStatus }:any) => (\r\n <button onClick={toggle}>\r\n {toggleStatus ? primeTitle : secTitle}\r\n </button>\r\n)\r\n\r\nconst withToggle = <BaseProps extends InjectedProps>(PassedComponent: React.ComponentType<BaseProps>) => {\r\n return (props: BaseProps) => {\r\n const [toggleStatus, toggle] = useState(false)\r\n\r\n return (\r\n <PassedComponent\r\n {...props as BaseProps}\r\n toggle={() => toggle(!toggleStatus)}\r\n toggleStatus = {toggleStatus}\r\n />\r\n )\r\n }\r\n}\r\n\r\n\r\nconst HuckLesson8Btn = withToggle(Button)\r\n\r\n\r\nconst LoadingSpinner = () => <p>LoadingSpinner</p>\r\ninterface IWithLoading {\r\n loading: boolean,\r\n}\r\n\r\nconst Show = () => <p>Show</p>\r\n\r\ninterface IWithLoading {\r\n loading: boolean,\r\n}\r\nconst withLoading = <P extends object>(Component: React.ComponentType<P>) =>\r\n class withLoading extends React.Component <P & IWithLoading>{\r\n render() {\r\n const { loading, ...props } = this.props;\r\n return loading? <LoadingSpinner/>: <Component {...props as P}/>\r\n }\r\n }\r\n\r\nconst HuckLesson8Loader = withLoading(Show)\r\n\r\nexport {\r\n HuckLesson8Btn,\r\n HuckLesson8Loader\r\n}\r\n","D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Header\\SearchBar\\SearchBar.tsx",[],"D:\\web\\TYPE-SCRIPT\\TypeScryptReact\\src\\components\\Header\\Header.tsx",[],"D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\App.tsx",[],"D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\components\\Loader\\Loader.jsx",[],"D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\index.tsx",[],"D:\\web\\NIX\\REACT-NIX\\hw-react-1\\src\\components\\Just\\Just.tsx",["110","111"],{"ruleId":"112","severity":1,"message":"113","line":3,"column":8,"nodeType":"114","messageId":"115","endLine":3,"endColumn":9},{"ruleId":null,"fatal":true,"severity":2,"message":"116","line":2,"column":16},{"ruleId":"112","severity":1,"message":"113","line":3,"column":8,"nodeType":"114","messageId":"115","endLine":3,"endColumn":9},{"ruleId":"117","replacedBy":"118"},{"ruleId":"119","replacedBy":"120"},{"ruleId":"112","severity":1,"message":"121","line":1,"column":47,"nodeType":"114","messageId":"115","endLine":1,"endColumn":57},{"ruleId":"112","severity":1,"message":"122","line":1,"column":58,"nodeType":"114","messageId":"115","endLine":1,"endColumn":69},{"ruleId":"112","severity":1,"message":"123","line":1,"column":70,"nodeType":"114","messageId":"115","endLine":1,"endColumn":77},{"ruleId":"112","severity":1,"message":"124","line":1,"column":78,"nodeType":"114","messageId":"115","endLine":1,"endColumn":87},{"ruleId":"112","severity":1,"message":"125","line":1,"column":88,"nodeType":"114","messageId":"115","endLine":1,"endColumn":103},{"ruleId":"112","severity":1,"message":"126","line":8,"column":7,"nodeType":"114","messageId":"115","endLine":8,"endColumn":21},{"ruleId":"112","severity":1,"message":"127","line":19,"column":10,"nodeType":"114","messageId":"115","endLine":19,"endColumn":15},{"ruleId":"112","severity":1,"message":"128","line":19,"column":17,"nodeType":"114","messageId":"115","endLine":19,"endColumn":25},{"ruleId":"112","severity":1,"message":"129","line":20,"column":10,"nodeType":"114","messageId":"115","endLine":20,"endColumn":14},{"ruleId":"112","severity":1,"message":"130","line":20,"column":16,"nodeType":"114","messageId":"115","endLine":20,"endColumn":23},{"ruleId":"112","severity":1,"message":"131","line":21,"column":10,"nodeType":"114","messageId":"115","endLine":21,"endColumn":15},{"ruleId":"112","severity":1,"message":"132","line":21,"column":17,"nodeType":"114","messageId":"115","endLine":21,"endColumn":25},{"ruleId":"112","severity":1,"message":"133","line":22,"column":9,"nodeType":"114","messageId":"115","endLine":22,"endColumn":13},{"ruleId":"112","severity":1,"message":"134","line":23,"column":9,"nodeType":"114","messageId":"115","endLine":23,"endColumn":13},{"ruleId":"112","severity":1,"message":"135","line":2,"column":13,"nodeType":"114","messageId":"115","endLine":2,"endColumn":19},{"ruleId":"112","severity":1,"message":"136","line":2,"column":21,"nodeType":"114","messageId":"115","endLine":2,"endColumn":31},{"ruleId":"112","severity":1,"message":"121","line":3,"column":3,"nodeType":"114","messageId":"115","endLine":3,"endColumn":13},{"ruleId":"112","severity":1,"message":"122","line":3,"column":15,"nodeType":"114","messageId":"115","endLine":3,"endColumn":26},{"ruleId":"112","severity":1,"message":"123","line":3,"column":28,"nodeType":"114","messageId":"115","endLine":3,"endColumn":35},{"ruleId":"112","severity":1,"message":"124","line":3,"column":37,"nodeType":"114","messageId":"115","endLine":3,"endColumn":46},{"ruleId":"112","severity":1,"message":"125","line":3,"column":48,"nodeType":"114","messageId":"115","endLine":3,"endColumn":63},{"ruleId":"112","severity":1,"message":"137","line":3,"column":65,"nodeType":"114","messageId":"115","endLine":3,"endColumn":74},{"ruleId":"112","severity":1,"message":"138","line":5,"column":10,"nodeType":"114","messageId":"115","endLine":5,"endColumn":23},{"ruleId":"112","severity":1,"message":"139","line":7,"column":6,"nodeType":"114","messageId":"115","endLine":7,"endColumn":15},{"ruleId":"112","severity":1,"message":"140","line":1,"column":10,"nodeType":"114","messageId":"115","endLine":1,"endColumn":18},{"ruleId":"112","severity":1,"message":"113","line":3,"column":8,"nodeType":"114","messageId":"115","endLine":3,"endColumn":9},"@typescript-eslint/no-unused-vars","'s' is defined but never used.","Identifier","unusedVar","Parsing error: ',' expected.","no-native-reassign",["141"],"no-negated-in-lhs",["142"],"'useReducer' is defined but never used.","'useCallback' is defined but never used.","'useMemo' is defined but never used.","'useEffect' is defined but never used.","'useLayoutEffect' is defined but never used.","'counterReducer' is assigned a value but never used.","'value' is assigned a value but never used.","'setValue' is assigned a value but never used.","'time' is assigned a value but never used.","'setTime' is assigned a value but never used.","'speed' is assigned a value but never used.","'setSpeed' is assigned a value but never used.","'ref1' is assigned a value but never used.","'ref2' is assigned a value but never used.","'useRef' is defined but never used.","'useContext' is defined but never used.","'Component' is defined but never used.","'createContext' is defined but never used.","'BaseProps' is defined but never used.","'useState' is defined but never used.","no-global-assign","no-unsafe-negation"]
|