Skip to content

chore(23528): add TODO for linting @typescript-eslint/naming-convention#32021

Closed
DDDDDanica wants to merge 1 commit intomainfrom
chore/23528-naming-convention
Closed

chore(23528): add TODO for linting @typescript-eslint/naming-convention#32021
DDDDDanica wants to merge 1 commit intomainfrom
chore/23528-naming-convention

Conversation

@DDDDDanica
Copy link
Copy Markdown
Contributor

@DDDDDanica DDDDDanica commented Apr 15, 2025

Description

This PR addresses TypeScript ESLint error @typescript-eslint/naming-convention across the repository following the planned upgrade to @metamask/eslint-config v12.0.0(release notes here). For @typescript-eslint/naming-convention violations:

This approach follows our strategy for handling ESLint upgrades. The comprehensive fixes for these typing issues will be addressed in dedicated PRs to avoid blocking development.

Open in GitHub Codespaces

Related issues

Fixes: #23528

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@DDDDDanica DDDDDanica added the team-extension-platform Extension Platform team label Apr 15, 2025
@DDDDDanica DDDDDanica self-assigned this Apr 15, 2025
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Copy Markdown
Collaborator

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • app/scripts/controller-init/confirmations/ppom-controller-init.test.ts
  • app/scripts/controller-init/confirmations/ppom-controller-init.ts
  • app/scripts/controller-init/confirmations/transaction-controller-init.test.ts
  • app/scripts/controller-init/confirmations/transaction-controller-init.ts

🪪 @MetaMask/identity

  • app/scripts/controller-init/identity/user-storage-controller-init.ts

🔄 @MetaMask/swaps-engineers

  • app/scripts/controllers/bridge-status/bridge-status-controller.test.ts
  • app/scripts/controllers/bridge-status/types.ts
  • app/scripts/controllers/swaps/index.ts
  • app/scripts/controllers/swaps/swaps.test.ts
  • app/scripts/controllers/swaps/swaps.types.ts
  • app/scripts/lib/bridge-status/metrics.ts

