-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
52 lines (51 loc) · 1.47 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
46
47
48
49
50
51
52
{
// Global settings
"plugins": ["import", "mocha"],
"extends": [
"oclif",
"oclif-typescript",
"plugin:mocha/recommended"
],
"ignorePatterns": ["**/test/**/*.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"camelcase":"off",
"import/no-unresolved": "error",
"indent": ["error", 2, {"MemberExpression": 1}],
"mocha/no-mocha-arrows": "warn",
"mocha/no-exports": "warn",
"mocha/no-setup-in-describe": "warn",
"no-await-in-loop": "off",
"no-constant-condition": ["error", {"checkLoops": false }],
"no-process-exit": "off",
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-anonymous-default-export": "warn",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-lonely-if":"off",
"unicorn/no-process-exit": "off",
"unicorn/numeric-separators-style":"off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-regexp-test": "off"
},
// Typescript settings
"overrides": [
{
"files": ["**/*{.ts,tsx}"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": "packages/*/tsconfig.json"
}
}
}
}
]
}