Skip to content

Commit df1805d

Browse files
author
jeff
committed
Release 2.7.0. Updated createTestProxyEvent() to include headers and multiValueHeaders.
1 parent fff5f6f commit df1805d

File tree

6 files changed

+1365
-887
lines changed

6 files changed

+1365
-887
lines changed

.eslintrc.js

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ module.exports = {
1010
"plugin:@typescript-eslint/recommended",
1111
],
1212
rules: {
13+
// Using `object` has not caused us any confusion so far.
14+
"@typescript-eslint/ban-types": "off",
15+
16+
// Sometimes `any` is the right answer.
17+
"@typescript-eslint/explicit-module-boundary-types": ["error", {
18+
allowArgumentsExplicitlyTypedAsAny: true
19+
}],
20+
1321
"@typescript-eslint/explicit-function-return-type": ["error", {
1422
allowExpressions: true,
1523
allowTypedFunctionExpressions: true
1624
}],
25+
1726
"@typescript-eslint/member-delimiter-style": ["error", {
1827
multiline: {
1928
delimiter: "semi",
@@ -24,22 +33,50 @@ module.exports = {
2433
requireLast: false
2534
}
2635
}],
27-
"@typescript-eslint/no-empty-function": "off", // That's just stupid.
36+
37+
// That's just stupid.
38+
"@typescript-eslint/no-empty-function": "off",
39+
40+
// Sometimes `any` is the right answer.
2841
"@typescript-eslint/no-explicit-any": "off",
42+
2943
"@typescript-eslint/no-inferrable-types": ["error", {
3044
ignoreParameters: true
3145
}],
32-
"@typescript-eslint/no-namespace": "off", // Namespaces that overlap interfaces are useful.
46+
47+
// Namespaces that overlap interfaces are useful.
48+
"@typescript-eslint/no-namespace": "off",
49+
3350
"@typescript-eslint/no-use-before-define": ["error", {
51+
// Functions are hoisted. This is not a logic error.
3452
functions: false
3553
}],
36-
"@typescript-eslint/no-var-requires": "off", // It's occasionally useful to inline a require; especially json.
54+
3755
"@typescript-eslint/no-unused-vars": ["error", {
38-
args: "none" // Often useful to document functions.
56+
// Often useful to document functions.
57+
args: "none"
3958
}],
40-
"no-inner-declarations": "off", // Needed to allow functions exported from namespaces.
59+
60+
// Needed to allow functions exported from namespaces.
61+
"no-inner-declarations": "off",
62+
4163
"no-constant-condition": ["error", {
64+
// Allow the while(true) pattern.
4265
checkLoops: false
43-
}]
66+
}],
67+
68+
"no-restricted-properties": [2, {
69+
object: "describe",
70+
property: "only",
71+
message: "This is ok for development but should not be checked in."
72+
}, {
73+
object: "it",
74+
property: "only",
75+
message: "This is ok for development but should not be checked in."
76+
}],
77+
78+
// Not everybody understands the regex spec in that level of detail to recognize
79+
// unnecessary escapes. Sometimes the extra escape adds clarity.
80+
"no-useless-escape": "off"
4481
}
4582
};

0 commit comments

Comments
 (0)