Skip to content

Commit

Permalink
Enable react/no-unused-state rule for ESLint (#7609)
Browse files Browse the repository at this point in the history
* eslint: Enable react/no-unused-state rule
* Fix unused state issues
* Remove now unused validFileImport localized message
  • Loading branch information
whymarrh authored Dec 3, 2019
1 parent e61745a commit 2c33ad3
Show file tree
Hide file tree
Showing 56 changed files with 12 additions and 175 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"operator-linebreak": [2, "after", { "overrides": { "?": "ignore", ":": "ignore" } }],
"padded-blocks": "off",
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"react/no-unused-state": 2,
"react/jsx-boolean-value": 2,
"react/jsx-curly-brace-presence": [2, { "props": "never", "children": "never" }],
"react/jsx-equals-spacing": 2,
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/am/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,6 @@
"userName": {
"message": "የተጣቃሚ ስም"
},
"validFileImport": {
"message": "የሚያስመጡትን ትክክለኛ ፋይል መምረጥ አለብዎ፡"
},
"viewAccount": {
"message": "መለያን ይመልከቱ"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ar/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1328,9 +1328,6 @@
"userName": {
"message": "اسم المستخدم"
},
"validFileImport": {
"message": "يجب عليك تحديد ملف صالح للاستيراد."
},
"viewAccount": {
"message": "عرض حساب"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/bg/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1331,9 +1331,6 @@
"userName": {
"message": "Потребителско име"
},
"validFileImport": {
"message": "Трябва да изберете валиден файл, който да импортирате."
},
"viewAccount": {
"message": "Преглед на профила"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/bn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,6 @@
"userName": {
"message": "ইউজারনেম"
},
"validFileImport": {
"message": "আমদানি করার জন্য আপনাকে অবশ্যই একটি বৈধ ফাইল নির্বাচন করতে হবে।"
},
"viewAccount": {
"message": "আ্যাকাউন্ট দেখুন"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,6 @@
"userName": {
"message": "Nom d'usuari"
},
"validFileImport": {
"message": "Has de seleccionar un arxiu vàlid per a importar."
},
"viewAccount": {
"message": "Mostra el compte"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,6 @@
"usedByClients": {
"message": "Používána různými klienty"
},
"validFileImport": {
"message": "Musíte vybrat validní soubor k importu."
},
"viewAccount": {
"message": "Zobrazit účet"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/da/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1301,9 +1301,6 @@
"userName": {
"message": "Brugernavn"
},
"validFileImport": {
"message": "Du skal vælge en gyldig fil at importere."
},
"viewAccount": {
"message": "Vis konto"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,9 +1292,6 @@
"userName": {
"message": "Nutzername"
},
"validFileImport": {
"message": "Du musst eine gültige Datei für den Import auswählen."
},
"viewAccount": {
"message": " Account einsehen"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/el/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1329,9 +1329,6 @@
"userName": {
"message": "Όνομα χρήστη"
},
"validFileImport": {
"message": "Πρέπει να επιλέξετε έναν έγκυρο φάκελο για εισαγωγή."
},
"viewAccount": {
"message": "Προβολή λογαριασμού"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1472,9 +1472,6 @@
"userName": {
"message": "Username"
},
"validFileImport": {
"message": "You must select a valid file to import."
},
"viewAccount": {
"message": "View Account"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1076,9 +1076,6 @@
"usedByClients": {
"message": "Utilizado por una variedad de clientes diferentes"
},
"validFileImport": {
"message": "Debes selecionar un archivo valido para importar"
},
"viewAccount": {
"message": "Mirar cuenta"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/es_419/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1314,9 +1314,6 @@
"userName": {
"message": "Nombre de usuario"
},
"validFileImport": {
"message": "Selecciona un archivo válido para importar."
},
"viewAccount": {
"message": "Ver cuenta"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/et/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,6 @@
"userName": {
"message": "Kasutajanimi"
},
"validFileImport": {
"message": "Peate valima importimiseks sobiva faili."
},
"viewAccount": {
"message": "Kuva konto"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fa/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,6 @@
"userName": {
"message": "نام کاربری"
},
"validFileImport": {
"message": "شما باید یک فایل معتبر را جهت وارد سازی انتخاب کنید."
},
"viewAccount": {
"message": "مشاهده حساب"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1332,9 +1332,6 @@
"userName": {
"message": "Käyttäjätunnus"
},
"validFileImport": {
"message": "Valittava tuotavaksi kelpaava tiedosto."
},
"viewAccount": {
"message": "Näytä tili"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fil/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1223,9 +1223,6 @@
"usedByClients": {
"message": "Ginagamit ng iba't ibang client"
},
"validFileImport": {
"message": "Dapat kang pumili ng valid na file na ii-import."
},
"viewAccount": {
"message": "Tingnan ang Account"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1296,9 +1296,6 @@
"userName": {
"message": "Nom d'utilisateur"
},
"validFileImport": {
"message": "Vous devez selectionner un fichier valide à importer."
},
"viewAccount": {
"message": "Afficher le compte"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/he/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1329,9 +1329,6 @@
"userName": {
"message": "שם משתמש"
},
"validFileImport": {
"message": "עליך לבחור קובץ חוקי לייבוא."
},
"viewAccount": {
"message": "הצג חשבון"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1329,9 +1329,6 @@
"userName": {
"message": "उपयोगकर्ता नाम"
},
"validFileImport": {
"message": "आयात करने के लिए आपको एक मान्य फ़ाइल को चुनना होगा।"
},
"viewAccount": {
"message": "खाता देखें"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@
"usedByClients": {
"message": "विभिन्न क्लाइंट्स द्वारा उपयोग किया जाता है"
},
"validFileImport": {
"message": "आयात करने के लिए आपको एक वैध फ़ाइल चुननी होगी।"
},
"viewAccount": {
"message": "खाता देखें"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,6 @@
"userName": {
"message": "Korisničko ime"
},
"validFileImport": {
"message": "Morate odabrati valjanu datoteku za uvoz."
},
"viewAccount": {
"message": "Prikaz računa"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ht/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,6 @@
"usedByClients": {
"message": "Itilize pa yon varyete de kliyan diferan"
},
"validFileImport": {
"message": "Ou dwe chwazi yon dosye ki valab pou enpòte."
},
"viewAccount": {
"message": "Wè Kont"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,6 @@
"userName": {
"message": "Felhasználónév"
},
"validFileImport": {
"message": "Ki kell választanod egy érvényes fájlt az importáláshoz."
},
"viewAccount": {
"message": "Fiók megtekintése"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,6 @@
"userName": {
"message": "Nama Pengguna"
},
"validFileImport": {
"message": "Anda harus memilih berkas yang sah untuk diimpor."
},
"viewAccount": {
"message": "Lihat Akun"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1295,9 +1295,6 @@
"userName": {
"message": "Nome utente"
},
"validFileImport": {
"message": "Devi selezionare un file valido da importare."
},
"viewAccount": {
"message": "Vedi Account"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/kn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,6 @@
"userName": {
"message": "ಬಳಕೆದಾರಹೆಸರು"
},
"validFileImport": {
"message": "ನೀವು ಆಮದು ಮಾಡಲು ಮಾನ್ಯ ಫೈಲ್ ಅನ್ನು ಆಯ್ಕೆಮಾಡಬೇಕು."
},
"viewAccount": {
"message": "ಖಾತೆಯನ್ನು ವೀಕ್ಷಿಸಿ"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,6 @@
"userName": {
"message": "사용자이름"
},
"validFileImport": {
"message": "가져오기 위해 유효한 파일을 선택해야 합니다."
},
"viewAccount": {
"message": "계정 보기"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/lt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,6 @@
"userName": {
"message": "Vartotojo vardas"
},
"validFileImport": {
"message": "Turite pasirinkti galiojantį failą, kurį pageidaujate importuoti."
},
"viewAccount": {
"message": "Žiūrėti paskyrą"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/lv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1331,9 +1331,6 @@
"userName": {
"message": "Lietotājvārds"
},
"validFileImport": {
"message": "Importēšanai jāatlasa derīga datne."
},
"viewAccount": {
"message": "Skatīt kontu"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ms/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1303,9 +1303,6 @@
"userName": {
"message": "Nama pengguna"
},
"validFileImport": {
"message": "Anda mesti pilih fail yang sah untuk diimport."
},
"viewAccount": {
"message": "Paparkan Akaun"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,6 @@
"usedByClients": {
"message": "Gebruikt door verschillende klanten"
},
"validFileImport": {
"message": "U moet een geldig bestand selecteren om te importeren."
},
"viewAccount": {
"message": "Bekijk account"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/no/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1307,9 +1307,6 @@
"userName": {
"message": "Brukernavn"
},
"validFileImport": {
"message": "Du må velge en gyldig fil å importere"
},
"viewAccount": {
"message": "Se konto"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1320,9 +1320,6 @@
"userName": {
"message": "Nazwa użytkownika"
},
"validFileImport": {
"message": "Należy wybrać prawidłowy plik do zaimportowania."
},
"viewAccount": {
"message": "Zobacz konto"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,6 @@
"usedByClients": {
"message": "Utilizado por vários tipos de clientes"
},
"validFileImport": {
"message": "Deve selecionar um ficheiro válido para importar."
},
"viewAccount": {
"message": "Ver Conta"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1314,9 +1314,6 @@
"userName": {
"message": "Nome de usuário"
},
"validFileImport": {
"message": "Você precisa selecionar um arquivo válido para importar."
},
"viewAccount": {
"message": "Visualizar conta"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ro/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1316,9 +1316,6 @@
"userName": {
"message": "Nume utilizator"
},
"validFileImport": {
"message": "Trebuie să selectați un fișier valabil pentru importare."
},
"viewAccount": {
"message": "Afișați contul"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,6 @@
"usedByClients": {
"message": "Используется различными клиентами"
},
"validFileImport": {
"message": "Вам нужно выбрать правильный файл для импорта."
},
"viewAccount": {
"message": "Посмотреть счет"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/sk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1289,9 +1289,6 @@
"userName": {
"message": "Meno používateľa"
},
"validFileImport": {
"message": "Musíte vybrat validní soubor k importu."
},
"viewAccount": {
"message": "Zobrazit účet"
},
Expand Down
3 changes: 0 additions & 3 deletions app/_locales/sl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1317,9 +1317,6 @@
"userName": {
"message": "Uporabniško ime"
},
"validFileImport": {
"message": "Za uvoz morate izbrati pravilno datoteko."
},
"viewAccount": {
"message": "Poglej račun"
},
Expand Down
Loading

0 comments on commit 2c33ad3

Please sign in to comment.