Skip to content

Commit 0008967

Browse files
committed
chore: added exclusions for ESLint configuration
1 parent 3bff245 commit 0008967

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import payloadEsLintConfig from '@payloadcms/eslint-config'
22
import pluginStylistic from '@stylistic/eslint-plugin'
33

44
const GLOB_ALL_JS_TS = ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.mjs', '**/*.cjs']
5+
const GLOB_EXCLUDE = [
6+
'**/node_modules',
7+
'**/dist',
8+
'**/pnpm-lock.yaml',
9+
]
510

611
const stylisticConfig = {
712
files: GLOB_ALL_JS_TS,
@@ -89,6 +94,9 @@ export const defaultESLintIgnores = [
8994
]
9095

9196
export default [
97+
{
98+
ignores: GLOB_EXCLUDE,
99+
},
92100
...payloadEsLintConfig,
93101
stylisticConfig,
94102
{
@@ -109,4 +117,4 @@ export default [
109117
},
110118
},
111119
},
112-
]
120+
]

0 commit comments

Comments
 (0)