-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 15 KB
/
.eslintcache
1
[{"/Users/manishpandey/Desktop/react-integration/src/reportWebVitals.js":"1","/Users/manishpandey/Desktop/react-integration/src/redux/user/reducer.js":"2","/Users/manishpandey/Desktop/react-integration/src/utilities/configureAxios.js":"3","/Users/manishpandey/Desktop/react-integration/src/App.js":"4","/Users/manishpandey/Desktop/react-integration/src/pages/LoginPage/index.js":"5","/Users/manishpandey/Desktop/react-integration/src/routes/index.js":"6","/Users/manishpandey/Desktop/react-integration/src/redux/user/actions.js":"7","/Users/manishpandey/Desktop/react-integration/src/redux/auth/reducers.js":"8","/Users/manishpandey/Desktop/react-integration/src/redux/auth/actions.js":"9","/Users/manishpandey/Desktop/react-integration/src/redux/reducer.js":"10","/Users/manishpandey/Desktop/react-integration/src/index.js":"11","/Users/manishpandey/Desktop/react-integration/src/redux/error/actions.js":"12","/Users/manishpandey/Desktop/react-integration/src/redux/sagas.js":"13","/Users/manishpandey/Desktop/react-integration/src/redux/auth/sagas.js":"14","/Users/manishpandey/Desktop/react-integration/src/redux/error/sagas.js":"15","/Users/manishpandey/Desktop/react-integration/src/redux/user/sagas.js":"16","/Users/manishpandey/Desktop/react-integration/src/config/persistorConfig.js":"17","/Users/manishpandey/Desktop/react-integration/src/services/auth.js":"18","/Users/manishpandey/Desktop/react-integration/src/redux/error/reducers.js":"19"},{"size":362,"mtime":1621225325471,"results":"20","hashOfConfig":"21"},{"size":403,"mtime":1621231819864,"results":"22","hashOfConfig":"21"},{"size":1085,"mtime":1621235729637,"results":"23","hashOfConfig":"21"},{"size":578,"mtime":1621228426107,"results":"24","hashOfConfig":"21"},{"size":2832,"mtime":1621233466739,"results":"25","hashOfConfig":"21"},{"size":78,"mtime":1621228250709,"results":"26","hashOfConfig":"21"},{"size":189,"mtime":1621231800487,"results":"27","hashOfConfig":"21"},{"size":726,"mtime":1621231675150,"results":"28","hashOfConfig":"21"},{"size":421,"mtime":1621231681689,"results":"29","hashOfConfig":"21"},{"size":225,"mtime":1621232095415,"results":"30","hashOfConfig":"21"},{"size":1420,"mtime":1621233774825,"results":"31","hashOfConfig":"21"},{"size":162,"mtime":1621231581967,"results":"32","hashOfConfig":"21"},{"size":235,"mtime":1621234832555,"results":"33","hashOfConfig":"21"},{"size":3990,"mtime":1621235550272,"results":"34","hashOfConfig":"21"},{"size":346,"mtime":1621233939161,"results":"35","hashOfConfig":"21"},{"size":0,"mtime":1621234286531,"results":"36","hashOfConfig":"21"},{"size":161,"mtime":1621225325467,"results":"37","hashOfConfig":"21"},{"size":241,"mtime":1621234204091,"results":"38","hashOfConfig":"21"},{"size":573,"mtime":1621231584014,"results":"39","hashOfConfig":"21"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"wnkuuk",{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"45"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"48"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"51"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54","usedDeprecatedRules":"42"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"57"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"63"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"57"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"68","usedDeprecatedRules":"63"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71","usedDeprecatedRules":"57"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"45"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"76","messages":"77","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"78","messages":"79","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"80","usedDeprecatedRules":"63"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"63"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"60"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/manishpandey/Desktop/react-integration/src/reportWebVitals.js",[],["89","90"],"/Users/manishpandey/Desktop/react-integration/src/redux/user/reducer.js",[],["91","92"],"/Users/manishpandey/Desktop/react-integration/src/utilities/configureAxios.js",["93"],"import axios from 'axios'\nimport {notification} from 'antd'\nimport {get} from 'lodash';\n\nconst axiosConfiguration = () => axios.create({\n baseURL:\"https://api2.cedarwood.squareboat.info/api/v1\",\n timeout:30000\n})\n\nconst axiosInstance = axiosConfiguration()\n\naxiosInstance.interceptors.request.use(\n async config => {\n const { store } = await import('../index')\n const state = store.getState()\n\n config.headers = {\n Accept: 'application/json',\n Authorization: `Bearer `\n }\n return config\n }\n)\n\naxiosInstance.interceptors.response.use(\n response => {\n return response\n },\n err => {\n console.log(err)\n if (err.response) {\n if (get(err, 'response.status', false)) {\n if (err.response.status === 400) {\n notification.warn({\n message:'ERROR!!! ',\n description: get(err, 'response.data.message', 'Network Error')\n })\n }\n }\n }\n }\n)\n\nexport default axiosInstance","/Users/manishpandey/Desktop/react-integration/src/App.js",[],["94","95"],"/Users/manishpandey/Desktop/react-integration/src/pages/LoginPage/index.js",["96"],"import { Form, Input, Button, Checkbox,Spin } from 'antd';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport errorActions from '../../redux/error/actions'\nimport authActions from '../../redux/auth/actions'\n\nconst layout = {\n labelCol: {\n span: 8,\n },\n wrapperCol: {\n span: 16,\n },\n};\nconst tailLayout = {\n wrapperCol: {\n offset: 8,\n span: 16,\n },\n};\n\nexport default function LoginPage() {\n const {loading} = useSelector(state => state.auth)\n const {error} = useSelector(state => state)\n\n const dispatch = useDispatch()\n\n const onFinish = (values) => {\n console.log('Success:', values);\n dispatch({\n type: authActions.LOGGIN,\n payload:values\n })\n };\n\n const onFinishFailed = (errorInfo) => {\n console.log('Failed:', errorInfo);\n };\n\n const clearError = (key) => {\n const { dispatch } = this.props\n dispatch({\n type: errorActions.CLEAR_ERROR,\n payload: {\n key,\n },\n })\n }\n\n\n return (\n <Spin spinning={loading}>\n <Form\n {...layout}\n name=\"basic\"\n initialValues={{\n remember: true,\n }}\n onFinish={onFinish}\n onFinishFailed={onFinishFailed}\n >\n <Form.Item\n label=\"Email\"\n name=\"email\"\n {...(error.email && {\n help: error.email,\n validateStatus: 'error',\n })}\n rules={[\n {\n required: true,\n message: 'Please input your email!',\n },\n ]}\n >\n <Input \n onChange={() => (error.email ? clearError('email') : null)}\n />\n </Form.Item>\n\n <Form.Item\n label=\"Password\"\n name=\"password\"\n {...(error.password && {\n help: error.password,\n validateStatus: 'error',\n })}\n rules={[\n {\n required: true,\n message: 'Please input your password!',\n },\n ]}\n >\n <Input.Password />\n </Form.Item>\n\n <Form.Item {...tailLayout}>\n <Button type=\"primary\" htmlType=\"submit\">\n Submit\n </Button>\n </Form.Item>\n </Form>\n </Spin>\n );\n};","/Users/manishpandey/Desktop/react-integration/src/routes/index.js",[],["97","98"],"/Users/manishpandey/Desktop/react-integration/src/redux/user/actions.js",[],["99","100"],"/Users/manishpandey/Desktop/react-integration/src/redux/auth/reducers.js",[],["101","102"],"/Users/manishpandey/Desktop/react-integration/src/redux/auth/actions.js",[],"/Users/manishpandey/Desktop/react-integration/src/redux/reducer.js",["103"],"import {combineReducers} from 'redux'\nimport user from \"./user/reducer\";\nimport auth from \"./auth/reducers\"\nimport error from './error/reducers'\n\nexport default reducers => combineReducers({\n user,\n auth,\n error\n});\n","/Users/manishpandey/Desktop/react-integration/src/index.js",["104"],"import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\nimport {logger} from 'redux-logger'\nimport {routerMiddleware} from 'connected-react-router'; \nimport createSagaMiddleware from 'redux-saga'\nimport { createStore, applyMiddleware, compose } from \"redux\";\nimport { persistStore, persistReducer } from \"redux-persist\";\nimport { PersistGate } from \"redux-persist/integration/react\";\nimport reducers from './redux/reducer'\nimport sagas from './redux/sagas'\nimport persistConfig from './config/persistorConfig'\nimport {Provider} from 'react-redux'\n\n\nconst sagaMiddleware = createSagaMiddleware()\nconst middleWares = [sagaMiddleware,logger];\nconst pReducer = persistReducer(persistConfig, reducers(reducers))\nexport const store = createStore(pReducer,compose(applyMiddleware(...middleWares)))\nsagaMiddleware.run(sagas)\nconst pStore = persistStore(store)\n\nReactDOM.render(\n <Provider store={store}>\n <PersistGate loading={null} persistor={pStore}>\n <React.StrictMode>\n <App />\n </React.StrictMode>\n </PersistGate>\n </Provider>,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n","/Users/manishpandey/Desktop/react-integration/src/redux/error/actions.js",[],"/Users/manishpandey/Desktop/react-integration/src/redux/sagas.js",["105"],"/Users/manishpandey/Desktop/react-integration/src/redux/auth/sagas.js",["106","107","108"],"/Users/manishpandey/Desktop/react-integration/src/redux/error/sagas.js",["109"],"import { all, takeEvery, put, call } from 'redux-saga/effects'\n\nimport actions from './actions'\nimport { initialState } from './reducers'\n\nexport function* CLEAR_ERROR() {\n yield put({\n type: actions.SET_STATE,\n payload: initialState,\n })\n}\n\nexport default function* rootSaga() {\n yield all([takeEvery(actions.SET_STATE, CLEAR_ERROR)])\n}","/Users/manishpandey/Desktop/react-integration/src/redux/user/sagas.js",[],"/Users/manishpandey/Desktop/react-integration/src/config/persistorConfig.js",[],"/Users/manishpandey/Desktop/react-integration/src/services/auth.js",[],"/Users/manishpandey/Desktop/react-integration/src/redux/error/reducers.js",[],{"ruleId":"110","replacedBy":"111"},{"ruleId":"112","replacedBy":"113"},{"ruleId":"110","replacedBy":"114"},{"ruleId":"112","replacedBy":"115"},{"ruleId":"116","severity":1,"message":"117","line":15,"column":16,"nodeType":"118","messageId":"119","endLine":15,"endColumn":21},{"ruleId":"110","replacedBy":"120"},{"ruleId":"112","replacedBy":"121"},{"ruleId":"116","severity":1,"message":"122","line":1,"column":31,"nodeType":"118","messageId":"119","endLine":1,"endColumn":39},{"ruleId":"110","replacedBy":"123"},{"ruleId":"112","replacedBy":"124"},{"ruleId":"110","replacedBy":"125"},{"ruleId":"112","replacedBy":"126"},{"ruleId":"110","replacedBy":"127"},{"ruleId":"112","replacedBy":"128"},{"ruleId":"129","severity":1,"message":"130","line":6,"column":1,"nodeType":"131","endLine":10,"endColumn":4},{"ruleId":"116","severity":1,"message":"132","line":7,"column":9,"nodeType":"118","messageId":"119","endLine":7,"endColumn":25},{"ruleId":"116","severity":1,"message":"133","line":3,"column":8,"nodeType":"118","messageId":"119","endLine":3,"endColumn":12},{"ruleId":"116","severity":1,"message":"134","line":2,"column":10,"nodeType":"118","messageId":"119","endLine":2,"endColumn":14},{"ruleId":"116","severity":1,"message":"135","line":3,"column":10,"nodeType":"118","messageId":"119","endLine":3,"endColumn":22},{"ruleId":"116","severity":1,"message":"136","line":5,"column":10,"nodeType":"118","messageId":"119","endLine":5,"endColumn":13},{"ruleId":"116","severity":1,"message":"137","line":1,"column":31,"nodeType":"118","messageId":"119","endLine":1,"endColumn":35},"no-native-reassign",["138"],"no-negated-in-lhs",["139"],["138"],["139"],"no-unused-vars","'state' is assigned a value but never used.","Identifier","unusedVar",["138"],["139"],"'Checkbox' is defined but never used.",["138"],["139"],["138"],["139"],["138"],["139"],"import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","'routerMiddleware' is defined but never used.","'user' is defined but never used.","'push' is defined but never used.","'notification' is defined but never used.","'get' is defined but never used.","'call' is defined but never used.","no-global-assign","no-unsafe-negation"]