Skip to content

Commit

Permalink
Define globals property
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 25, 2021
1 parent adbd770 commit aeeb3ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ module.exports = defineConfig({
'phantomjs',
'pragma',
'prototypejs',
'readonly',
'scripthost',
'sharedmemory',
'tsconfig',
'typedarrays',
'webextensions',
'webworker',
'wellknown'
'wellknown',
'writeable'
]
}
],
Expand Down
6 changes: 6 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export interface EslintConfig {
* @see [Extends](https://eslint.org/docs/user-guide/configuring/configuration-files#extending-configuration-files)
*/
extends?: Extends;
/**
* Specifying Globals.
*
* @see [Globals](https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals)
*/
globals?: Record<string, 'readonly' | 'writable' | false | 'readable' | true | 'writeable' | 'off'>;
/**
* Parser.
*
Expand Down

0 comments on commit aeeb3ec

Please sign in to comment.