Skip to content

Commit 39eeddb

Browse files
authored
Merge pull request #13 from RocketChat/fix-lint
2 parents 9ef4a43 + 92660fd commit 39eeddb

File tree

9 files changed

+3862
-1695
lines changed

9 files changed

+3862
-1695
lines changed

.eslintrc.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "c95ba73a-0485-4d12-ae8a-a3e68330065a",
33
"version": "1.0.8",
4-
"requiredApiVersion": "^1.33.0",
4+
"requiredApiVersion": "^1.44.0",
55
"iconFile": "icon.png",
66
"author": {
77
"name": "Rocket.Chat Technologies Corp.",
@@ -13,4 +13,4 @@
1313
"classFile": "src/BigBlueButtonApp.ts",
1414
"description": "Big Blue Button Conference Calls Provider",
1515
"implements": []
16-
}
16+
}

eslint.config.js

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
const eslintPluginPrettier = require('eslint-plugin-prettier');
2+
const eslintPluginImport = require('eslint-plugin-import');
3+
const eslintPluginTypeScript = require('@typescript-eslint/eslint-plugin');
4+
const tsParser = require('@typescript-eslint/parser');
5+
6+
module.exports = [
7+
{
8+
files: ['**/*.ts'],
9+
languageOptions: {
10+
parser: tsParser,
11+
parserOptions: {
12+
project: './tsconfig.json',
13+
sourceType: 'module',
14+
ecmaVersion: 2018,
15+
warnOnUnsupportedTypeScriptVersion: false,
16+
ecmaFeatures: {
17+
experimentalObjectRestSpread: true,
18+
legacyDecorators: true,
19+
},
20+
},
21+
},
22+
plugins: {
23+
'prettier': eslintPluginPrettier,
24+
'import': eslintPluginImport,
25+
'@typescript-eslint': eslintPluginTypeScript,
26+
},
27+
rules: {
28+
'prettier/prettier': 'warn',
29+
'func-call-spacing': 'off',
30+
'jsx-quotes': ['error', 'prefer-single'],
31+
'indent': 'off',
32+
'no-dupe-class-members': 'error',
33+
'no-spaced-func': 'off',
34+
'no-unused-vars': 'off',
35+
'no-useless-constructor': 'off',
36+
'no-use-before-define': 'off',
37+
'@typescript-eslint/ban-ts-comment': [
38+
'error',
39+
{
40+
'ts-ignore': 'allow-with-description',
41+
'minimumDescriptionLength': 5,
42+
},
43+
],
44+
'@typescript-eslint/naming-convention': [
45+
'error',
46+
{
47+
selector: ['variable'],
48+
format: ['camelCase'],
49+
leadingUnderscore: 'allow',
50+
},
51+
{
52+
selector: 'typeLike',
53+
format: ['PascalCase'],
54+
},
55+
],
56+
'@typescript-eslint/no-explicit-any': 'off',
57+
'@typescript-eslint/no-unused-vars': [
58+
'error',
59+
{
60+
argsIgnorePattern: '^_',
61+
ignoreRestSiblings: true,
62+
},
63+
],
64+
'@typescript-eslint/prefer-optional-chain': 'warn',
65+
},
66+
},
67+
];

0 commit comments

Comments
 (0)