格式化代码之后会将单引号变为双引号,最后还会加上逗号,末尾的分号于是会导致三种错误:

error Strings must use singlequote、 error Extra semicolon、error Unexpected trailing comma_双引号


1.Strings must use singlequote quotes—双引号

2. Extra semicolon semi ----末尾分号

3.error Unexpected trailing comma comma-dangle—逗号解决办法:

error Strings must use singlequote、 error Extra semicolon、error Unexpected trailing comma_双引号_02