Skip to content

Commit 7786865

Browse files
authored
Update isolated-functions.js
1 parent 60f072d commit 7786865

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

rules/isolated-functions.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const create = context => {
3333
};
3434

3535
options.comments = options.comments.map(comment => comment.toLowerCase());
36+
3637
const allowedGlobals = options.globals === true
3738
? new Set(Object.keys(context.languageOptions.globals))
3839
: new Set(options.globals || []);
@@ -118,7 +119,17 @@ const schema = [
118119
additionalProperties: false,
119120
properties: {
120121
globals: {
121-
oneOf: [{type: 'boolean'}, {type: 'array', items: {type: 'string'}}],
122+
oneOf: [
123+
{
124+
type: 'boolean',
125+
},
126+
{
127+
type: 'array',
128+
items: {
129+
type: 'string',
130+
},
131+
},
132+
],
122133
},
123134
functions: {
124135
type: 'array',

0 commit comments

Comments
 (0)