Skip to content

Commit

Permalink
Merge pull request #13 from RocketChat/fix-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkrin authored Nov 8, 2024
2 parents 9ef4a43 + 92660fd commit 39eeddb
Show file tree
Hide file tree
Showing 9 changed files with 3,862 additions and 1,695 deletions.
48 changes: 0 additions & 48 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "c95ba73a-0485-4d12-ae8a-a3e68330065a",
"version": "1.0.8",
"requiredApiVersion": "^1.33.0",
"requiredApiVersion": "^1.44.0",
"iconFile": "icon.png",
"author": {
"name": "Rocket.Chat Technologies Corp.",
Expand All @@ -13,4 +13,4 @@
"classFile": "src/BigBlueButtonApp.ts",
"description": "Big Blue Button Conference Calls Provider",
"implements": []
}
}
67 changes: 67 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
const eslintPluginPrettier = require('eslint-plugin-prettier');
const eslintPluginImport = require('eslint-plugin-import');
const eslintPluginTypeScript = require('@typescript-eslint/eslint-plugin');
const tsParser = require('@typescript-eslint/parser');

module.exports = [
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
ecmaVersion: 2018,
warnOnUnsupportedTypeScriptVersion: false,
ecmaFeatures: {
experimentalObjectRestSpread: true,
legacyDecorators: true,
},
},
},
plugins: {
'prettier': eslintPluginPrettier,
'import': eslintPluginImport,
'@typescript-eslint': eslintPluginTypeScript,
},
rules: {
'prettier/prettier': 'warn',
'func-call-spacing': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'indent': 'off',
'no-dupe-class-members': 'error',
'no-spaced-func': 'off',
'no-unused-vars': 'off',
'no-useless-constructor': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description',
'minimumDescriptionLength': 5,
},
],
'@typescript-eslint/naming-convention': [
'error',
{
selector: ['variable'],
format: ['camelCase'],
leadingUnderscore: 'allow',
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/prefer-optional-chain': 'warn',
},
},
];
Loading

0 comments on commit 39eeddb

Please sign in to comment.