.eslintcache 6.43 KB
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
[{"C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\App.js":"1","C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\reportWebVitals.js":"2","C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\index.js":"3","C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\Search.js":"4"},{"size":1626,"mtime":1608989683135,"results":"5","hashOfConfig":"6"},{"size":362,"mtime":1608689675665,"results":"7","hashOfConfig":"6"},{"size":872,"mtime":1608987472134,"results":"8","hashOfConfig":"6"},{"size":2099,"mtime":1608989952137,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"12"},"1n20xnc",{"filePath":"13","messages":"14","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"15","messages":"16","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"17","messages":"18","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"19"},"C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\App.js",["20","21","22"],"import React, { useEffect, useState } from 'react';\nimport { Link, Redirect } from 'react-router-dom';\nimport ohuh from './ohuh.PNG';\nimport { Container, Row, Col, Image, InputGroup, FormControl, Button } from 'react-bootstrap';\n\nfunction App() {\n  const [search, setSearch] = useState(\"\");\n  const [state, setState] = useState();\n\n  useEffect(() => {\n    if (state === true) {\n      <Redirect to=\"/search\" />\n      // <Redirect to={{\n      //   pathname: `/search/${search}`,\n      //   state: { id: search },\n      // }} />\n    }\n  }, [])\n\n  const handleChange = (e) => {\n    setSearch(e.target.value);\n    console.log(e.target.value)\n  }\n\n  const handleSubmit = (e) => {\n    setState(true);\n  }\n\n  return (\n    <Container className=\"min-height 100vh\">\n      <Row className=\"justify-content-md-center\" >\n        <Image src={ohuh} />\n      </Row>\n      <Row>\n        <InputGroup size=\"lg\">\n          <FormControl\n            placeholder=\"검색어를 입력하세요.\"\n            aria-label=\"Large\"\n            aria-describedby=\"inputGroup-sizing-sm\"\n            onChange={handleChange}\n          />\n          <InputGroup.Append>\n            <Button variant=\"outline-secondary\" onClick={handleSubmit}><Link to=\"/search\">검색</Link></Button>\n          </InputGroup.Append>\n        </InputGroup>\n        {/* <form onSubmit={handleSubmit}>\n          <input className=\"\" name=\"search\" type=\"text\" placeholder=\"검색어를 입력하세요.\" onChange={handleChange}></input>\n          <Link to=\"/search\"><button type=\"submit\">검색</button></Link>\n        </form> */}\n      </Row>\n    </Container>\n  );\n}\n\nexport default App;\n","C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\reportWebVitals.js",[],"C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\index.js",[],"C:\\Users\\sag06\\Desktop\\project\\search-page\\client\\src\\Search.js",["23","24","25"],"import React, { useState } from 'react';\r\nimport { Link, Redirect } from 'react-router-dom';\r\nimport ohuh from './ohuh-sm.PNG';\r\nimport { Container, Row, Col, Image, InputGroup, FormControl, Button } from 'react-bootstrap';\r\n\r\nfunction Search(props) {\r\n    const [search, setSearch] = useState(\"\");\r\n    const handleChange = (e) => {\r\n        setSearch(e.target.value);\r\n    }\r\n    const handleSubmit = (e) => {\r\n    }\r\n    return (\r\n        <Container className=\"\">\r\n            <Row className=\"\" >\r\n                <InputGroup size=\"lg\">\r\n                    <Image src={ohuh} />\r\n                    <FormControl\r\n                        placeholder=\"검색어를 입력하세요.\"\r\n                        aria-label=\"Large\"\r\n                        aria-describedby=\"inputGroup-sizing-sm\"\r\n                        onChange={handleChange}\r\n                    />\r\n                    <InputGroup.Append>\r\n                        <Button variant=\"outline-secondary\" onClick={handleSubmit}><Link to=\"/search\">검색</Link></Button>\r\n                    </InputGroup.Append>\r\n                </InputGroup>\r\n                {/* <form onSubmit={handleSubmit}>\r\n          <input className=\"\" name=\"search\" type=\"text\" placeholder=\"검색어를 입력하세요.\" onChange={handleChange}></input>\r\n          <Link to=\"/search\"><button type=\"submit\">검색</button></Link>\r\n        </form> */}\r\n            </Row>\r\n            <Link to=\"/\">여기는 검색창이야아아아ㅏㅏ</Link>\r\n        </Container>\r\n        // <div className=\"\">\r\n        //     {console.log(props)}\r\n        //     <header className=\"\">\r\n        //     <img src={ohuh} className=\"\" alt=\"ohuh\" />\r\n        //         <Link to={\"/search\"}>여기는 검색창이야아아아ㅏㅏ</Link>\r\n        //         <form onSubmit={handleSubmit}>\r\n        //             <input className=\"\" name=\"search\" type=\"text\" value={search} onChange={handleChange}></input>\r\n        //             <button type=\"submit\">검색</button>\r\n        //         </form>\r\n        //     </header>\r\n        // </div>\r\n    );\r\n}\r\n\r\nexport default Search;",{"ruleId":"26","severity":1,"message":"27","line":4,"column":26,"nodeType":"28","messageId":"29","endLine":4,"endColumn":29},{"ruleId":"26","severity":1,"message":"30","line":7,"column":10,"nodeType":"28","messageId":"29","endLine":7,"endColumn":16},{"ruleId":"31","severity":1,"message":"32","line":18,"column":6,"nodeType":"33","endLine":18,"endColumn":8,"suggestions":"34"},{"ruleId":"26","severity":1,"message":"35","line":2,"column":16,"nodeType":"28","messageId":"29","endLine":2,"endColumn":24},{"ruleId":"26","severity":1,"message":"27","line":4,"column":26,"nodeType":"28","messageId":"29","endLine":4,"endColumn":29},{"ruleId":"26","severity":1,"message":"30","line":7,"column":12,"nodeType":"28","messageId":"29","endLine":7,"endColumn":18},"no-unused-vars","'Col' is defined but never used.","Identifier","unusedVar","'search' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'state'. Either include it or remove the dependency array.","ArrayExpression",["36"],"'Redirect' is defined but never used.",{"desc":"37","fix":"38"},"Update the dependencies array to be: [state]",{"range":"39","text":"40"},[537,539],"[state]"]