Skip to content

Commit

Permalink
fix: fix eslint, bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jan 25, 2022
1 parent 0f9e521 commit 1bc3a61
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 285 deletions.
8 changes: 4 additions & 4 deletions libs/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@babel/core": "^7.16.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"@svgr/webpack": "^6.2.0",
"babel-jest": "^27.4.2",
"babel-loader": "^8.2.3",
"babel-plugin-named-asset-import": "^0.3.8",
Expand All @@ -41,8 +41,8 @@
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^3.2.0",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"dotenv": "^14.3.0",
"dotenv-expand": "^6.0.1",
"eslint": "^8.3.0",
"eslint-config-react-app": "^7.0.0",
"eslint-webpack-plugin": "^3.1.1",
Expand All @@ -64,7 +64,7 @@
"react-dev-utils": "^12.0.0",
"react-refresh": "^0.11.0",
"resolve": "^1.20.0",
"resolve-url-loader": "^4.0.0",
"resolve-url-loader": "^5.0.0",
"sass-loader": "^12.3.0",
"semver": "^7.3.5",
"source-map-loader": "^3.0.0",
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
"start": "lerna run --parallel start"
},
"devDependencies": {
"eslint": "^8.7.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"lerna": "^4.0.0",
"prettier": "^2.5.1",
"typescript": "^4.5.5"
}
}
3 changes: 3 additions & 0 deletions packages/widget-embedded/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc"
}
3 changes: 3 additions & 0 deletions packages/widget-embedded/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.prettierrc"
}
18 changes: 1 addition & 17 deletions packages/widget-embedded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,22 @@
"eject": "react-scripts eject"
},
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@lifinance/widget": "^0.1.0",
"@mui/material": "^5.3.0",
"i18next": "^21.6.7",
"react": "^18.0.0-rc.0",
"react-dom": "^18.0.0-rc.0",
"react-hook-form": "^7.25.0",
"react-i18next": "^11.15.3",
"react-query": "^3.34.12",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/node": "^17.0.10",
"@types/node": "^17.0.12",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.5.1",
"typescript": "^4.5.5"
},
"eslintConfig": {
Expand Down
3 changes: 0 additions & 3 deletions packages/widget-embedded/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { LiFiWidget } from '@lifinance/widget';
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/utils';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { reportWebVitals } from './reportWebVitals';

ClassNameGenerator.configure((componentName) => componentName.replace('Mui', ''));

const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Failed to find the root element.');
Expand Down
3 changes: 3 additions & 0 deletions packages/widget/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc"
}
3 changes: 3 additions & 0 deletions packages/widget/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.prettierrc"
}
14 changes: 2 additions & 12 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,18 @@
"react-hook-form": "^7.25.0",
"react-i18next": "^11.15.3",
"react-query": "^3.34.12",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.4"
"react-router-dom": "^6.2.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/node": "^17.0.10",
"@types/node": "^17.0.12",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"eslint": "^8.7.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"prettier": "^2.5.1",
"typescript": "^4.5.5"
},
"eslintConfig": {
Expand Down
Loading

0 comments on commit 1bc3a61

Please sign in to comment.