Skip to content

Commit

Permalink
Switch to let/const from var
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed May 4, 2018
1 parent bf025a8 commit 73f5d1a
Show file tree
Hide file tree
Showing 26 changed files with 772 additions and 767 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Expand Up @@ -268,6 +268,9 @@ module.exports = {
// Disallow redundant return statements
"no-useless-return": "error",

// Use const or let instead of var
"no-var": "error",

// Disallow whitespace before properties.
"no-whitespace-before-property": "error",

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

// Use const instead of let where possible
"prefer-const": "error",

// Require double-quotes everywhere, except where quotes are escaped
// or template literals are used.
"quotes": ["error", "double", {
Expand Down

0 comments on commit 73f5d1a

Please sign in to comment.