js_checker.py: Replace custom GetElementByIdCheck with ESLint no-restricted-properties.

BUG=720034

Review-Url: https://codereview.chromium.org/2907763004
Cr-Commit-Position: refs/heads/master@{#475985}
diff --git a/.eslintrc.js b/.eslintrc.js
index 79c117d..270ced0 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -11,7 +11,16 @@
   'rules': {
     // Enabled checks.
     'no-extra-semi': 'error',
+    'no-restricted-properties': ['error', {
+      'object': 'document',
+      'property': 'getElementById',
+      'message': 'Use $(\'id\') or getSVGElement(\'id\') ' +
+          'from chrome://resources/js/util.js instead of ' +
+          'document.getElementById(\'id\')',
+      },
+    ],
     'semi': ['error', 'always'],
+
     // TODO(dpapad): Add more checks according to our styleguide.
   },
 };