Add .ts and .tsx files under linter and fix linter issues. #5830

This commit is contained in:
Aditya Toshniwal
2023-03-16 17:22:26 +05:30
committed by GitHub
parent 37c0de5d7d
commit 42ac0d577d
13 changed files with 892 additions and 753 deletions

View File

@@ -42,6 +42,20 @@ module.exports = {
'react',
'@babel',
],
'overrides': [
{
'files': ['**/*.ts', '**/*.tsx'],
'plugins': [
'@typescript-eslint',
],
'extends': ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/eslint-recommended'],
'parser': '@typescript-eslint/parser',
'rules': {
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-this-alias': ['off'],
}
},
],
'globals': {
'_': true,
'module': true,