tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.33k stars 191 forks source link

Add empty line when writing to files (sync providers + local export) #2970

Open keeganedwin opened 1 week ago

keeganedwin commented 1 week ago

Is your feature request related to a problem? Please describe.

Some devs in my team update the tokens directly in the json files. Since we have formatting rules that adds one line at the end of every edited json files, and the same doesn't happen with the tokens pushed from Figma with the plugin. We see this formatting differences in the PR that is in the review to be merged. I just want to turn off auto formatting in the plugin while editing the json and save it.

Describe the solution you'd like @six7 - What we can do is enable that extra-line at the end, that should be an easy change. The change is likely minimal but all of our users token files will be updated the next time they push. Almost all teams have this rule of an empty line at the end so I'd say lets introduce that.

rlingineni commented 1 week ago

+1 running into this issue with our formatting as well when making PRs from token studio