We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05422fe commit f434323Copy full SHA for f434323
lib/base.js
@@ -213,7 +213,7 @@ module.exports = {
213
"max-nested-callbacks": ["warn", 5],
214
"max-params": ["warn", 7],
215
"max-statements": ["warn", 40],
216
- "new-cap": "warn",
+ "new-cap": ["warn", { capIsNewExceptions: ["Deferred"] }],
217
"no-array-constructor": "warn",
218
"no-lonely-if": "warn",
219
"no-multiple-empty-lines": [
test/fixtures/base/ok.js
@@ -1,3 +1,5 @@
1
+/* eslint-env jquery */
2
+
3
const foos = [''];
4
foos.map((foo) => foo + foo);
5
@@ -6,4 +8,7 @@ async function hoge() {
6
8
const result = await new Promise((resolve) => resolve());
7
9
return result;
10
}
-hoge();
11
+hoge();
12
13
+$.Deferred();
14
+jQuery.Deferred();
0 commit comments