forked from wireapp/wire-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
75 lines (75 loc) · 1.87 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
64
65
66
67
68
69
70
71
72
73
74
75
{
"extends": ["@wireapp/eslint-config"],
"env": {
"jasmine": true
},
"globals": {
"amplify": true,
"ko": true,
"sinon": true,
"wire": true,
"z": true,
"RTCAudioSource": true
},
"ignorePatterns": [
".git/",
"docs/",
"bin/",
"**/node_modules/",
"resource/",
"server/bin/",
"server/dist/",
"server/node_modules/",
"src/ext/",
"src/script/localization/**/webapp*.js",
"src/worker/",
"*.js"
],
"parserOptions": {
"project": ["./tsconfig.build.json", "./server/tsconfig.json"]
},
"plugins": ["@emotion"],
"rules": {
"@emotion/pkg-renaming": "error",
"@emotion/no-vanilla": "error",
"@emotion/import-from-emotion": "error",
"@emotion/styled-import": "error",
"id-length": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/typedef": "off",
"no-dupe-class-members": "off",
"no-undef": "off",
"no-unsanitized/property": "off",
"prefer-promise-reject-errors": "off",
"valid-jsdoc": "off",
"jest/no-jasmine-globals": "off"
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["Util", "./src/script/util/"],
["Components", "./src/script/components/"],
["I18n", "./src/i18n/"],
["Resource", "./resource/"],
["src", "./src/"],
["test", "./test/"]
],
"extensions": [".ts", ".js", ".jsx", ".tsx", ".json"]
}
}
},
"overrides": [
{
"files": ["**/*.test.tsx", "**/*.test.ts", "**/test/**/*", "**/mocks/**/*"],
"rules": {
"no-magic-numbers": "off",
"id-length": "off"
}
}
]
}