At present, the team has a grammar check hook that checks grammar and debug code every time it submits, but it cannot detect code design-related issues, such as redundancy, number of modules, number of lines of single-method code, code redundancy is a nightmare for maintaining code, because there are as many repetitions as there are redundancies, and I don’t know what ideas can be used to detect js code redundancy through tools. At present, many mature tools are available for backend language static code checking tools. Are there any recommended static code checking tools for front-end code? Or use nodejs to develop one of its own, seeking design ideas
ESLint is recommended to detect JS.