-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 10.6 KB
/
.eslintcache
1
[{"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\index.js":"1","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\App.js":"2","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Date.js":"3","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Form.js":"4","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\TotalList.js":"5","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\IncomeList.js":"6","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\ExpensesList.js":"7","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\context\\GlobalState.js":"8","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\context\\AppReducer.js":"9","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Header\\Header.js":"10","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Income\\IncomeItem.js":"11","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Income\\IncomeSum.js":"12","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Expenses\\ExpenseItem.js":"13","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Expenses\\ExpensesSum.js":"14"},{"size":179,"mtime":1648532578000,"results":"15","hashOfConfig":"16"},{"size":1348,"mtime":1654438971332,"results":"17","hashOfConfig":"16"},{"size":164,"mtime":1654083161940,"results":"18","hashOfConfig":"16"},{"size":2049,"mtime":1654434134962,"results":"19","hashOfConfig":"16"},{"size":533,"mtime":1654351543420,"results":"20","hashOfConfig":"16"},{"size":837,"mtime":1654353602791,"results":"21","hashOfConfig":"16"},{"size":586,"mtime":1654354316467,"results":"22","hashOfConfig":"16"},{"size":115,"mtime":1654350829708,"results":"23","hashOfConfig":"16"},{"size":107,"mtime":1654248375582,"results":"24","hashOfConfig":"16"},{"size":708,"mtime":1654347982426,"results":"25","hashOfConfig":"16"},{"size":887,"mtime":1654347900476,"results":"26","hashOfConfig":"16"},{"size":441,"mtime":1654249976798,"results":"27","hashOfConfig":"16"},{"size":684,"mtime":1654354755305,"results":"28","hashOfConfig":"16"},{"size":358,"mtime":1654339522817,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"1h0cs2r",{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"32"},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"32"},{"filePath":"43","messages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"45","usedDeprecatedRules":"32"},{"filePath":"46","messages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"52","messages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"54","messages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"56","messages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"58","messages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"60","messages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\index.js",[],["62","63"],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\App.js",["64"],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Date.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Form.js",["65"],"import { useState } from \"react\";\r\nimport { useEffect } from \"react/cjs/react.production.min\";\r\nimport \"./Form.css\";\r\n\r\nconst Form = (props) => {\r\n const [enteredSign, setEnteredSign] = useState(\"-\");\r\n const [enteredDesc, setEnteredDesc] = useState(\"\");\r\n const [enteredValue, setEnteredValue] = useState(\"\");\r\n\r\n const signChangeHandler = (event) => {\r\n setEnteredSign(event.target.value);\r\n };\r\n\r\n const descChangeHandler = (event) => {\r\n setEnteredDesc(event.target.value);\r\n };\r\n\r\n const valueChangeHandler = (event) => {\r\n setEnteredValue(event.target.value);\r\n };\r\n\r\n const submitHandler = (event) => {\r\n const uniqueKey = Math.random();\r\n\r\n event.preventDefault();\r\n\r\n const enteredData = {\r\n key: uniqueKey,\r\n id: uniqueKey,\r\n sign: enteredSign,\r\n desc: enteredDesc,\r\n value: +enteredValue,\r\n };\r\n\r\n props.onSaveEnteredData(enteredData);\r\n\r\n setEnteredDesc(\"\");\r\n setEnteredValue(\"\");\r\n };\r\n\r\n return (\r\n <form className=\"form\" onSubmit={submitHandler}>\r\n <select\r\n className=\"form__select\"\r\n value={enteredSign}\r\n onChange={signChangeHandler}\r\n >\r\n <option>+</option>\r\n <option>-</option>\r\n </select>\r\n <input\r\n className=\"form__input form__input--desc\"\r\n name=\"desc\"\r\n value={enteredDesc}\r\n placeholder=\"Add description\"\r\n maxLength=\"50\"\r\n onChange={descChangeHandler}\r\n ></input>\r\n <input\r\n className=\"form__input form__input--value\"\r\n name=\"value\"\r\n value={enteredValue}\r\n placeholder=\"Value\"\r\n type=\"number\"\r\n onChange={valueChangeHandler}\r\n ></input>\r\n <button\r\n className={\r\n enteredSign === \"+\"\r\n ? \"form__button form__button--plus\"\r\n : \"form__button form__button--minus\"\r\n }\r\n type=\"submit\"\r\n value={enteredSign}\r\n >\r\n <i className=\"fa fa-solid fa-check fa-1x\"></i>\r\n </button>\r\n </form>\r\n );\r\n};\r\n\r\nexport default Form;\r\n","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\TotalList.js",["66","67"],"import { useContext } from \"react/cjs/react.production.min\";\r\nimport GlobalContext from \"../../context/GlobalState\";\r\nimport ExpensesList from \"./ExpensesList\";\r\nimport IncomeList from \"./IncomeList\";\r\nimport \"./TotalList.css\";\r\n\r\nconst TotalList = (props) => {\r\n const chosenId = (event) => {\r\n props.chosenId(event);\r\n };\r\n return (\r\n <div className=\"total-list\">\r\n <IncomeList items={props.items} chosenId={chosenId} />\r\n <ExpensesList items={props.items} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default TotalList;\r\n","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\IncomeList.js",["68"],"import \"./IncomeList.css\";\r\nimport IncomeItem from \"../Income/IncomeItem\";\r\nimport { useContext } from \"react\";\r\nimport GlobalContext from \"../../context/GlobalState\";\r\n\r\nconst IncomeList = (props) => {\r\n const context = useContext(GlobalContext);\r\n\r\n const chosenId = (event) => {\r\n props.chosenId(event);\r\n };\r\n if (props.items.length === 0) {\r\n return <h2 className=\"expense-list__fallback\">Found no incomes</h2>;\r\n }\r\n return (\r\n <div>\r\n <h2>Incomes</h2>\r\n <ul>\r\n {props.items.map((income) => (\r\n <IncomeItem\r\n key={income.id}\r\n id={income.id}\r\n sign={income.sign}\r\n title={income.desc}\r\n amount={income.value}\r\n chosenId={chosenId}\r\n />\r\n ))}\r\n </ul>\r\n </div>\r\n );\r\n};\r\n\r\nexport default IncomeList;\r\n","C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\List\\ExpensesList.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\context\\GlobalState.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\context\\AppReducer.js",["69"],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Header\\Header.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Income\\IncomeItem.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Income\\IncomeSum.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Expenses\\ExpenseItem.js",[],"C:\\Users\\Dark Angel\\Desktop\\income-and-expenses\\src\\components\\Expenses\\ExpensesSum.js",[],{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","severity":1,"message":"75","line":1,"column":20,"nodeType":"76","messageId":"77","endLine":1,"endColumn":29},{"ruleId":"74","severity":1,"message":"75","line":2,"column":10,"nodeType":"76","messageId":"77","endLine":2,"endColumn":19},{"ruleId":"74","severity":1,"message":"78","line":1,"column":10,"nodeType":"76","messageId":"77","endLine":1,"endColumn":20},{"ruleId":"74","severity":1,"message":"79","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":21},{"ruleId":"74","severity":1,"message":"80","line":7,"column":9,"nodeType":"76","messageId":"77","endLine":7,"endColumn":16},{"ruleId":"81","severity":1,"message":"82","line":1,"column":1,"nodeType":"83","endLine":6,"endColumn":3},"no-native-reassign",["84"],"no-negated-in-lhs",["85"],"no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar","'useContext' is defined but never used.","'GlobalContext' is defined but never used.","'context' is assigned a value but never used.","import/no-anonymous-default-export","Assign arrow function to a variable before exporting as module default","ExportDefaultDeclaration","no-global-assign","no-unsafe-negation"]