forked from pushplay/stripe-stateful-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.93 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/camelcase": "off", // Stripe doesn't work that way.
"@typescript-eslint/explicit-module-boundary-types": ["error", {
allowArgumentsExplicitlyTypedAsAny: true // That's dumb.
}],
"@typescript-eslint/explicit-function-return-type": ["error", {
allowExpressions: true,
allowTypedFunctionExpressions: true
}],
"@typescript-eslint/member-delimiter-style": ["error", {
multiline: {
delimiter: "semi",
requireLast: true
},
singleline: {
delimiter: "comma",
requireLast: false
}
}],
"@typescript-eslint/no-empty-function": "off", // That's just stupid.
"@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.
"@typescript-eslint/no-use-before-define": ["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.
}],
"no-inner-declarations": "off", // Needed to allow functions exported from namespaces.
"no-constant-condition": ["error", {
checkLoops: false
}],
"semi": "error"
}
};