Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit aeeb3ec

Browse files
committed
Define globals property
1 parent adbd770 commit aeeb3ec

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@ module.exports = defineConfig({
103103
'phantomjs',
104104
'pragma',
105105
'prototypejs',
106+
'readonly',
106107
'scripthost',
107108
'sharedmemory',
108109
'tsconfig',
109110
'typedarrays',
110111
'webextensions',
111112
'webworker',
112-
'wellknown'
113+
'wellknown',
114+
'writeable'
113115
]
114116
}
115117
],

src/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export interface EslintConfig {
3434
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
3535
*/
3636
extends?: Extends;
37+
/**
38+
* Specifying Globals.
39+
*
40+
* @see [Globals](https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals)
41+
*/
42+
globals?: Record<string, 'readonly' | 'writable' | false | 'readable' | true | 'writeable' | 'off'>;
3743
/**
3844
* Parser.
3945
*

0 commit comments

Comments
 (0)