-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
67 lines (66 loc) · 2.76 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
'eslint:recommended', //
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
/**
* @note Please set the file explicitly. If you use the glob pattern, you may experience an error while loading tscconfig.
*/
project: [
'./tsconfig.eslint.json', //
'./projects/console-web-front/tsconfig.json',
'./projects/console-web-server/tsconfig.json',
'./projects/test-executor/tsconfig.json',
'./packages/typescript/action-common/tsconfig.json',
'./packages/typescript/action-kit/tsconfig.json',
'./packages/typescript/common/tsconfig.json',
'./packages/typescript/console-action/tsconfig.json',
'./packages/typescript/console-dest/tsconfig.json',
'./packages/typescript/console-gamium/tsconfig.json',
'./packages/typescript/console-remote-dest/tsconfig.json',
'./packages/typescript/dest/tsconfig.json',
'./packages/typescript/device-client/tsconfig.json',
'./packages/typescript/device-client-common/tsconfig.json',
'./packages/typescript/env-tools/tsconfig.json',
'./packages/typescript/node/tsconfig.json',
'./packages/typescript/toolkit/tsconfig.json',
'./packages/typescript/types/tsconfig.json',
'./packages/typescript-private/console/tsconfig.json',
'./packages/typescript-private/console-host-agent/tsconfig.json',
'./packages/typescript-private/console-open-api/tsconfig.json',
'./packages/typescript-private/device-server/tsconfig.json',
'./packages/typescript-private/dogu-agent-core/tsconfig.json',
'./packages/typescript-private/dost-children/tsconfig.json',
'./packages/typescript-private/host-agent/tsconfig.json',
'./packages/typescript-private/nestjs-common/tsconfig.json',
'./packages/typescript-private/types/tsconfig.json',
'./packages/typescript-private/webrtc/tsconfig.json',
],
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
env: {
browser: true,
es2022: true,
node: true,
},
rules: {
quotes: 'off',
'no-inner-declarations': 'off',
'@typescript-eslint/quotes': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/promise-function-async': 'error',
},
};