postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

Can't Modify Tests #64

Closed oleersoy closed 7 years ago

oleersoy commented 7 years ago

SO Summary Here

MoOx commented 7 years ago

Please take 10sec to add proper description here.

oleersoy commented 7 years ago

If I place a comment like /* Any Comment */ at the top of test/index.js I get the following output when running the test:

   20:30  error  Missing trailing comma  comma-dangle
   91:22  error  Missing trailing comma  comma-dangle
   150:30  error  Missing trailing comma  comma-dangle
   193:19  error  Missing trailing comma  comma-dangle
   200:25  error  Missing trailing comma  comma-dangle

   ✖ 5 problems (5 errors, 0 warnings)
MoOx commented 7 years ago

Sorry I cannot reproduce. Looks like your IDE is removing some trailing comma when you save a file, that might be causing the issue.

oleersoy commented 7 years ago

Wow - OK - Was using Atom for editing and you are right - it's causing it. Tried it in VI and no problemo. Just when I was starting to love Atom ...

MoOx commented 7 years ago

This is definitely coming from a plugin. I use atom without issue.

oleersoy commented 7 years ago

Yeah it's probably beautify or something. Theres a similar issue documented here: https://github.com/Glavin001/atom-beautify/issues/534

I asked how to track it down here: http://stackoverflow.com/questions/42301411/how-to-detect-which-plugin-performs-an-action-on-save-in-atom

Meanwhile I'll just edit in VI. Hope to have https://github.com/postcss/postcss-custom-properties/issues/63 worked out soon.