workflow: added linter and linted src/ folder

This commit is contained in:
Roberto Tonino
2021-05-23 18:46:03 +02:00
parent 0f2a1103fd
commit 3a58636d36
61 changed files with 7343 additions and 2498 deletions

View File

@@ -20,9 +20,9 @@ const i18n = new VueI18n({
* @param {number} choicesLength An overall amount of available choices
* @returns A final choice index to select plural word by
*/
ru: function(choice, choicesLength) {
var n = Math.abs(choice) % 100
var n1 = n % 10
ru(choice, choicesLength) {
const n = Math.abs(choice) % 100
const n1 = n % 10
if (n > 10 && n < 20) {
return 2