Problem
The codebase uses ES5 throughout (var, function expressions, manual prototype patterns). There is no linter or formatter, making it easy to introduce bugs.
Suggested improvements
- Convert to ES6+ (
const/let, arrow functions, async/await, template literals).
- Add an ESLint config with a standard ruleset.
- Optionally add Prettier for consistent formatting.
Problem
The codebase uses ES5 throughout (var, function expressions, manual prototype patterns). There is no linter or formatter, making it easy to introduce bugs.
Suggested improvements
const/let, arrow functions,async/await, template literals).