-
Notifications
You must be signed in to change notification settings - Fork 291
/
.eslintrc.js
66 lines (66 loc) · 1.68 KB
/
.eslintrc.js
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
module.exports = {
extends: ['@wireapp/eslint-config'],
env: {
jasmine: true,
},
globals: {
React: 'readonly',
JSX: 'readonly',
amplify: 'readonly',
},
ignorePatterns: [
'.git/',
'docs/',
'bin/',
'**/node_modules/',
'assets/',
'resource/',
'server/bin/',
'server/dist/',
'server/node_modules/',
'src/ext/',
'src/script/localization/**/webapp*.js',
'src/worker/',
'src/script/components/Icon.tsx',
'*.js',
],
parserOptions: {
project: ['./tsconfig.build.json', './server/tsconfig.json'],
tsconfigRootDir: __dirname,
},
plugins: ['@emotion', 'import'],
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-unsanitized/property': 'off',
'prefer-promise-reject-errors': 'off',
'valid-jsdoc': 'off',
'jest/no-jasmine-globals': 'off',
},
settings: {
'import/resolver': {
typescript: {
project: [__dirname + '/tsconfig.build.json', __dirname + './server/tsconfig.json'],
},
},
},
overrides: [
{
files: ['**/*.test.tsx', '**/*.test.ts', '**/test/**/*', '**/mocks/**/*'],
rules: {
'no-magic-numbers': 'off',
'id-length': 'off',
},
},
],
};