-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 14.1 KB
/
.eslintcache
1
[{"D:\\reactdir\\movie-app\\src\\index.js":"1","D:\\reactdir\\movie-app\\src\\App.js":"2","D:\\reactdir\\movie-app\\src\\reportWebVitals.js":"3","D:\\reactdir\\movie-app\\src\\services\\fakeMovieService.js":"4","D:\\reactdir\\movie-app\\src\\services\\fakeGenreService.js":"5","D:\\reactdir\\movie-app\\src\\components\\movie.jsx":"6","D:\\reactdir\\movie-app\\src\\components\\common\\pagination.jsx":"7","D:\\reactdir\\movie-app\\src\\components\\common\\like.jsx":"8","D:\\reactdir\\movie-app\\src\\components\\customers.jsx":"9","D:\\reactdir\\movie-app\\src\\components\\notFound.jsx":"10","D:\\reactdir\\movie-app\\src\\components\\rentals.jsx":"11","D:\\reactdir\\movie-app\\src\\components\\navBar.jsx":"12","D:\\reactdir\\movie-app\\src\\components\\movieForm.jsx":"13","D:\\reactdir\\movie-app\\src\\components\\login.jsx":"14","D:\\reactdir\\movie-app\\src\\components\\common\\input.jsx":"15","D:\\reactdir\\movie-app\\src\\components\\common\\form.jsx":"16","D:\\reactdir\\movie-app\\src\\components\\register.jsx":"17","D:\\reactdir\\movie-app\\src\\components\\common\\select.jsx":"18"},{"size":629,"mtime":1609423284333,"results":"19","hashOfConfig":"20"},{"size":1193,"mtime":1612100039204,"results":"21","hashOfConfig":"20"},{"size":362,"mtime":499162500000,"results":"22","hashOfConfig":"20"},{"size":2491,"mtime":1612200856323,"results":"23","hashOfConfig":"20"},{"size":258,"mtime":1607857016852,"results":"24","hashOfConfig":"20"},{"size":2615,"mtime":1612100039202,"results":"25","hashOfConfig":"20"},{"size":787,"mtime":1609263763482,"results":"26","hashOfConfig":"20"},{"size":410,"mtime":1609079156473,"results":"27","hashOfConfig":"20"},{"size":239,"mtime":1609423518767,"results":"28","hashOfConfig":"20"},{"size":217,"mtime":1609423518767,"results":"29","hashOfConfig":"20"},{"size":213,"mtime":1609423518767,"results":"30","hashOfConfig":"20"},{"size":1379,"mtime":1611078119213,"results":"31","hashOfConfig":"20"},{"size":2214,"mtime":1612202638840,"results":"32","hashOfConfig":"20"},{"size":1459,"mtime":1611078119214,"results":"33","hashOfConfig":"20"},{"size":525,"mtime":1612200055956,"results":"34","hashOfConfig":"20"},{"size":2493,"mtime":1612202199186,"results":"35","hashOfConfig":"20"},{"size":988,"mtime":1611078301223,"results":"36","hashOfConfig":"20"},{"size":933,"mtime":1612201212411,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"1l8vy2u",{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"53","usedDeprecatedRules":"40"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"64","usedDeprecatedRules":"40"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"67","usedDeprecatedRules":"40"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"70","usedDeprecatedRules":"40"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"77","usedDeprecatedRules":"40"},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"D:\\reactdir\\movie-app\\src\\index.js",[],["80","81"],"D:\\reactdir\\movie-app\\src\\App.js",[],"D:\\reactdir\\movie-app\\src\\reportWebVitals.js",[],"D:\\reactdir\\movie-app\\src\\services\\fakeMovieService.js",[],"D:\\reactdir\\movie-app\\src\\services\\fakeGenreService.js",[],"D:\\reactdir\\movie-app\\src\\components\\movie.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\common\\pagination.jsx",["82"],"import React, { Component } from 'react';\r\nimport _ from 'lodash';\r\n\r\nclass Pagination extends Component {\r\n state = { \r\n pageSize : this.props.pageSize,\r\n itemCount : this.props.itemCount,\r\n \r\n }\r\n render() { \r\n const pagesCount = Math.ceil(this.state.itemCount/this.state.pageSize);\r\n if(pagesCount===1) return null;\r\n const pages = _.range(1,pagesCount+1);\r\n\r\n\r\n\r\n return ( \r\n\r\n \r\n <nav>\r\n <ul className=\"pagination\">\r\n { pages.map((page)=>(\r\n <li key={page} className=\"page-item\"><a className=\"page-link\">{page}</a></li>\r\n ))\r\n }\r\n \r\n </ul>\r\n </nav>\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n \r\nexport default Pagination;","D:\\reactdir\\movie-app\\src\\components\\common\\like.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\customers.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\notFound.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\rentals.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\navBar.jsx",["83"],"import React, { Component } from 'react';\r\nimport { Link, NavLink } from 'react-router-dom';\r\n\r\nconst NavBar = () => {\r\n return ( \r\n <nav className=\"navbar navbar-expand-lg navbar-light bg-light\">\r\n <div className=\"container-fluid\">\r\n <Link className=\"navbar-brand\" to=\"/\">Vidly</Link>\r\n <button className=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarNav\" aria-controls=\"navbarNav\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\r\n <span className=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div className=\"collapse navbar-collapse\" id=\"navbarNav\">\r\n <ul className=\"navbar-nav\">\r\n <li className=\"nav-item\">\r\n <NavLink className=\"nav-link\" aria-current=\"page\" to=\"/movies\">Movies</NavLink>\r\n </li>\r\n <li className=\"nav-item\">\r\n <NavLink className=\"nav-link\" to=\"/customers\">Customers</NavLink>\r\n </li>\r\n <li className=\"nav-item\">\r\n <NavLink className=\"nav-link\" to=\"/rentals\">Rentals</NavLink>\r\n </li>\r\n \r\n </ul>\r\n </div>\r\n </div>\r\n</nav>\r\n );\r\n}\r\n \r\nexport default NavBar;","D:\\reactdir\\movie-app\\src\\components\\movieForm.jsx",["84"],"import React, { Component } from 'react';\r\nimport Form from './common/form';\r\nimport { getMovie, saveMovie } from '../services/fakeMovieService';\r\nimport { getGenres } from '../services/fakeGenreService';\r\nimport Joi from 'joi-browser';\r\n\r\nclass MovieForm extends Form {\r\n \r\n state = { \r\n data : {\r\n \r\n title : \"\",\r\n genreId : \"\",\r\n numberInStock : \"\",\r\n dailyRentalRate : \"\"\r\n },\r\n errors : {},\r\n genres : []\r\n }\r\n schema ={\r\n _id : Joi.string(),\r\n title : Joi.string().required(),\r\n genreId : Joi.string().required(),\r\n numberInStock : Joi.number().required(),\r\n dailyRentalRate : Joi.number().required()\r\n }\r\n\r\n componentDidMount(){\r\n const genres = getGenres();\r\n this.setState({ genres });\r\n\r\n const movieId = this.props.match.params.id;\r\n if(movieId === \"new\") return ;\r\n\r\n const movie = getMovie(movieId);\r\n if(!movie) return this.props.history.replace(\"/not-found\");\r\n //console.log(movie);\r\n this.setState({data : this.mapToViewModel(movie)});\r\n }\r\n mapToViewModel = (movie)=>{\r\n //console.log(movie.genre._id);\r\n return {\r\n _id : movie._id,\r\n title : movie.title,\r\n genreId : movie.genre._id,\r\n numberInStock : movie.numberInStock,\r\n dailyRentalRate : movie.dailyRentalRate\r\n };\r\n }\r\n\r\n doSubmit = ()=>{\r\n console.log(\"submittted\");\r\n saveMovie(this.state.data);\r\n this.props.history.push(\"/movies\");\r\n }\r\n render() { \r\n return (\r\n <div>\r\n <h1>Movie form</h1>\r\n <form onSubmit={this.handleSubmit}>\r\n {this.renderInput(\"title\")}\r\n {this.renderSelect(\"genreId\",\"Genre\",this.state.genres)}\r\n {this.renderInput(\"numberInStock\",\"number\")}\r\n {this.renderInput(\"dailyRentalRate\",\"number\")}\r\n {this.renderButton(\"submit\")}\r\n </form>\r\n </div>\r\n \r\n );\r\n }\r\n}\r\n \r\nexport default MovieForm;\r\n\r\n","D:\\reactdir\\movie-app\\src\\components\\login.jsx",["85"],"import React, { Component } from 'react';\r\n\r\nimport Joi from 'joi-browser';\r\nimport Form from './common/form';\r\n\r\nclass Login extends Form {\r\n \r\n doSubmit = ()=>{\r\n // call server and perform server things\r\n // redirect to new page\r\n \r\n console.log('submitted');\r\n }\r\n\r\n state = { \r\n data : {\r\n username : \"\",\r\n password : \"\"\r\n },\r\n errors : {}\r\n }\r\n\r\n schema = {\r\n username : Joi.string().required(),\r\n password : Joi.string().required()\r\n }\r\n\r\n render() { \r\n console.log(this.state.data);\r\n return ( \r\n <div>\r\n <h1>Login</h1>\r\n <form onSubmit={this.handleSubmit}>\r\n {/* <Input name=\"username\" error={this.state.errors.username} value ={this.state.data.username} onChange={this.handleChange}/> */}\r\n {/* <div className=\"form-group\">\r\n <label htmlFor=\"password\">password</label>\r\n <input id=\"password\" type=\"text\" name=\"password\" value={this.state.data.password} onChange={this.handleChange} className=\"form-control\"/>\r\n </div> */}\r\n {this.renderInput(\"username\")}\r\n {this.renderInput(\"password\",\"password\")}\r\n {this.renderButton(\"Login\")}\r\n </form>\r\n </div>\r\n );\r\n }\r\n}\r\n \r\nexport default Login;","D:\\reactdir\\movie-app\\src\\components\\common\\input.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\common\\form.jsx",[],"D:\\reactdir\\movie-app\\src\\components\\register.jsx",["86"],"import React, { Component } from 'react';\r\nimport Form from './common/form';\r\nimport Joi from 'joi-browser';\r\n\r\nclass Register extends Form {\r\n state = { \r\n data : {\r\n username : \"\",\r\n password : \"\",\r\n name : \"\"\r\n },\r\n errors : {}\r\n }\r\n doSubmit=()=>{\r\n console.log(\"submitted\");\r\n }\r\n schema = {\r\n username : Joi.string().required().email(),\r\n password : Joi.string().required().min(5),\r\n name : Joi.string().required()\r\n }\r\n render() { \r\n return ( \r\n <div>\r\n <h1>Register</h1>\r\n <form onSubmit={this.handleSubmit}>\r\n {this.renderInput(\"username\")}\r\n {this.renderInput(\"password\",\"password\")}\r\n {this.renderInput(\"name\")}\r\n {this.renderButton(\"Register\")}\r\n </form>\r\n </div>\r\n );\r\n }\r\n}\r\n \r\nexport default Register;","D:\\reactdir\\movie-app\\src\\components\\common\\select.jsx",[],{"ruleId":"87","replacedBy":"88"},{"ruleId":"89","replacedBy":"90"},{"ruleId":"91","severity":1,"message":"92","line":23,"column":50,"nodeType":"93","endLine":23,"endColumn":75},{"ruleId":"94","severity":1,"message":"95","line":1,"column":17,"nodeType":"96","messageId":"97","endLine":1,"endColumn":26},{"ruleId":"94","severity":1,"message":"95","line":1,"column":17,"nodeType":"96","messageId":"97","endLine":1,"endColumn":26},{"ruleId":"94","severity":1,"message":"95","line":1,"column":17,"nodeType":"96","messageId":"97","endLine":1,"endColumn":26},{"ruleId":"94","severity":1,"message":"95","line":1,"column":17,"nodeType":"96","messageId":"97","endLine":1,"endColumn":26},"no-native-reassign",["98"],"no-negated-in-lhs",["99"],"jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-unused-vars","'Component' is defined but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation"]