csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Unable to parse 'csscomb.json'

Open spinningarrow opened this issue 9 years ago • 1 comments

I wanted to indent my SCSS files using tabs instead of spaces. I changed block-indent to a single tab character, but now when I run csscomb (using grunt) I get a warning: "Unable to parse "csscomb.json" file (Unexpected token ). Use --force to continue."

Any idea why? The csscomb config file is indented using four spaces, though I don't think this should make a difference.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

spinningarrow avatar Oct 28 '14 08:10 spinningarrow

It appears that tabs are not allowed in strings in JSON. It works if I use \t instead of the tab character. Perhaps the docs should be updated (currently it says "string with whitespaces and tabs").

spinningarrow avatar Oct 28 '14 08:10 spinningarrow