cspell icon indicating copy to clipboard operation
cspell copied to clipboard

💡: Consider moving .cspellcache to node_modules/.cache

Open recallwei opened this issue 1 year ago • 2 comments

Problem

Now, I should add .cspellcache to .gitignore manually. Also, this file should not be in the project root dir.

Solution

Like Prettier, Store in node_modules/.cache seems a great solution.

image

Alternatives

No response

Additional Context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

recallwei avatar Mar 29 '24 03:03 recallwei

@recallwei,

Thank you for the suggestion.

It is already possible to configure the cache location.

  • cli: --cache-location
  • config:
    "cache": {
        "cacheLocation": "./node_modules/.cache/cspell"
    },
    

Jason3S avatar Mar 29 '24 06:03 Jason3S

@recallwei,

Thank you for the suggestion.

It is already possible to configure the cache location.

  • cli: --cache-location
  • config:
    "cache": {
        "cacheLocation": "./node_modules/.cache/cspell"
    },
    

This is useful for me.

recallwei avatar Mar 29 '24 06:03 recallwei