@DDDDDanica DDDDDanica force-pushed the chore/23528-naming-convention branch from fb5d772 to de55992 Compare April 15, 2025 22:15
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [de55992]
UI Startup Metrics (1207 ± 62 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1207109914116212431331
load104492012185610781157
domContentLoaded103991512115610721151
domInteractive17136061628
firstPaint66577116541710511106
backgroundConnect74182712
firstReactRender2215128132140
getState1253571729
initialActions001001
loadScripts80066797353828895
setupStore75182811
WebpackHomeuiStartup20381665243417921732286
load15561223183813716851740
domContentLoaded15491215182113616781729
domInteractive151154101344
firstPaint1756851463213281
backgroundConnect3210450592860
firstReactRender20553398122333360
getState1133861223
initialActions318135
loadScripts15451213179813616751727
setupStore207298371830
FirefoxBrowserifyHomeuiStartup13281151169511413811575
load11851024156411912441436
domContentLoaded11851024156311912431436
domInteractive973517227106166
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect19124962032
firstReactRender22193332328
getState7437378
initialActions001001
loadScripts1167991154511912271418
setupStore6434367
WebpackHomeuiStartup14871329189210715551708
load1274113515969813261483
domContentLoaded1274113415969813261483
domInteractive79541472184129
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22145672340
firstReactRender34285953645
getState104649929
initialActions001011
loadScripts1255112315779813061467
setupStore85435814
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@DDDDDanica DDDDDanica marked this pull request as ready for review April 16, 2025 10:31
@DDDDDanica DDDDDanica requested review from a team as code owners April 16, 2025 10:31
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [2ee0243]
UI Startup Metrics (1206 ± 60 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1206110113956012401325
load104294811915410751154
domContentLoaded103694411815410671145
domInteractive17136281631
firstPaint75088119039610581130
backgroundConnect74152810
firstReactRender20154242129
getState1353381929
initialActions001000
loadScripts79871594251827906
setupStore84273912
WebpackHomeuiStartup21681573252416423012389
load16881234207312617791846
domContentLoaded16811229206812517681836
domInteractive171157111449
firstPaint1756857479213292
backgroundConnect319273403355
firstReactRender20955400124330368
getState143158171636
initialActions317145
loadScripts16761227204512517631834
setupStore186182192035
FirefoxBrowserifyHomeuiStartup13571192171710414181565
load12121028159511212711401
domContentLoaded12121028159511212701400
domInteractive1093828641124202
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect191283101939
firstReactRender22193232227
getState7412189
initialActions001001
loadScripts11941010158111312541383
setupStore6435367
WebpackHomeuiStartup14991330190212015551772
load12781140165010713171500
domContentLoaded12781140165010713161499
domInteractive76331532081120
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2613269272442
firstReactRender36286264047
getState94305923
initialActions102111
loadScripts12561123163310313011462
setupStore95457830
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

sahar-fehri
sahar-fehri previously approved these changes Apr 16, 2025
NidhiKJha
NidhiKJha previously approved these changes Apr 16, 2025
@DDDDDanica DDDDDanica dismissed stale reviews from NidhiKJha and sahar-fehri via dd4e069 April 16, 2025 13:07
@DDDDDanica DDDDDanica force-pushed the chore/23528-naming-convention branch from 2ee0243 to dd4e069 Compare April 16, 2025 13:07
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [dd4e069]
UI Startup Metrics (1203 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1203110713775712391306
load103992911975510731147
domContentLoaded103389511865510671130
domInteractive18136191735
firstPaint74176119440410621119
backgroundConnect74273712
firstReactRender2115150142133
getState135117131926
initialActions001001
loadScripts79566294653830900
setupStore84414813
WebpackHomeuiStartup20611669259417621682289
load15901319200013617041777
domContentLoaded15841316199113417001770
domInteractive161158101347
firstPaint1816746870233312
backgroundConnect24985132552
firstReactRender19954388116327353
getState1143851321
initialActions316135
loadScripts15791314196713416991767
setupStore236293412035
FirefoxBrowserifyHomeuiStartup13511139177811514081608
load12021008163111912821436
domContentLoaded12011007163111912821436
domInteractive1043820931123171
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2112108122028
firstReactRender23195662431
getState7425379
initialActions001001
loadScripts1182994161112112671423
setupStore6449668
WebpackHomeuiStartup15531370212914616371878
load13241167187412614011614
domContentLoaded13231167187412614001614
domInteractive85383033688143
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21154252234
firstReactRender35295043746
getState84466820
initialActions102111
loadScripts13051151186212613821598
setupStore12530030922
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

sahar-fehri
sahar-fehri previously approved these changes Apr 16, 2025
GustavoRSSilva
GustavoRSSilva previously approved these changes Apr 16, 2025
NidhiKJha
NidhiKJha previously approved these changes Apr 16, 2025
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [dfb691f]
UI Startup Metrics (1221 ± 74 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1221108915897412551353
load105694413336610821181
domContentLoaded105093913256610761176
domInteractive18136581728
firstPaint60571123442210531149
backgroundConnect74203811
firstReactRender20155452133
getState1253171927
initialActions001001
loadScripts810702105463838931
setupStore84233812
WebpackHomeuiStartup20981725244716521992386
load16191298186712517121819
domContentLoaded16121292185712517081813
domInteractive151161101348
firstPaint1766451869214299
backgroundConnect269188212956
firstReactRender20755392121338368
getState133230231423
initialActions318135
loadScripts16081290185212617071810
setupStore197249241935
FirefoxBrowserifyHomeuiStartup13561170180910814121567
load12071005168911012791383
domContentLoaded12071004168911012791382
domInteractive1053824931121154
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect20136782135
firstReactRender22195842328
getState9417117818
initialActions001001
loadScripts1188992167611012601362
setupStore64304618
WebpackHomeuiStartup15381351207214616291879
load13171153179713213931604
domContentLoaded13171153179513213931604
domInteractive853416324101136
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21144152231
firstReactRender35294853747
getState94306828
initialActions001011
loadScripts12981139177513113731584
setupStore95558829
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@DDDDDanica DDDDDanica added the no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed label Apr 16, 2025
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [20ed87b]
UI Startup Metrics (1209 ± 63 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1209107515156312391312
load104595412285310721144
domContentLoaded103995012205210651140
domInteractive18136181730
firstPaint719131116440910581144
backgroundConnect74263711
firstReactRender21153752133
getState13586111731
initialActions002001
loadScripts80071096251826904
setupStore84254916
WebpackHomeuiStartup20611636234613121172284
load1600130218409916901763
domContentLoaded1593129818379916841760
domInteractive161065111351
firstPaint1776936766219323
backgroundConnect269357362557
firstReactRender19854374122332351
getState124248241121
initialActions315134
loadScripts15881297183510116801759
setupStore176283271731
FirefoxBrowserifyHomeuiStartup13281156177212913721569
load1185995165312812341442
domContentLoaded1184995165312812341442
domInteractive973624938109183
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2113115142046
firstReactRender21183932126
getState9415515826
initialActions001001
loadScripts1165982163012812181426
setupStore6422269
WebpackHomeuiStartup15071349185312415791770
load12871157160310713491529
domContentLoaded12871157160310713491529
domInteractive81501672288122
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23157892341
firstReactRender35285153746
getState12427828931
initialActions002111
loadScripts12681139158110713311516
setupStore85315822

@DDDDDanica DDDDDanica force-pushed the chore/23528-naming-convention branch 2 times, most recently from d3fee30 to 96c1e19 Compare April 17, 2025 08:57
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [d3fee30]
UI Startup Metrics (1213 ± 69 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1213109116096912451332
load104995013606010711169
domContentLoaded104394613576010661159
domInteractive18136591636
firstPaint71990121541710591140
backgroundConnect7425279
firstReactRender21165162133
getState1253071627
initialActions001001
loadScripts80171195950828877
setupStore86243812
WebpackHomeuiStartup21081698252716922252395
load16291278214815617151936
domContentLoaded16231271214415617081908
domInteractive161165121353
firstPaint1806841164210293
backgroundConnect23972132559
firstReactRender21754467127345362
getState174355431428
initialActions317134
loadScripts16181268214215517061885
setupStore196296291831
FirefoxBrowserifyHomeuiStartup19491215328352222892984
load17611092311850121032782
domContentLoaded17611091311850121032782
domInteractive19349666115239441
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect251593112845
firstReactRender292095123351
getState125167181032
initialActions001001
loadScripts17391064309750020682761
setupStore11427327817
WebpackHomeuiStartup15371328196515416251885
load13081143164912213671578
domContentLoaded13071142164912213671578
domInteractive84391983194159
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2414166162440
firstReactRender35295143745
getState134301301030
initialActions102111
loadScripts12881123163212213521559
setupStore12533833830

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [96c1e19]
UI Startup Metrics (1197 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1197107213415912411295
load103594511835110621123
domContentLoaded102994111764910561118
domInteractive17134151728
firstPaint718132118340110441118
backgroundConnect7436379
firstReactRender22165172239
getState1253681729
initialActions001001
loadScripts79270594548814877
setupStore75182812
WebpackHomeuiStartup21421722264517422462370
load16571341202313017581848
domContentLoaded16501337201113017541840
domInteractive161164101350
firstPaint1767341961213287
backgroundConnect249106142555
firstReactRender21555458126348367
getState1043151322
initialActions612772736
loadScripts16451336198712917521835
setupStore196311301932
FirefoxBrowserifyHomeuiStartup13441166170711613961612
load11921036154610912441432
domContentLoaded11911036154510912441432
domInteractive993929237104180
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213121152345
firstReactRender23196262431
getState9420120819
initialActions001001
loadScripts11711023152911012251417
setupStore841871868
WebpackHomeuiStartup15341339217114216131784
load13141158191812713921529
domContentLoaded13141157191812713911528
domInteractive84361512395130
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23159392438
firstReactRender34296053644
getState12526626929
initialActions001011
loadScripts12941139190012713741508
setupStore85376827

GustavoRSSilva
GustavoRSSilva previously approved these changes Apr 17, 2025
sahar-fehri
sahar-fehri previously approved these changes Apr 17, 2025
MajorLift
MajorLift previously approved these changes Apr 17, 2025
@Gudahtt
Copy link
Copy Markdown
Member

Gudahtt commented Apr 17, 2025

I noticed that the imported names were flagged in a lot of places here. This was unintended, and we recently loosened this rule in the config repo to be more accepting of different import names: MetaMask/eslint-config#388
(not released yet, expected to land in the next v14.x config release)

Perhaps we could bring those config changes in early here, and drop those lint violations? We do want to keep using capitalized imports for imported classes I think.

Let me know if you'd prefer to make those changes here, or in a later PR.

@DDDDDanica
Copy link
Copy Markdown
Contributor Author

DDDDDanica commented Apr 17, 2025

@Gudahtt thanks for sharing the updates ! Actually currently all the todos are made against v12.0.0 as after that we need a migration of eslint for extension to be able to achieve further migration to v14.0.0. What we can do is to have an override for the current rule in extension, which will be the exact same as the PR you showed me. So we can achieve all in 1 PR. WdYt ?

@Gudahtt
Copy link
Copy Markdown
Member

Gudahtt commented Apr 17, 2025

What we can do is to have an override for the current rule in extension, which will be the exact same as the PR you showed me. So we can achieve all in 1 PR. WdYt ?

An override is exactly what I meant to suggest, sorry for the miscommunication. This sounds great.

@DDDDDanica
Copy link
Copy Markdown
Contributor Author

Closed due to an updated rule, and new directives are collected in https://github.com/MetaMask/metamask-extension/pull/32106/files

@DDDDDanica DDDDDanica closed this Apr 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
@HowardBraham HowardBraham deleted the chore/23528-naming-convention branch January 19, 2026 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Bump @metamask/eslint-config-typescript to latest

8 participants