-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (62 loc) · 1.66 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
globals: {
DEBUG: true,
WBO_PUBLIC_URL: true,
JITSI_PUBLIC_URL: true,
Howler: true,
JitsiMeetExternalAPI: true,
},
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier', 'jsdoc'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
rules: {
'prettier/prettier': ['error'],
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
'no-unused-vars': ['error'],
'no-var': ['error'],
'no-constructor-return': ['error'],
'no-promise-executor-return': ['error'],
'no-self-compare': ['error'],
'no-template-curly-in-string': ['error'],
'no-unmodified-loop-condition': ['error'],
'no-unreachable-loop': ['error'],
'default-case-last': ['error'],
'default-param-last': ['error'],
'func-name-matching': ['error'],
'no-else-return': ['error'],
'no-multi-assign': ['error'],
'no-multi-str': ['error'],
'no-new': ['error'],
'no-new-func': ['error'],
'no-new-object': ['error'],
'no-global-assign': ['error'],
'no-shadow-restricted-names': ['error'],
'no-unneeded-ternary': ['error'],
'no-useless-computed-key': ['error'],
'no-useless-return': ['error'],
'object-shorthand': ['error', 'never'],
'spaced-comment': ['error', 'always'],
radix: ['error', 'as-needed'],
yoda: ['error'],
camelcase: 'off',
'prefer-const': [2, { destructuring: 'any' }],
'no-duplicate-imports': ['error', { includeExports: true }],
},
};