vscode-cssvar icon indicating copy to clipboard operation
vscode-cssvar copied to clipboard

[Feat] Suport `.gitignore` and `.eslintignore` files to populate ignore list

Open phoenisx opened this issue 2 years ago • 2 comments

cssvar.ignore can be tedious to maintain, and ignore list can be random for different projects. Adding support for .gitignore and .eslintignore files opens an opportunity to keep less things inside the extension config and re-use config files that are widely used.

Gotchas:

  • If a folder (like node_modules) is ignored in .gitignore and later user wants to import a css file from node_modules, the extension should not ignore such CSS imports from node_modules.
    • I guess this should be possible using !node_modules glob pattern in cssvar.ignore settings, which will supersede all other ignore patterns.

phoenisx avatar Sep 19 '22 05:09 phoenisx

This issue will only support .gitignore files.

Support for .eslintignore can be added on demand later, if ever needed.

phoenisx avatar Oct 05 '22 05:10 phoenisx

I will wait to work on this. I think creating a small library to provide this functionality and also support glob patterns would be an interesting project to work on. 😅

phoenisx avatar Oct 21 '22 08:10 phoenisx