Skip to content

Commit 2e67f94

Browse files
committed
fix: add defineNuxtConfig as ESLint's globals, close #603
1 parent 58f173c commit 2e67f94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/eslint-config/src/configs/javascript.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export default function javascript(): Linter.Config[] {
2424
document: 'readonly',
2525
navigator: 'readonly',
2626
window: 'readonly',
27+
28+
// This is technically not a global function, but it's a common practice in nuxt.config.ts,
29+
// we include it here to avoid false positives.
30+
defineNuxtConfig: 'readonly',
2731
},
2832
},
2933
linterOptions: {

0 commit comments

Comments
 (0)