WebUI: Hook up ESLint to web_dev_style PRESUBMIT.
Using a trivial .eslintrc.js config for now, just so that the checks
can be enabled. More lint rules will be added in follow up CLs.
BUG=720034
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2872703003
Cr-Commit-Position: refs/heads/master@{#474720}
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..9b4b1037
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module.exports = {
+ 'root': true,
+ 'env': {
+ 'browser': true,
+ 'es6': true
+ },
+ 'rules': {
+ // Enabled checks.
+ 'no-extra-semi': 'error',
+ // TODO(dpapad): Add more checks according to our styleguide.
+ },
+};