bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Ignore files that were created before a given date #72

Closed Sundarasan closed 4 years ago

Sundarasan commented 6 years ago

I work on a 4 years old project. I do not want to auto-format old files, because the diff may result in huge code conflict with the pending "Pull Requests".

• It would be great if StandardFormat has option to ignore files which were created before a given date.

So only newly created files (i.e after StandardFormat installation) will be auto-formatted and not the 1000s of old files.

bcomnes commented 6 years ago

Sublime's settings system is fairly limited. Does inserting an eslint disable comment in the file disable the fix behavior on it? I forget.

bcomnes commented 4 years ago

Closing. Thank you for the idea but I dont have time to implement and eslint ignore comments should allow you to selectively turn it off per file in a declarative manner with less moving parts.