forked from RocketChat/Apps.BigBlueButton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (48 loc) · 1.27 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
module.exports = {
extends: ['@rocket.chat/eslint-config', 'plugin:prettier/recommended', 'plugin:import/typescript', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
warnOnUnsupportedTypeScriptVersion: false,
ecmaFeatures: {
experimentalObjectRestSpread: true,
legacyDecorators: true,
},
},
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
},
},
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
rules: {
'func-call-spacing': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'indent': 'off',
'no-dupe-class-members': 'off',
'no-spaced-func': 'off',
'no-unused-vars': 'off',
'no-useless-constructor': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/interface-name-prefix': ['error', 'always'],
'@typescript-eslint/no-dupe-class-members': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/prefer-optional-chain': 'warn'
},
};