eslint: fix typescript undefined globals

next-old
Alex Gleason 2022-03-09 13:23:52 -06:00
rodzic 894bf1e880
commit 8c7a7fd7dc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -40,9 +40,7 @@ module.exports = {
react: {
version: 'detect',
},
'import/extensions': [
'.js',
],
'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
'import/ignore': [
'node_modules',
'\\.(css|scss|json)$',
@ -257,9 +255,17 @@ module.exports = {
overrides: [
{
files: ['**/*.tsx'],
'rules': {
rules: {
'react/prop-types': 'off',
},
},
// Disable no-undef in TypeScript
// https://stackoverflow.com/a/69155899
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off',
},
},
],
};