JS Noob question. Whenever i "mis-format" the file...
# help
m
JS Noob question. Whenever i "mis-format" the file, i get some error like this
Copy code
18:58  error  Trailing spaces not allowed  no-trailing-spaces

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.
Now here are 2 questions. 1. I am using VSCode, is there a way that it can automaticlaly fix this as i save the file? 2. Which command i can use with
--fix
flag? I used
serverless invoke ... ... --fix
and it didn't work out
t
Recommend installing prettier with vscode
m
its already instaleld
f
I think that’s the eslint flag? Which command did you run to get to above error?