Skip to content

Commit 305041d

Browse files
committed
MLE-24763 Lint: Preferring const
Zillion little changes, but any issues should cause test failures locally and on Jenkins.
1 parent 0f96e98 commit 305041d

28 files changed

+1531
-1526
lines changed

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ module.exports = [
3535
"no-unused-vars": "error",
3636
"no-undef": "error",
3737

38+
// ES6+ modernization - GO TIME! 🚀
39+
"prefer-const": "error", // Use const for variables never reassigned
40+
"no-var": "error", // Disallow var, use let/const instead
41+
3842
// Spacing rules (disabled for initial setup - TODO: Fix in separate PR)
3943
"arrow-spacing": "off",
4044
"space-before-blocks": "off",

0 commit comments

Comments
 (0)