Skip to content

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

Answered by Jason3S
christopher-buss asked this question in Q&A
Discussion options

You must be logged in to vote

@christopher-buss,

TL;DR

Use configFile to import the dictionary.

You can use a local cspell config file bundled with your plugin or refer to your dictionary directly:

rules: {
    '@cspell/spellchecker': [
        'warn',
        {
            // ...
            configFile: '@isentinel/dict-roblox',
            cspell: {
                language: 'en-US',
                words: ['isentinel'],
            },
            // ...
        },
    ],
},

It is also possible to use a URL:

configFile: 'https://cdn.jsdelivr.net/npm/@isentinel/[email protected]/cspell-ext.json',
// or
configFile: new URL('./cspell.config.js', import.meta.url).href,

More Detail

The current implementation of cspell.im…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by christopher-buss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants