Skip to content

Commit db2614b

Browse files
committed
chore: update ESLint configuration to include globals for Node environment
1 parent 2a029ba commit db2614b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

eslint.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@ export default [
22
// ignore common build and dependency folders
33
{ ignores: ['node_modules/**', 'dist/**', '.git/**', 'examples/**', '**/*.d.ts'] },
44
{
5-
files: ['src/**/*.js'],
5+
// default language options and globals for plugin source files (Node environment)
66
languageOptions: {
77
ecmaVersion: 2022,
88
sourceType: 'module',
9+
globals: {
10+
process: 'readonly',
11+
global: 'readonly',
12+
module: 'readonly',
13+
require: 'readonly',
14+
__dirname: 'readonly',
15+
__filename: 'readonly',
16+
Buffer: 'readonly',
17+
},
918
},
1019
rules: {
1120
complexity: ['error', { max: 10 }],

0 commit comments

Comments
 (0)