Skip to content

Commit 91f7637

Browse files
committed
chore: fix globals
1 parent cadf00a commit 91f7637

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eslint.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default [
1313
globals: {
1414
process: 'readonly', // Assume process is a global variable (specific to Node.js)
1515
setTimeout: 'readonly', // Assume setTimeout is a global variable
16+
clearTimeout: 'readonly', // Added clearTimeout
17+
global: 'readonly', // Added global
1618
console: 'readonly',
1719
structuredClone: 'readonly', // Add structuredClone as a global
1820
beforeEach: 'readonly', // Testing framework globals
@@ -53,7 +55,7 @@ export default [
5355
'no-use-before-define': 'off',
5456
'no-new-require': 'error',
5557
'block-spacing': 'warn',
56-
'brace-style': ['warn', '1tbs', { 'allowSingleLine': true }],
58+
'brace-style': ['warn', '1tbs', {'allowSingleLine': true}],
5759
'camelcase': 'warn',
5860
'comma-dangle': 'error',
5961
'comma-spacing': 'warn',
@@ -62,7 +64,7 @@ export default [
6264
'eol-last': 'warn',
6365
'func-call-spacing': 'warn',
6466
'indent': ['warn', 4],
65-
'key-spacing': ['warn', { 'beforeColon': false, 'afterColon': true }],
67+
'key-spacing': ['warn', {'beforeColon': false, 'afterColon': true}],
6668
'max-len': ['warn', 120],
6769
'new-cap': ['off', {
6870
'capIsNewExceptions': [

0 commit comments

Comments
 (0)