-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintcache
1 lines (1 loc) · 18.6 KB
/
.eslintcache
1
[{"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/App.tsx":"1","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/index.tsx":"2","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styled.d.ts":"3","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styles/GlobalStyle.ts":"4","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styles/theme.ts":"5","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Layout/Layout.tsx":"6","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Layout/index.js":"7","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/Home/Home.tsx":"8","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/Home/index.js":"9","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Header/Header.tsx":"10","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Header/index.js":"11","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/constants/title.js":"12","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/debounce.ts":"13","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/SearchDiseaseService.ts":"14","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/index.js":"15","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/request.ts":"16","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Home/SeachBar/SearchBar.tsx":"17","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Home/SeachBar/index.js":"18","/home/yhko1988/wanted-preonboarding-assignment/3-1/.eslintrc.js":"19","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useDebounce.js":"20","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useKeyDown.js":"21","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useSearch.js":"22","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/main.js":"23","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/searchResult.js":"24","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/searchValue.js":"25","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/selectedSearchResultIndex.js":"26","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/style/GlobalStyle.js":"27","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/style/Theme.js":"28","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/checkEngAndNum.js":"29","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/formatFontWeight.js":"30"},{"size":384,"mtime":1667975430210,"results":"31","hashOfConfig":"32"},{"size":169,"mtime":1667974326000,"results":"33","hashOfConfig":"32"},{"size":208,"mtime":1667973287100,"results":"34","hashOfConfig":"32"},{"size":532,"mtime":1667978265080,"results":"35","hashOfConfig":"32"},{"size":203,"mtime":1667973287100,"results":"36","hashOfConfig":"32"},{"size":340,"mtime":1667978874600,"results":"37","hashOfConfig":"32"},{"size":36,"mtime":1667975374080,"results":"38","hashOfConfig":"39"},{"size":199,"mtime":1667991894280,"results":"40","hashOfConfig":"32"},{"size":34,"mtime":1667974493940,"results":"41","hashOfConfig":"39"},{"size":235,"mtime":1667978920370,"results":"42","hashOfConfig":"32"},{"size":36,"mtime":1667978557450,"results":"43","hashOfConfig":"39"},{"size":108,"mtime":1667978644590,"results":"44","hashOfConfig":"39"},{"size":216,"mtime":1667979756040,"results":"45","hashOfConfig":"32"},{"size":650,"mtime":1667985656800,"results":"46","hashOfConfig":"32"},{"size":254,"mtime":1667985945320,"results":"47","hashOfConfig":"39"},{"size":526,"mtime":1667991868910,"results":"48","hashOfConfig":"32"},{"size":696,"mtime":1667993191350,"results":"49","hashOfConfig":"32"},{"size":39,"mtime":1667993038420,"results":"50","hashOfConfig":"39"},{"size":1327,"mtime":1667994223460,"results":"51","hashOfConfig":"39"},{"size":408,"mtime":1667994229410,"results":"52","hashOfConfig":"39"},{"size":762,"mtime":1667993977810,"results":"53","hashOfConfig":"39"},{"size":1007,"mtime":1667993977810,"results":"54","hashOfConfig":"39"},{"size":359,"mtime":1667993977810,"results":"55","hashOfConfig":"39"},{"size":109,"mtime":1667993977820,"results":"56","hashOfConfig":"39"},{"size":107,"mtime":1667993977820,"results":"57","hashOfConfig":"39"},{"size":135,"mtime":1667993977820,"results":"58","hashOfConfig":"39"},{"size":294,"mtime":1667993977820,"results":"59","hashOfConfig":"39"},{"size":406,"mtime":1667993977820,"results":"60","hashOfConfig":"39"},{"size":178,"mtime":1667993977820,"results":"61","hashOfConfig":"39"},{"size":508,"mtime":1667993977820,"results":"62","hashOfConfig":"39"},{"filePath":"63","messages":"64","suppressedMessages":"65","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"zsodo4",{"filePath":"66","messages":"67","suppressedMessages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","suppressedMessages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","suppressedMessages":"74","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","suppressedMessages":"77","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","suppressedMessages":"80","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","suppressedMessages":"83","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"84"},"1n5va0y",{"filePath":"85","messages":"86","suppressedMessages":"87","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"91"},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"98"},{"filePath":"99","messages":"100","suppressedMessages":"101","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"102"},{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"112"},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"122"},{"filePath":"123","messages":"124","suppressedMessages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","suppressedMessages":"128","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"129"},{"filePath":"130","messages":"131","suppressedMessages":"132","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"133"},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"137"},{"filePath":"138","messages":"139","suppressedMessages":"140","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"141"},{"filePath":"142","messages":"143","suppressedMessages":"144","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"145"},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"149"},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"153"},{"filePath":"154","messages":"155","suppressedMessages":"156","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"157"},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"161"},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"165"},{"filePath":"166","messages":"167","suppressedMessages":"168","errorCount":1,"fatalErrorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"169"},"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/App.tsx",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/index.tsx",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styled.d.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styles/GlobalStyle.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/styles/theme.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Layout/Layout.tsx",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Layout/index.js",["170"],[],"export { default } from \"./Layout\";\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/Home/Home.tsx",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/Home/index.js",["171"],[],"export { default } from \"./Home\";\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Header/Header.tsx",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Header/index.js",["172"],[],"export { default } from \"./Header\";\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/constants/title.js",["173"],[],"export const TITLE = {\n HEADER: \"국내 모든 임상시험 검색하고 온라인으로 참여하기\",\n};\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/debounce.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/SearchDiseaseService.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/index.js",["174"],[],"import { SearchDiseaseServiceImp } from \"./SearchDiseaseService\";\nimport { AxiosHttpClient } from \"./request\";\n\nconst httpClient = new AxiosHttpClient(\"http://localhost:4000\");\nexport const searchDiseaseService = new SearchDiseaseServiceImp(httpClient);\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/apis/request.ts",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Home/SeachBar/SearchBar.tsx",["175"],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/components/Home/SeachBar/index.js",["176"],[],"export { default } from \"./SearchBar\";\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/.eslintrc.js",[],[],"/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useDebounce.js",["177"],[],"import { useState, useEffect } from \"react\";\n\nconst useDebounce = (value, delay = 300) => {\n const [debounceValue, setDebounceValue] = useState(value);\n\n useEffect(() => {\n const delayHandler = setTimeout(() => {\n setDebounceValue(value);\n }, delay);\n\n return () => {\n clearTimeout(delayHandler);\n };\n }, [value, delay]);\n\n return { debounceValue };\n};\n\nexport default useDebounce;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useKeyDown.js",["178"],[],"import { useRecoilState, useRecoilValue } from \"recoil\";\nimport { searchResult } from \"../store/searchResult\";\nimport { selectedSearchResultIndex } from \"../store/selectedSearchResultIndex\";\n\nconst useKeyDown = () => {\n const [selectedIndex, setSelectedIndex] = useRecoilState(selectedSearchResultIndex);\n const diseaseListData = useRecoilValue(searchResult);\n\n const onKeyDown = ({ key }) => {\n if (diseaseListData.length === 0) return;\n if (key === \"ArrowDown\") {\n if (selectedIndex === diseaseListData?.length - 1) return;\n setSelectedIndex(selectedIndex + 1);\n }\n if (key === \"ArrowUp\") {\n if (selectedIndex === 0) return;\n setSelectedIndex(selectedIndex - 1);\n }\n };\n return onKeyDown;\n};\n\nexport default useKeyDown;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/hooks/useSearch.js",["179"],[],"import { useEffect } from \"react\";\nimport { useRecoilState, useRecoilValue } from \"recoil\";\nimport { searchResult } from \"../store/searchResult\";\nimport { searchValue } from \"../store/searchValue\";\nimport clientApi from \"../api/client\";\nimport useDebounce from \"./useDebounce\";\nimport checkEngAndNum from \"../utils/checkEngAndNum\";\n\nconst useSearch = () => {\n const searchInputValue = useRecoilValue(searchValue);\n const [diseaseListData, setDiseaseListData] = useRecoilState(searchResult);\n\n const { debounceValue } = useDebounce(searchInputValue);\n\n const condition = checkEngAndNum(searchInputValue) && searchInputValue;\n\n const handleSearch = async () => {\n try {\n const { data } = await clientApi.get(`/sick?q=${debounceValue}`);\n setDiseaseListData(data);\n console.log(\"api calling\");\n } catch (err) {\n throw new Error(err);\n }\n };\n\n useEffect(() => {\n condition && handleSearch();\n }, [debounceValue]);\n\n return diseaseListData;\n};\n\nexport default useSearch;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/pages/main.js",["180"],[],"import Layout from \"../components/Layout\";\nimport Header from \"../components/Header\";\nimport SearchForm from \"../components/Main/SearchForm\";\nimport SearchItemList from \"../components/Main/SearchItemList\";\n\nconst Main = () => {\n return (\n <Layout>\n <Header />\n <SearchForm />\n <SearchItemList />\n </Layout>\n );\n};\n\nexport default Main;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/searchResult.js",["181"],[],"import { atom } from \"recoil\";\n\nexport const searchResult = atom({\n key: \"searchResult\",\n default: [],\n});\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/searchValue.js",["182"],[],"import { atom } from \"recoil\";\n\nexport const searchValue = atom({\n key: \"searchValue\",\n default: \"\",\n});\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/store/selectedSearchResultIndex.js",["183"],[],"import { atom } from \"recoil\";\n\nexport const selectedSearchResultIndex = atom({\n key: \"selectedSearchResultIndex\",\n default: -1,\n});\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/style/GlobalStyle.js",["184"],[],"import { createGlobalStyle } from \"styled-components\";\n\nconst GlobalStyle = createGlobalStyle`\n*{\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n background-color: #d0e8fd;\n}\ninput, button {\n outline: none;\n border: none;\n cursor: pointer;\n}\n`;\n\nexport default GlobalStyle;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/style/Theme.js",["185"],[],"import { css } from \"styled-components\";\n\nconst theme = {\n flexCenter: css`\n display: flex;\n justify-content: center;\n align-items: center;\n `,\n flexDefault: css`\n display: flex;\n align-items: center;\n `,\n flexColumn: css`\n display: flex;\n flex-direction: column;\n `,\n bg: {\n lightBlue: \"#d0e8fd\",\n darkBlue: \"#357ae1\",\n grey: \"#808080\",\n },\n};\n\nexport default theme;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/checkEngAndNum.js",["186"],[],"const checkEngAndNum = (str) => {\n const regExp = /[^a-zA-Z0-9]/;\n if (regExp.test(str)) {\n return true;\n } else {\n return false;\n }\n};\n\nexport default checkEngAndNum;\n","/home/yhko1988/wanted-preonboarding-assignment/3-1/src/utils/formatFontWeight.js",["187"],[],"const formatFontWeight = (result, query) => {\n const filteredSearchResult = result\n .split(\" \")\n .map((word) => word.replace(/\\s+/g, \" \").trim())\n .filter(Boolean)\n .join(\" \")\n .split(new RegExp(`(${query})`, \"gi\"));\n\n if (query !== \"\" && result.includes(query)) {\n return (\n <>\n {filteredSearchResult.map((word, idx) => {\n return word === query ? <b key={idx}>{word}</b> : word;\n })}\n </>\n );\n }\n return result;\n};\n\nexport default formatFontWeight;\n",{"ruleId":null,"fatal":true,"severity":2,"message":"188","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"188","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"188","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"188","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":"190","severity":1,"message":"191","line":14,"column":9,"nodeType":"192","messageId":"193","endLine":14,"endColumn":20},{"ruleId":null,"fatal":true,"severity":2,"message":"188","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"189","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"194","line":1,"column":1},{"ruleId":null,"fatal":true,"severity":2,"message":"194","line":1,"column":1},"Parsing error: The keyword 'export' is reserved","Parsing error: The keyword 'import' is reserved","no-console","Unexpected console statement.","MemberExpression","unexpected","Parsing error: The keyword 'const' is reserved"]