Skip to content

Commit

Permalink
Release 2.7.0. Updated createTestProxyEvent() to include headers and …
Browse files Browse the repository at this point in the history
…multiValueHeaders.
  • Loading branch information
jeff committed Sep 4, 2020
1 parent fff5f6f commit df1805d
Show file tree
Hide file tree
Showing 6 changed files with 1,365 additions and 887 deletions.
49 changes: 43 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
],
rules: {
// Using `object` has not caused us any confusion so far.
"@typescript-eslint/ban-types": "off",

// Sometimes `any` is the right answer.
"@typescript-eslint/explicit-module-boundary-types": ["error", {
allowArgumentsExplicitlyTypedAsAny: true
}],

"@typescript-eslint/explicit-function-return-type": ["error", {
allowExpressions: true,
allowTypedFunctionExpressions: true
}],

"@typescript-eslint/member-delimiter-style": ["error", {
multiline: {
delimiter: "semi",
Expand All @@ -24,22 +33,50 @@ module.exports = {
requireLast: false
}
}],
"@typescript-eslint/no-empty-function": "off", // That's just stupid.

// That's just stupid.
"@typescript-eslint/no-empty-function": "off",

// Sometimes `any` is the right answer.
"@typescript-eslint/no-explicit-any": "off",

"@typescript-eslint/no-inferrable-types": ["error", {
ignoreParameters: true
}],
"@typescript-eslint/no-namespace": "off", // Namespaces that overlap interfaces are useful.

// Namespaces that overlap interfaces are useful.
"@typescript-eslint/no-namespace": "off",

"@typescript-eslint/no-use-before-define": ["error", {
// Functions are hoisted. This is not a logic error.
functions: false
}],
"@typescript-eslint/no-var-requires": "off", // It's occasionally useful to inline a require; especially json.

"@typescript-eslint/no-unused-vars": ["error", {
args: "none" // Often useful to document functions.
// Often useful to document functions.
args: "none"
}],
"no-inner-declarations": "off", // Needed to allow functions exported from namespaces.

// Needed to allow functions exported from namespaces.
"no-inner-declarations": "off",

"no-constant-condition": ["error", {
// Allow the while(true) pattern.
checkLoops: false
}]
}],

"no-restricted-properties": [2, {
object: "describe",
property: "only",
message: "This is ok for development but should not be checked in."
}, {
object: "it",
property: "only",
message: "This is ok for development but should not be checked in."
}],

// Not everybody understands the regex spec in that level of detail to recognize
// unnecessary escapes. Sometimes the extra escape adds clarity.
"no-useless-escape": "off"
}
};
Loading

0 comments on commit df1805d

Please sign in to comment.