Sublimelinter & JSHint complaining about Facebook's Open Graph objects {og:url: "example.com"} -


i'm using jshint , sublimelinter sublime text 3, when using facebooks api doesnt object double : in structure, eg. { og:url: 'example.com' }

fb.api( 'me/objects/my-app:object', 'post', {     og:url: http://samples.ogp.me/12345678910,     og:title: sample object,     og:type: my-app:object,     og:image: https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png,     og:description: ,     fb:app_id: 12345678910,     place:location:latitude: sample location: latitude,     place:location:longitude: sample location: longitude },     function(response) {         // handle response     } ); 

i know how ignore variables , names in .jshintrc file on root of project, not sure how stop complaining structure. thought since facebook api popular it's worth posting here.

wrap them in quotes. eg. { 'og:url': 'example.com' }


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -