Migrate .eslintrc.js to eslint.config.js

Change-Id: I36ad8563f28b918137ab247bd9d96919b3c26f4d
diff --git a/web/.eslintrc.js b/web/.eslintrc.js
deleted file mode 100644
index c4a47b7..0000000
--- a/web/.eslintrc.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * @license
- * Copyright 2022 Google LLC
- * SPDX-License-Identifier: Apache-2.0
- */
-__plugindir = 'codemirror-editor/web';
-module.exports = {
-  extends: '../../.eslintrc.js',
-};
diff --git a/web/eslint.config.js b/web/eslint.config.js
new file mode 100644
index 0000000..75fcd1e
--- /dev/null
+++ b/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 = 'codemirror-editor/web';
+
+const gerritEslint = require('../../eslint.config.js');
+
+module.exports = defineConfig([
+  {
+    extends: [gerritEslint],
+  },
+]);