Migrate .eslintrc.js to eslint.config.js

Change-Id: I49980b6d14a45846630cdc99e208086ac84626ae
diff --git a/github-plugin/web/.eslintrc.js b/github-plugin/web/.eslintrc.js
deleted file mode 100644
index db4adcd..0000000
--- a/github-plugin/web/.eslintrc.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * @license
- * Copyright 2022 Google LLC
- * SPDX-License-Identifier: Apache-2.0
- */
-__plugindir = "github/github-plugin/web";
-module.exports = {
-  extends: "../../../.eslintrc.js",
-};
\ No newline at end of file
diff --git a/github-plugin/web/eslint.config.js b/github-plugin/web/eslint.config.js
new file mode 100644
index 0000000..86e21af
--- /dev/null
+++ b/github-plugin/web/eslint.config.js
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2022 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+const {defineConfig} = require('eslint/config');
+
+// eslint-disable-next-line no-undef
+__plugindir = 'github/github-plugin/web';
+
+const gerritEslint = require('../../eslint.config.js');
+
+module.exports = defineConfig([
+  {
+    extends: [gerritEslint],
+  },
+]);
\ No newline at end of file