Skip to content
Snippets Groups Projects
Commit 1090fe92 authored by Michele Alberti's avatar Michele Alberti
Browse files

[linter] Add rule no-var to disallow the use of var in favor of let and const.

parent 14bfe4e2
No related branches found
No related tags found
No related merge requests found
...@@ -77,5 +77,7 @@ module.exports = { ...@@ -77,5 +77,7 @@ module.exports = {
"react/destructuring-assignment": "off", "react/destructuring-assignment": "off",
// Allow console errors and warnings // Allow console errors and warnings
"no-console": ["error", { allow: ["warn", "error"] }], "no-console": ["error", { allow: ["warn", "error"] }],
// Disallow the use of var in favor of let and const
"no-var": "error",
} }
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment