What are the recommendations for code optimization / refactoring tools?

it would be nice to have a tool like eslint to do a simple analysis / hint of the front-end code.
give a hint of which common parts of the code can be extracted. 1000 lines of code, and there are a lot of them. If you look at it one by one, the efficiency is too low.

I"ve tried the Refactor that comes with
webstorm, and it doesn"t feel very suitable for the front end. More inclined to java.

has also tried the diff tool that comes with
webstorm to compare the differences. It also feels slow

I wonder if you have any tools to recommend.

Dec.17,2021

has been resolved. The efficiency has improved a lot.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e52ab4-451c1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e52ab4-451c1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?