forked from RequestNetwork/requestNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.26 KB
/
.eslintrc
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
{
"root": true,
"env": { "browser": true, "node": true },
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module"
},
"extends": ["eslint:recommended", "prettier"],
"plugins": ["jsdoc", "import", "prefer-arrow"],
"rules": {
"arrow-parens": ["off", "always"],
"curly": ["error", "all"],
"complexity": "error",
"eqeqeq": ["error", "smart"],
"import/no-extraneous-dependencies": "error"
},
"ignorePatterns": [
"/packages/docs/",
"/packages/*/dist/",
"/packages/*/coverage/",
// FIXME: tests should be linted
"/packages/*/test/",
"/packages/payment-detection/src/thegraph/generated/",
"/packages/request-client.js/docs/",
"/packages/smart-contracts/build/",
"/packages/smart-contracts/cache/",
"/packages/smart-contracts/types/",
"/packages/smart-contracts/src/types/"
],
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unused-vars": "error"
}
}
]
}