Skip to content

Commit e167872

Browse files
authored
feat: change wrap-iife rule to any from outside (#42)
1 parent b1ea037 commit e167872

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
"no-void": "error",
4545
"no-with": "error",
4646
radix: "error",
47-
"wrap-iife": "error",
47+
"wrap-iife": ["error", "any"],
4848
// no-case-declarations
4949
// no-empty-pattern
5050
// no-fallthrough

test/fixtures/es5/ok.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
foos.map(function(foo) {
55
return foo + foo;
66
});
7-
}());
7+
})();

test/fixtures/es5/warning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
[].map(function(v) {
99
alert(v);
1010
});
11-
}());
11+
})();

test/fixtures/kintone/error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function() {
22
var a = '';
33
alert(a);
4-
}());
4+
})();
55

66

77
function foo() {

test/fixtures/kintone/ok.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33
var a = '';
44
alert(a);
5-
}());
5+
})();
66

77

88
function foo() {

0 commit comments

Comments
 (0)