Open
Description
I got an exception when I'm trying to commit changes in a .vue
file:
mix format failed for file: assets/js/components/stats/CollaboratorsListTable.vue
** (SyntaxError) assets/js/components/stats/CollaboratorsListTable.vue:63:24: keyword argument must be followed by space after: bind:
(elixir 1.12.3) lib/code.ex:978: Code.format_string!/2
(mix 1.12.3) lib/mix/tasks/format.ex:418: Mix.Tasks.Format.format_file/2
(elixir 1.12.3) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.12.3) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
** (MatchError) no match of right hand side value: {"", 1}
(auto_formatter 0.1.1) lib/auto_formatter/action.ex:35: AutoFormatter.Action.perform/1
(auto_formatter 0.1.1) lib/auto_formatter/cli.ex:9: AutoFormatter.CLI.main/1
(elixir 1.12.3) lib/kernel/cli.ex:124: anonymous fn/3 in Kernel.CLI.exec_fun/2
This error occurs because I have this line in the .vue
file:
<a v-bind:href="column.link">Details</a>
To solve it, we need to only call mix format
only with .ex
and .exs
files