Skip to content
Merged
Show file tree
Hide file tree
Changes from 81 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
9b4cd28
Set `react-hooks/rules-of-hooks` eslint ruleset to "error"
MajorLift Oct 30, 2025
af51e2b
Fix `rules-of-hooks` violations
MajorLift Oct 30, 2025
c53e435
Rename: `{s,useS}etConfirmationAlerts`
MajorLift Oct 30, 2025
0e10ad7
Add `eslint-disable` directives for `rules-of-hooks`
MajorLift Oct 30, 2025
d3c1f6e
Rename: `{s,useS}yncConfirmPath`
MajorLift Oct 30, 2025
4abb021
Merge branch 'main' into jongsun/chore/251030-enable-rules-of-hooks
MajorLift Nov 12, 2025
da42adc
Fix conditional hook calls introduced from main
MajorLift Nov 12, 2025
8fd5794
Fix incorrectly resolved merge conflict
MajorLift Nov 12, 2025
8933eb6
Set up React Compiler
MajorLift Nov 3, 2025
435d46f
Fix formatting rule violations
MajorLift Nov 3, 2025
3d6ddc1
Fix logical rule violations
MajorLift Nov 3, 2025
8f719cb
Fix breakages
MajorLift Nov 3, 2025
3520c5b
Merge branch 'main' into jongsun/chore/251030-enable-rules-of-hooks
MajorLift Nov 13, 2025
81d2550
Merge branch 'main' into jongsun/chore/251030-enable-rules-of-hooks
MajorLift Nov 14, 2025
a416f2c
Refactor webpack config to have dedicated loader for react compiler
MajorLift Nov 12, 2025
e1020cf
Fix lint regression
MajorLift Nov 13, 2025
26474c8
Fix regression from main
MajorLift Nov 13, 2025
885d97d
Fix webpack react compiler loader option object type
MajorLift Nov 13, 2025
d2fa283
Fix incorrectly resolved merge conflict
MajorLift Nov 13, 2025
8983be0
Use exact versions for react compiler deps
MajorLift Nov 14, 2025
148a3e1
Merge branch 'jongsun/chore/251030-enable-rules-of-hooks' into jongsu…
MajorLift Nov 14, 2025
ca4e8e2
More fixes
MajorLift Nov 14, 2025
958e912
Merge branch 'jongsun/chore/251030-enable-rules-of-hooks' into jongsu…
MajorLift Nov 17, 2025
d816c82
Rename `{use,handle}SnapNavigate`
MajorLift Nov 17, 2025
b64d7db
lavamoat: Widen `process` nested globals access to top-level scope
MajorLift Nov 17, 2025
2b2fdb4
Update LavaMoat policies
metamaskbot Nov 17, 2025
1a87ae8
Fix ui path in webpack loader
MajorLift Nov 17, 2025
7ed0746
Update LavaMoat policies
metamaskbot Nov 17, 2025
287d5b9
Remove source path exceptions
MajorLift Nov 18, 2025
64a540d
test: Update unit test snapshot
MajorLift Nov 18, 2025
300cdf0
Exclude `typed-sign-permission-util.ts`
MajorLift Nov 18, 2025
2672f02
Fix error from missing `t` in dep array
MajorLift Nov 18, 2025
57b3a75
Fix "Should have a queue" error by opting-out `ui/pages/confirmations…
MajorLift Nov 18, 2025
b4be12a
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 18, 2025
a07e1b4
Opt-out regression from main
MajorLift Nov 19, 2025
4fa7ca9
Fix incorrect mounting logic
MajorLift Nov 19, 2025
c7683cd
Remove unnecessary key prop
MajorLift Nov 19, 2025
db50bc8
Fix build config
MajorLift Nov 19, 2025
9c7180f
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 19, 2025
a51fdb7
Update LavaMoat policies
metamaskbot Nov 19, 2025
d3453be
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 19, 2025
11a605d
Opt-outs
MajorLift Nov 19, 2025
6439755
Add excluded paths
MajorLift Nov 19, 2025
3c917a3
Add react compiler logger for webpack
MajorLift Nov 19, 2025
5e908de
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 19, 2025
fae3b64
Update LavaMoat policies
metamaskbot Nov 19, 2025
8ac83e8
Revert webpack config
MajorLift Nov 20, 2025
01c9906
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 20, 2025
dbe4c7d
Remove `exhaustive-deps` regression from main
MajorLift Nov 20, 2025
9ed8bca
Update LavaMoat policies
metamaskbot Nov 20, 2025
8521341
Remove `component-library` from excluded paths
MajorLift Nov 20, 2025
1b20e16
Remove webpack entry in `.depcheckrc`
MajorLift Nov 20, 2025
3cd3634
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 20, 2025
249d0ea
Fix faulty fallback logic for confirm alerts state keys
MajorLift Nov 20, 2025
931a675
Bump deps to v1.0
MajorLift Nov 20, 2025
d5ab272
Fix `useAsync` mounted check race condition
MajorLift Nov 20, 2025
1339d5c
Add entry to exclude patterns
MajorLift Nov 20, 2025
9916a99
Update LavaMoat policies
metamaskbot Nov 20, 2025
94e10c8
Add deps
MajorLift Nov 21, 2025
66aba3d
Fix HOC-returned component local name
MajorLift Nov 21, 2025
e839433
Opt-out `useTokenExchangeRate`
MajorLift Nov 21, 2025
8a491bc
Fix `renderHook` usage in test
MajorLift Nov 21, 2025
2576d4f
Refactor babel config to register react compiler as an override
MajorLift Nov 21, 2025
e456d36
Dedupe lockfile
MajorLift Nov 21, 2025
b17086f
Revert "Dedupe lockfile"
MajorLift Nov 21, 2025
a5acea4
Make regex non-capturing
MajorLift Nov 21, 2025
d0321db
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 21, 2025
713aa39
Fix babel config regex to only match top-level `ui/`
MajorLift Nov 23, 2025
478ac1d
Bump `tsx` from `^4.19.2` to `^4.20.6`
MajorLift Nov 24, 2025
0a7f8d6
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 24, 2025
a9ce8e9
Update LavaMoat policies
metamaskbot Nov 24, 2025
663a07b
Bump `koa` from `^2.7.0` to `^3.1.1`
MajorLift Nov 24, 2025
08d667a
Update LavaMoat policies
metamaskbot Nov 24, 2025
f5674d5
Fix regex
MajorLift Nov 24, 2025
01094ea
Remove unnecessary cleanup
MajorLift Nov 25, 2025
7969aa6
Opt-out confirm alert files
MajorLift Nov 25, 2025
6788b0f
Revert `in` property check
MajorLift Nov 25, 2025
189e390
Revert handling for `background[method]` not function error
MajorLift Nov 25, 2025
be6e749
Add missing background method mock
MajorLift Nov 25, 2025
dda7ecb
Opt-out `useAssetMetadata`
MajorLift Nov 25, 2025
2455a12
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 25, 2025
9e269b9
Remove opt-out from root
MajorLift Nov 26, 2025
c47e3f6
Merge branch 'main' into jongsun/build/251103-enable-react-compiler
MajorLift Nov 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ignores:
- '@lavamoat/webpack'
- '@lavamoat/allow-scripts'
- '@babel/runtime'
- 'react-compiler-runtime'
- '@fortawesome/fontawesome-free'
- 'punycode'
# injected via build system
Expand Down Expand Up @@ -83,6 +84,7 @@ ignores:
- 'core-js-pure' # polyfills
# babel
- '@babel/plugin-transform-logical-assignment-operators'
- 'babel-plugin-react-compiler'
# used in image optimization script
- 'sharp'
# trezor
Expand Down
6 changes: 4 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ module.exports = {
jsx: true,
},
},
plugins: ['react'],
plugins: ['react', 'react-compiler'],
rules: {
'react-compiler/react-compiler': 'error',
'react/no-unused-prop-types': 'error',
'react/no-unused-state': 'error',
'react/jsx-boolean-value': 'error',
Expand Down Expand Up @@ -362,8 +363,9 @@ module.exports = {
jsx: true,
},
},
plugins: ['react'],
plugins: ['react', 'react-compiler'],
rules: {
'react-compiler/react-compiler': 'error',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-compiler/react-compiler ESLint rule is set to "error"

'react/no-unused-prop-types': 'warn',
'react/no-unused-state': 'warn',
'react/jsx-boolean-value': 'off',
Expand Down
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ const path = require('path');

module.exports = function (api) {
api.cache(false);
const slash = `\\${path.sep}`;
return {
parserOpts: {
strictMode: true,
},
targets: {
browsers: ['chrome >= 89', 'firefox >= 89'],
},
overrides: [
{
test: new RegExp(
`^${path.join(__dirname, 'ui')}${slash}(?:components|contexts|hooks|layouts|pages)${slash}(?:.(?!\\.(?:test|stories|container)))+\\.(?:m?[jt]s|[jt]sx)$`,
'u',
),
plugins: [['babel-plugin-react-compiler', { target: '17' }]],
},
],
plugins: [
// `browserify` is old and busted, and doesn't support `??=` (and other
// logical assignment operators). This plugin lets us target es2020-level
Expand Down
Loading
Loading