Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: .eslintrc

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dashboard/dashboard/elements/alerts-table.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: .eslintrc
diff --git a/.eslintrc b/.eslintrc
index 2882258a48b36e6e994caa7d4258311a3967f6e2..428c7b91e19eaef6852215b064b2282c42c11fb5 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -78,7 +78,11 @@
"no-warning-comments": "off",
"no-whitespace-before-property": "off",
"object-curly-spacing": "off",
- "one-var": "off",
+ "one-var": ["error", {
+ var: "never",
+ let: "never",
+ const: "never",
+ }],
"one-var-declaration-per-line": "off",
"operator-assignment": "off",
"padded-blocks": "off",
« no previous file with comments | « no previous file | dashboard/dashboard/elements/alerts-table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698