Skip to content

Commit 0a0b29f

Browse files
committed
chore: fix eslint rule for missing pages in ui-next package
1 parent 23dba87 commit 0a0b29f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/ui-next/eslint.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
import { nextJsConfig } from "@serp-tools/eslint-config/next-js";
22

33
/** @type {import("eslint").Linter.Config} */
4-
export default nextJsConfig;
4+
const config = [...nextJsConfig];
5+
const nextPluginConfig = config.find(
6+
(c) => c.plugins && c.plugins["@next/next"]
7+
);
8+
9+
if (nextPluginConfig && nextPluginConfig.rules) {
10+
nextPluginConfig.rules["@next/next/no-html-link-for-pages"] = "off";
11+
}
12+
13+
export default config;

0 commit comments

Comments
 (0)