refactor(linter): refactor our method for more simplicyt