Solved - Configuration.yaml does not like 'type'?

Trying to add the GitHub - amaximus/garbage-collection-card: Custom Lovelace card for Garbage Collection custom component

When I paste the following into configuration.yaml

resources:
  //When using HACS installation method
  - {type: js, url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'}
  //When using manual install method
  - {type: js, url: '/local/garbage-collection-card.js'}

I get the following error? Not sure what I am doing wrong?

bad indentation of a mapping entry at line 93, column 10:
      - {type: js, url: '/hacsfiles/garbage-c ... 
             ^

Not Sure if the documentation is old but I have it working without the step.

No curly braces.

Same error, does the seem to like “type”?

Remove the comment lines (// …)

And - I recommend using YaML only not mixing it with JSON (although it is valid)

resources: 
  - type: js
    url: /hacsfiles/garbage-collection-card/garbage-collection-card.js