-
Notifications
You must be signed in to change notification settings - Fork 224
/
.eslintrc
71 lines (70 loc) · 3.06 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
// 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",
"@typescript-eslint/no-unused-vars": ["warn", {"ignoreRestSiblings": true}], // TODO: fix issues and turn this back on
"camelcase":"off",
"import/no-unresolved": "error",
"indent": ["error", 2, {"MemberExpression": 1}],
"func-names":"warn", // TODO: fix issues and turn this back on
"mocha/no-mocha-arrows": "warn",
"mocha/no-exports": "warn",
"mocha/no-setup-in-describe": "warn",
"no-await-in-loop": "off", // Perfect legit to use await in loops, we should leave it off
"no-constant-condition": ["error", {"checkLoops": false }],
"no-else-return": "warn", // TODO: fix issues and turn this back on
"no-negated-condition":"warn", // TODO: fix issues and turn this back on
"no-process-exit": "off",
"no-promise-executor-return": "warn", // TODO: fix issues and turn this back on
"no-prototype-builtins": "warn", // TODO: fix issues and turn this back on
"no-return-await":"warn", // TODO: fix issues and turn this back on
"node/no-deprecated-api": "warn", // TODO: fix issues and turn this back on
"node/no-missing-import": "off", // using import/no-unresolved instead
"radix":"warn", // TODO: fix issues and turn this back on
"wrap-iife": "warn", // TODO: fix issues and turn this back on
"unicorn/better-regex": "off", // TODO: fix issues and turn this back on
"unicorn/consistent-function-scoping": "off", // TODO: fix issues and turn this back on
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "warn", // TODO: fix issues and turn this back on
"unicorn/no-lonely-if":"off",
"unicorn/no-process-exit": "off",
"unicorn/no-useless-undefined": "warn", // TODO: fix issues and turn this back on
"unicorn/numeric-separators-style":"off",
"unicorn/prefer-array-some": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-object-from-entries": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-regexp-test": "off",
"unicorn/prefer-spread": "off", // TODO: fix issues and turn this back on
"unicorn/prefer-string-slice": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-ternary": "off" // TODO: fix issues and turn this back on
},
// Typescript settings
"overrides": [
{
"files": ["**/*{.ts,tsx}"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": "packages/*/tsconfig.json"
}
}
}
}
]
}