-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 7.94 KB
/
.eslintcache
1
[{"/Users/user/Documents/development/react-udemy-jbook/src/index.tsx":"1","/Users/user/Documents/development/react-udemy-jbook/src/components/code-cell.tsx":"2","/Users/user/Documents/development/react-udemy-jbook/src/components/code-editor.tsx":"3","/Users/user/Documents/development/react-udemy-jbook/src/components/preview.tsx":"4","/Users/user/Documents/development/react-udemy-jbook/src/components/resizable.tsx":"5","/Users/user/Documents/development/react-udemy-jbook/src/bundler/index.ts":"6","/Users/user/Documents/development/react-udemy-jbook/src/bundler/plugins/unpkg-path-plugin.ts":"7","/Users/user/Documents/development/react-udemy-jbook/src/bundler/plugins/fetch-plugin.ts":"8","/Users/user/Documents/development/react-udemy-jbook/src/components/text-editor.tsx":"9","/Users/user/Documents/development/react-udemy-jbook/src/state/index.ts":"10","/Users/user/Documents/development/react-udemy-jbook/src/state/store.ts":"11","/Users/user/Documents/development/react-udemy-jbook/src/state/reducers/index.ts":"12","/Users/user/Documents/development/react-udemy-jbook/src/state/reducers/cellsReducer.ts":"13","/Users/user/Documents/development/react-udemy-jbook/src/state/action-types/index.ts":"14"},{"size":490,"mtime":1692187409732,"results":"15","hashOfConfig":"16"},{"size":1035,"mtime":1685361271558,"results":"17","hashOfConfig":"18"},{"size":2232,"mtime":1685361271559,"results":"19","hashOfConfig":"18"},{"size":1363,"mtime":1685361271559,"results":"20","hashOfConfig":"18"},{"size":1758,"mtime":1685361271559,"results":"21","hashOfConfig":"18"},{"size":943,"mtime":1685361271557,"results":"22","hashOfConfig":"18"},{"size":858,"mtime":1685361271558,"results":"23","hashOfConfig":"18"},{"size":1825,"mtime":1685361271558,"results":"24","hashOfConfig":"18"},{"size":1133,"mtime":1691920702679,"results":"25","hashOfConfig":"16"},{"size":53,"mtime":1692187295887,"results":"26","hashOfConfig":"16"},{"size":191,"mtime":1697629096568,"results":"27","hashOfConfig":"16"},{"size":227,"mtime":1692008952981,"results":"28","hashOfConfig":"16"},{"size":1851,"mtime":1697628217701,"results":"29","hashOfConfig":"16"},{"size":161,"mtime":1691921977098,"results":"30","hashOfConfig":"16"},{"filePath":"31","messages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1zj129",{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},"qb08zc",{"filePath":"36","messages":"37","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"38","messages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"35"},{"filePath":"43","messages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"45","messages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"47","messages":"48","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"49","messages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"59","messages":"60","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/user/Documents/development/react-udemy-jbook/src/index.tsx",[],"/Users/user/Documents/development/react-udemy-jbook/src/components/code-cell.tsx",[],["61","62"],"/Users/user/Documents/development/react-udemy-jbook/src/components/code-editor.tsx",[],"/Users/user/Documents/development/react-udemy-jbook/src/components/preview.tsx",[],"/Users/user/Documents/development/react-udemy-jbook/src/components/resizable.tsx",["63"],"import \"./resizable.css\";\nimport { useEffect, useState } from \"react\";\nimport { ResizableBox, ResizableBoxProps } from \"react-resizable\";\n\ninterface ResizableProps {\n direction: \"horizontal\" | \"vertical\";\n children?: React.ReactNode;\n}\n\nconst Resizable: React.FC<ResizableProps> = ({ direction, children }) => {\n let resizableProps: ResizableBoxProps;\n const [innerHeight, setInnerHeight] = useState(window.innerHeight);\n const [innerWidth, setInnerWidth] = useState(window.innerWidth);\n const [width, setWidth] = useState(window.innerWidth * 0.75);\n\n useEffect(() => {\n let timer: any;\n const listener = () => {\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(() => {\n setInnerHeight(window.innerHeight);\n setInnerWidth(window.innerWidth);\n if (window.innerWidth * 0.75 < width) {\n setWidth(window.innerWidth * 0.75);\n }\n }, 100);\n };\n window.addEventListener(\"resize\", listener);\n return () => {\n window.removeEventListener(\"resize\", listener);\n };\n }, []);\n\n if (direction === \"horizontal\") {\n resizableProps = {\n className: \"resize-horizontal\",\n minConstraints: [innerWidth * 0.2, Infinity],\n maxConstraints: [innerWidth * 0.75, Infinity],\n height: Infinity,\n width,\n resizeHandles: [\"e\"],\n onResizeStop: (event, data) => {\n setWidth(data.size.width);\n },\n };\n } else {\n resizableProps = {\n minConstraints: [Infinity, 24],\n maxConstraints: [Infinity, innerHeight * 0.9],\n height: 300,\n width: Infinity,\n resizeHandles: [\"s\"],\n };\n }\n\n return (\n <>\n <ResizableBox {...resizableProps}>{children}</ResizableBox>\n </>\n );\n};\n\nexport default Resizable;\n","/Users/user/Documents/development/react-udemy-jbook/src/bundler/index.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/bundler/plugins/unpkg-path-plugin.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/bundler/plugins/fetch-plugin.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/components/text-editor.tsx",[],"/Users/user/Documents/development/react-udemy-jbook/src/state/index.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/state/store.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/state/reducers/index.ts",[],"/Users/user/Documents/development/react-udemy-jbook/src/state/reducers/cellsReducer.ts",["64"],"/Users/user/Documents/development/react-udemy-jbook/src/state/action-types/index.ts",[],{"ruleId":"65","replacedBy":"66"},{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","severity":1,"message":"70","line":34,"column":6,"nodeType":"71","endLine":34,"endColumn":8,"suggestions":"72"},{"ruleId":"73","severity":1,"message":"74","line":5,"column":10,"nodeType":"75","messageId":"76","endLine":5,"endColumn":14},"no-native-reassign",["77"],"no-negated-in-lhs",["78"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'width'. Either include it or remove the dependency array.","ArrayExpression",["79"],"@typescript-eslint/no-unused-vars","'stat' is defined but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation",{"desc":"80","fix":"81"},"Update the dependencies array to be: [width]",{"range":"82","text":"83"},[1061,1063],"[width]"]