-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc
57 lines (57 loc) · 1.33 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
{
"extends": ["oclif", "plugin:prettier/recommended"],
"rules": {
"no-await-in-loop": "off",
"new-cap": "off",
"quote-props": "off",
"no-negated-condition": "off",
"no-warning-comments": "off",
"spaced-comment": "off",
"max-nested-callbacks": "off",
"no-else-return": "off",
"no-console": "off",
"no-multi-str": "off",
"no-prototype-builtins": "off",
"unicorn/escape-case": "off",
"node/no-extraneous-require": [
"error",
{
"allowModules": [
"@oclif/errors",
"expect",
"jest-mock",
"@jest/globals"
]
}
],
// we use typescript so dynamic imports are fine
"node/no-unsupported-features": "off",
"camelcase": "off"
},
"ignorePatterns": ["dist/**/*", "coverage/**/*"],
"overrides": [
{
"files": ["*.test.js", "*.spec.js", "*.test.ts"],
"rules": {
"no-unused-expressions": "off",
"node/no-missing-require": "off"
}
},
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"lines-between-class-members": "off",
"no-use-before-define": "off",
"no-undef-init": "off"
}
}
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
},
"env": {
"mocha": true
}
}