forked from wireapp/wire-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.52 KB
/
.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
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
{
"env": {
"jasmine": true,
"jest/globals": true
},
"extends": ["@wireapp/eslint-config", "plugin:jest/recommended"],
"globals": {
"$": true,
"amplify": true,
"entities": true,
"jQuery": true,
"ko": true,
"lorem_ipsum": true,
"payload": true,
"sinon": true,
"wire": true,
"z": true,
"RTCAudioSource": true
},
"ignorePatterns": [
".git/",
"docs/",
"node_modules/",
"resource/",
"server/bin/",
"server/dist/",
"server/node_modules/",
"src/ext/",
"src/script/localization/**/webapp*.js",
"src/worker/",
"electron/node_modules",
"electron/build"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json", "./server/tsconfig.json", "./electron/tsconfig.json"]
},
"rules": {
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/typedef": "off",
"no-dupe-class-members": "off",
"no-undef": "off",
"no-unsanitized/property": "off",
"no-unused-vars": "off",
"prefer-promise-reject-errors": "off",
"valid-jsdoc": "off"
}
}
],
"rules": {
"id-length": "off",
"no-magic-numbers": "off",
"jest/no-jasmine-globals": "off",
"jest/no-identical-title": "warn",
"jest/no-done-callback": "warn",
"jest/no-disabled-tests": "warn",
"jest/no-conditional-expect": "warn",
"sort-keys-fix/sort-keys-fix": "warn"
}
}