-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 10.2 KB
/
.eslintcache
1
[{"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/reportWebVitals.js":"1","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/App.js":"2","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/index.js":"3","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/components/Bugs.jsx":"4","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/logger.js":"5","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/toast.js":"6","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/api.js":"7","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/entities.js":"8","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/api.js":"9","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/bugs.js":"10","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/projects.js":"11","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/configureStore.js":"12","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/users.js":"13","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/reducer.js":"14","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/components/UnresolvedBugs.jsx":"15"},{"size":362,"mtime":1609205951806,"results":"16","hashOfConfig":"17"},{"size":387,"mtime":1609268933341,"results":"18","hashOfConfig":"17"},{"size":500,"mtime":1609205951806,"results":"19","hashOfConfig":"17"},{"size":755,"mtime":1609643201181,"results":"20","hashOfConfig":"17"},{"size":154,"mtime":1609206686825,"results":"21","hashOfConfig":"17"},{"size":187,"mtime":1609206686829,"results":"22","hashOfConfig":"17"},{"size":737,"mtime":1609206686825,"results":"23","hashOfConfig":"17"},{"size":268,"mtime":1609206686825,"results":"24","hashOfConfig":"17"},{"size":238,"mtime":1609206686821,"results":"25","hashOfConfig":"17"},{"size":3091,"mtime":1609274569694,"results":"26","hashOfConfig":"17"},{"size":343,"mtime":1609206686829,"results":"27","hashOfConfig":"17"},{"size":455,"mtime":1609268794583,"results":"28","hashOfConfig":"17"},{"size":329,"mtime":1609206686829,"results":"29","hashOfConfig":"17"},{"size":149,"mtime":1609206686829,"results":"30","hashOfConfig":"17"},{"size":571,"mtime":1609642772352,"results":"31","hashOfConfig":"17"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},"ttrsaq",{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"37"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"37"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"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},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"47"},"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/reportWebVitals.js",[],["69","70"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/App.js",[],["71","72"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/index.js",[],["73","74"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/components/Bugs.jsx",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/logger.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/toast.js",[],["75","76"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/middlewares/api.js",[],["77","78"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/entities.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/api.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/bugs.js",["79"],"import { createSlice } from '@reduxjs/toolkit';\nimport moment from 'moment';\nimport { createSelector } from 'reselect';\nimport { apiCallBegan } from \"./api\";\n\nconst slice = createSlice({\n name: 'bugs',\n initialState: {\n list: [],\n loading: false,\n lastFetch: null,\n },\n reducers: {\n bugsRequested: (bugs, action) => {\n bugs.loading = true;\n },\n\n bugsRequestFailed: (bugs, action) => {\n bugs.loading = false;\n },\n\n bugsReceived: (bugs, action) => { \n bugs.list = action.payload;\n bugs.loading = false;\n bugs.lastFetch = Date.now();\n },\n\n bugAdded: (bugs, action) => {\n bugs.list.push(action.payload);\n },\n\n bugRemoved: (bugs, action) => {\n const bugId = bugs.list.findIndex(bug => bug.id === action.payload.id);\n if (bugId >= 0) bugs.list.splice(bugId, 1);\n },\n\n bugResolved: (bugs, action) => { \n const bugId = bugs.list.findIndex(bug => bug.id === action.payload.id);\n if (bugId >= 0) bugs.list[bugId].resolved = true;\n },\n\n bugResolveToggled: (bugs, action) => { \n const bugId = bugs.list.findIndex(bug => bug.id === action.payload.id);\n if (bugId >= 0) bugs.list[bugId].resolved = !bugs.list[bugId].resolved;\n },\n\n bugAssignedToUser: (bugs, action) => { \n const bugId = bugs.list.findIndex(bug => bug.id === action.payload.id);\n if (bugId >= 0) bugs.list[bugId].userId = action.payload.userId;\n }\n }\n})\n\n// Computed State\nconst getUnresolvedBugs = createSelector(\n state => state.entities.bugs,\n bugs => bugs.list.filter(bug => !bug.resolved)\n)\n\nconst getAssigneeBugs = userId => createSelector(\n state => state.entities.bugs,\n bugs => bugs.list.filter(bug => bug.userId === userId)\n)\n\nexport { getAssigneeBugs, getUnresolvedBugs };\n\n// Event Actions. Store Side\nconst { \n bugAdded, \n bugRemoved, \n bugResolved, \n bugResolveToggled,\n bugsReceived,\n bugsRequested,\n bugsRequestFailed,\n bugAssignedToUser,\n } = slice.actions;\n\nexport default slice.reducer;\n\nconst url = \"/bugs\";\n\n// Command Actions. Server side with Event calls to the store.\nexport const loadBugs = () => (dispatch, getState) => {\n const { lastFetch } = getState().entities.bugs;\n\n const diffInMinutes = moment().diff(moment(lastFetch), 'minutes');\n\n if (diffInMinutes < 10) return;\n\n return dispatch(\n apiCallBegan({\n url,\n method: \"get\",\n onStart: bugsRequested.type,\n onSuccess: bugsReceived.type,\n onFail: bugsRequestFailed.type,\n }))\n};\n\nexport const addBug = bug => apiCallBegan({\n url,\n data: bug,\n method: \"post\",\n onSuccess: bugAdded.type,\n});\n\nexport const resolveBug = bugId => apiCallBegan({\n url: url + '/' + bugId,\n data: {resolved: true},\n method: \"patch\",\n onSuccess: bugResolved.type,\n});\n\nexport const toggleResolveBug = bugId => apiCallBegan({\n url: url + '/' + bugId,\n data: {},\n method: \"patch\",\n onSuccess: bugResolveToggled.type,\n});\n\nexport const assignBugToUser = (bugId, userId) => apiCallBegan({\n url: url + '/' + bugId,\n data: {userId: userId},\n method: \"patch\",\n onSuccess: bugAssignedToUser.type,\n})","/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/projects.js",[],["80","81"],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/configureStore.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/users.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/store/reducer.js",[],"/code-projects/courses/code-with-mosh/redux/source-code/bugs-tracker-with-redux/src/components/UnresolvedBugs.jsx",[],{"ruleId":"82","replacedBy":"83"},{"ruleId":"84","replacedBy":"85"},{"ruleId":"82","replacedBy":"86"},{"ruleId":"84","replacedBy":"87"},{"ruleId":"82","replacedBy":"88"},{"ruleId":"84","replacedBy":"89"},{"ruleId":"82","replacedBy":"90"},{"ruleId":"84","replacedBy":"91"},{"ruleId":"82","replacedBy":"92"},{"ruleId":"84","replacedBy":"93"},{"ruleId":"94","severity":1,"message":"95","line":70,"column":3,"nodeType":"96","messageId":"97","endLine":70,"endColumn":13},{"ruleId":"82","replacedBy":"98"},{"ruleId":"84","replacedBy":"99"},"no-native-reassign",["100"],"no-negated-in-lhs",["101"],["100"],["101"],["100"],["101"],["100"],["101"],["100"],["101"],"no-unused-vars","'bugRemoved' is assigned a value but never used.","Identifier","unusedVar",["100"],["101"],"no-global-assign","no-unsafe-negation"]