Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Aug 3, 2022
1 parent 22a64f0 commit 4565876
Show file tree
Hide file tree
Showing 194 changed files with 15,638 additions and 16,536 deletions.
23 changes: 20 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,33 @@
"jsx": true
}
},
"ignorePatterns": ["node_modules/**/*"],
"ignorePatterns": [
"src/locales/**/*.js",
"src/locales/**/en-US.po",
"node_modules",
"build",
"dist",
".DS_Store",
".env.local",
".env.development.local",
".env.test.local",
".env.production.local",
".idea/",
".vscode/",
"public",
"package-lock.json",
"yarn.lock"
],
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"react-app",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"rules": {
Expand All @@ -28,6 +44,7 @@
"@typescript-eslint/camelcase": "off",
"react/prop-types": "off",
"@typescript-eslint/interface-name-prefix": "off",
"no-duplicate-imports": "error"
"no-duplicate-imports": "error",
"react/react-in-jsx-scope": "off"
}
}
24 changes: 19 additions & 5 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ const CompressionPlugin = require('compression-webpack-plugin')
module.exports = function override(config, env) {
config = rewireStyledComponents(config, env)

let loaders = config.resolve
loaders.fallback = {
// "fs": false,
// "tls": false,
// "net": false,
// "http": require.resolve("stream-http"),
// "https": false,
// "zlib": require.resolve("browserify-zlib") ,
// "path": require.resolve("path-browserify"),
// "stream": require.resolve("stream-browserify"),
// "util": require.resolve("util/"),
crypto: require.resolve('crypto-browserify'),
}

config.optimization = {
...config.optimization,
moduleIds: 'named',
Expand All @@ -13,8 +27,8 @@ module.exports = function override(config, env) {
vendor: {
test: /[\\/]node_modules[\\/](ethers|@ethersproject)[\\/]/,
name: 'ethers',
chunks: 'all'
}
chunks: 'all',
},
// commons: {
// test: /[\\/]node_modules[\\/]/,
// // cacheGroupKey here is `commons` as the key of the cacheGroup
Expand All @@ -28,12 +42,12 @@ module.exports = function override(config, env) {
// },
// chunks: 'all'
// }
}
}
},
},
}

return {
...config,
plugins: [...config.plugins, new CompressionPlugin()]
plugins: [...config.plugins, new CompressionPlugin()],
}
}
50 changes: 0 additions & 50 deletions cypress/integration/add-liquidity.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions cypress/integration/landing.test.ts

This file was deleted.

20 changes: 0 additions & 20 deletions cypress/integration/lists.test.ts

This file was deleted.

8 changes: 0 additions & 8 deletions cypress/integration/migrate-v1.test.ts

This file was deleted.

12 changes: 0 additions & 12 deletions cypress/integration/pool.test.ts

This file was deleted.

39 changes: 0 additions & 39 deletions cypress/integration/remove-liquidity.test.ts

This file was deleted.

11 changes: 0 additions & 11 deletions cypress/integration/send.test.ts

This file was deleted.

75 changes: 0 additions & 75 deletions cypress/integration/swap.test.ts

This file was deleted.

17 changes: 0 additions & 17 deletions cypress/integration/token-warning.ts

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/support/commands.d.ts

This file was deleted.

Loading

0 comments on commit 4565876

Please sign in to comment.