Skip to content

Commit 38f5309

Browse files
committed
fix
1 parent 7a81c6c commit 38f5309

2 files changed

Lines changed: 32 additions & 21 deletions

File tree

apps/docs/eslint.config.mjs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
2-
import nextTypescript from "eslint-config-next/typescript";
3-
import { dirname } from "path"
4-
import { fileURLToPath } from "url"
1+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals"
2+
import nextTypescript from "eslint-config-next/typescript"
53

6-
const __filename = fileURLToPath(import.meta.url)
7-
const __dirname = dirname(__filename)
8-
9-
const eslintConfig = [...nextCoreWebVitals, ...nextTypescript, {
10-
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"]
11-
}]
4+
const eslintConfig = [
5+
...nextCoreWebVitals,
6+
...nextTypescript,
7+
{
8+
ignores: [
9+
"node_modules/**",
10+
".next/**",
11+
"out/**",
12+
"build/**",
13+
"next-env.d.ts",
14+
"public/_pagefind/**",
15+
],
16+
},
17+
]
1218

1319
export default eslintConfig
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
2-
import nextTypescript from "eslint-config-next/typescript";
3-
import { dirname } from "path";
4-
import { fileURLToPath } from "url";
1+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals"
2+
import nextTypescript from "eslint-config-next/typescript"
53

6-
const __filename = fileURLToPath(import.meta.url);
7-
const __dirname = dirname(__filename);
4+
const eslintConfig = [
5+
...nextCoreWebVitals,
6+
...nextTypescript,
7+
{
8+
ignores: [
9+
"node_modules/**",
10+
".next/**",
11+
"out/**",
12+
"build/**",
13+
"next-env.d.ts",
14+
],
15+
},
16+
]
817

9-
const eslintConfig = [...nextCoreWebVitals, ...nextTypescript, {
10-
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"]
11-
}];
12-
13-
export default eslintConfig;
18+
export default eslintConfig

0 commit comments

Comments
 (0)