bigbluebutton-Github/bigbluebutton-html5/.eslintrc.js
André Castro 81311db9a3
Fix: User list, Participants, Pist item, User actions, Skeleton, User title, Option drop down, Use shortcuts. (#18676)
* Fix: Ts fixes in user list participants, list item and user actions

* Aditonal fixes
2023-09-06 11:24:09 -03:00

54 lines
1.4 KiB
JavaScript

module.exports = {
extends: 'airbnb',
parserOptions: {
ecmaVersion: 2020,
},
plugins: ['react', 'jsx-a11y', 'import'],
env: {
es6: true,
node: true,
browser: true,
meteor: true,
jasmine: true,
},
rules: {
'no-underscore-dangle': 0,
'import/extensions': [2, 'never'],
'import/no-absolute-path': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 1,
'react/prop-types': 1,
'jsx-a11y/no-access-key': 0,
'react/jsx-props-no-spreading': 'off',
'max-classes-per-file': ['error', 2],
},
globals: {
browser: 'writable',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'airbnb'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'no-use-before-define': 'off',
'import/no-absolute-path': 0,
'import/no-unresolved': 0,
'no-unused-vars': 0, // https://stackoverflow.com/a/63767419
'import/extensions': [2, 'never'],
'react/jsx-filename-extension': ['error', { extensions: ['.tsx', '.jsx'] }],
'max-len': [
'error',
{
code: 120, // Maximum line length (characters)
tabWidth: 2, // Number of spaces per tab
ignoreUrls: true, // Ignore long URLs
ignoreStrings: true, // Ignore long strings
},
],
},
},
],
};