streetsidesoftware / cspell

A Spell Checker for Code!
https://cspell.org
MIT License
1.17k stars 84 forks source link

[ESLint] How to export custom dictionary with config #5789

Closed Jason3S closed 1 week ago

Jason3S commented 1 week ago

Discussed in https://github.com/streetsidesoftware/cspell/discussions/5787

Originally posted by **christopher-buss** June 20, 2024 Hi! I maintain a custom ESlint config which is a preconfigured set of ESlint rules. As part of this, I am currently looking into adding a spell checker module. The problem is, a lot of false positives were getting picked up (due to platform speciifc words), so I made my own config [here](https://github.com/christopher-buss/cspell-dicts-roblox/tree/main/dictionaries/roblox#readme). In my config, I have included my dict as a dependency, and then added it in the `import` section of the cspell eslint plugin, but sadly this does not export the config to consumers. Any advice would be appreciated! The code where I am attempting to import it can be found [here](https://github.com/christopher-buss/roblox-ts-eslint-config/blob/6c8af5a03b1217f655bbf1aaeb53cf4455ede69f/src/configs/spelling.ts#L30).