Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for personal dictionary to be in package.json #67

Open
cobaltt7 opened this issue May 18, 2021 · 1 comment
Open

Add option for personal dictionary to be in package.json #67

cobaltt7 opened this issue May 18, 2021 · 1 comment

Comments

@cobaltt7
Copy link

cobaltt7 commented May 18, 2021

I have too many files in my repository's root. For this reason, I would like to be able to move my personal dictionary to package.json. Like this:

{
  "name": "myProject",
  "dictionary": [
    "word1",
    "word2",
    "word3",
    ...
  ]
}
@tbroadley
Copy link
Owner

tbroadley commented May 22, 2021

Thanks for the issue! This makes sense to me as a feature. I've seen other NPM packages like Babel or Husky do something similar. I'm imagining something similar to what you suggested: allowing users to put a dictionary under a top-level spellchecker key in package.json:

{
  "spellchecker": {
    "dictionary": ["..."]
  }
}

That way, we prevent collisions between this package's config and config from other packages or from NPM itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants