Skip to content

Commit

Permalink
fixed prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Feb 12, 2024
1 parent 38db118 commit 3a199bb
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 39 deletions.
4 changes: 1 addition & 3 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@
"moduleNameMapper": {
"react-markdown": "<rootDir>/node_modules/react-markdown/react-markdown.min.js",
"\\.css$": "<rootDir>/src/pages/superadmin/tableComponent/__mocks__/style-mock.js",
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileMock.js",
"react-toastify/dist/ReactToastify.css": "<rootDir>/node_modules/react-toastify/dist/ReactToastify.css",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileMock.js"
},
"moduleDirectories": [
"node_modules",
Expand Down
69 changes: 34 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"@types/react": "17.0.30"
},
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@craco/craco": "^7.0.0",
"@elastic/datemath": "^5.0.2",
"@elastic/eui": "^64.0.4",
"@emotion/react": "^11.11.1",
Expand All @@ -36,16 +39,35 @@
"@material/react-material-icon": "^0.15.0",
"@mui/base": "^5.0.0-beta.16",
"@mui/system": "^5.14.10",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^7.1.2",
"@types/date-fns": "^2.6.0",
"@types/dateformat": "^3.0.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.27",
"@types/react-dom": "18.0.4",
"@types/react-router-dom": "^5.1.8",
"@types/sinon": "^17.0.2",
"@types/styled-components": "5.1.26",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"add": "^2.0.6",
"@craco/craco": "^7.0.0",
"bech32": "^2.0.0",
"bootstrap": "^4.5.0",
"clsx": "^2.0.0",
"compose-function": "^3.0.3",
"date-fns": "^3.2.0",
"dateformat": "^3.0.3",
"elliptic": "^6.5.4",
"eslint": "^8.37.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-react": "^1.1.7",
"eslint-plugin-react": "^7.31.10",
"formik": "^2.2.6",
"fuse.js": "^5.2.3",
"husky": "^8.0.3",
"jest-fetch-mock": "^3.0.3",
"light-bolt11-decoder": "^3.0.0",
"lodash": "^4.17.15",
Expand All @@ -55,54 +77,31 @@
"mobx-persist-store": "^1.1.3",
"mobx-react-lite": "^3.4.3",
"moment": "^2.29.4",
"nock": "^13.3.0",
"prettier": "3.0.3",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-dropzone": "^14.2.3",
"react-error-overlay": "6.0.9",
"react-intersection-observer": "^9.4.1",
"react-markdown": "^8.0.3",
"react-qr-svg": "^2.2.2",
"react-qrcode-logo": "^2.5.0",
"react-router-dom": "^5.2.0",
"react-scripts": "5.0.1",
"react-select": "^5.1.0",
"react-toastify": "^9.1.3",
"react-toastify": "^10.0.4",
"rehype-raw": "^6.1.1",
"remark-gfm": "^3.0.1",
"remark-rehype": "^10.1.0",
"sinon": "^17.0.1",
"socket.io-client": "^4.6.1",
"ts-jest": "^29.1.1",
"styled-components": "5.1.0",
"yarn": "^1.22.19",
"yup": "^0.32.9",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.1",
"typescript": "^5.3.2",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^7.1.2",
"@types/dateformat": "^3.0.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.27",
"@types/react-dom": "18.0.4",
"@types/react-router-dom": "^5.1.8",
"@types/sinon": "^17.0.2",
"@types/styled-components": "5.1.26",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"bech32": "^2.0.0",
"bootstrap": "^4.5.0",
"elliptic": "^6.5.4",
"eslint": "^8.37.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-react": "^1.1.7",
"eslint-plugin-react": "^7.31.10",
"husky": "^8.0.3",
"nock": "^13.3.0",
"prettier": "3.0.3",
"react-error-overlay": "6.0.9",
"sinon": "^17.0.1",
"ts-loader": "^9.5.1"
"yarn": "^1.22.19",
"yup": "^0.32.9"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -207,7 +206,6 @@
]
},
"devDependencies": {
"cypress": "^13.6.3",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@craco/craco": "^7.0.0",
Expand All @@ -225,6 +223,7 @@
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"bootstrap": "^4.5.0",
"cypress": "^13.6.3",
"eslint": "^8.37.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-react": "^1.1.7",
Expand All @@ -239,4 +238,4 @@
"ts-loader": "^9.5.1",
"typescript": "^5.3.2"
}
}
}
2 changes: 1 addition & 1 deletion src/components/form/bounty/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function Form(props: FormProps) {
if (assigneeName !== '') {
try {
const response = await handleSubmit();

if (response && response.status === 406) {
toast.error('Bounty creation failed, Please try again.', {
closeOnClick: true,
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10738,6 +10738,13 @@ react-style-singleton@^2.2.0, react-style-singleton@^2.2.1:
invariant "^2.2.4"
tslib "^2.0.0"

react-toastify@^10.0.4:
version "10.0.4"
resolved "https://registry.yarnpkg.com/react-toastify/-/react-toastify-10.0.4.tgz#6ecdbbf923a07fc45850e69b0566efc7bf733283"
integrity sha512-etR3RgueY8pe88SA67wLm8rJmL1h+CLqUGHuAoNsseW35oTGJEri6eBTyaXnFKNQ80v/eO10hBYLgz036XRGgA==
dependencies:
clsx "^2.1.0"

react-transition-group@^4.3.0:
version "4.4.5"
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.5.tgz#e53d4e3f3344da8521489fbef8f2581d42becdd1"
Expand Down

0 comments on commit 3a199bb

Please sign in to comment.