Skip to content

Commit 73f5d1a

Browse files
committed
Switch to let/const from var
1 parent bf025a8 commit 73f5d1a

26 files changed

+772
-767
lines changed

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ module.exports = {
268268
// Disallow redundant return statements
269269
"no-useless-return": "error",
270270

271+
// Use const or let instead of var
272+
"no-var": "error",
273+
271274
// Disallow whitespace before properties.
272275
"no-whitespace-before-property": "error",
273276

@@ -277,6 +280,9 @@ module.exports = {
277280
// Require object-literal shorthand with ES6 method syntax
278281
"object-shorthand": ["error", "always", { "avoidQuotes": true }],
279282

283+
// Use const instead of let where possible
284+
"prefer-const": "error",
285+
280286
// Require double-quotes everywhere, except where quotes are escaped
281287
// or template literals are used.
282288
"quotes": ["error", "double", {

0 commit comments

Comments
 (0)