-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.json
35 lines (34 loc) · 930 Bytes
/
.eslintrc.json
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
{
// We can"t use `mixmax/typescript` here because it hardcodes Jest support,
// which isn"t used here.
"extends": ["mixmax/node", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|^next$"
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-misused-promises": "error",
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "always"]
},
"overrides": [
{
"files": ["**/*.test.ts"],
"rules": {
"import/first": "off",
"import/order": "off"
}
}
]
}