我在项目的.editorconfig
中设置了root
文件,如下所示:
root = true
[*]
indent-style = space
indent-size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
为了解决这个问题,我尝试添加:
[**/**/*.js]
indent-style = space
indent-size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true