How to use the @textlint/kernel.TextlintKernelDescriptor function in @textlint/kernel

To help you get started, we’ve selected a few @textlint/kernel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github textlint / textlint / packages / textlint / src / textlint-core.ts View on Github external
// Markdown and Text is enabled by default
        // Markdown and Text are for backward compatibility.
        this.defaultPlugins = [
            {
                pluginId: "markdown",
                plugin: markdownPlugin
            },
            {
                pluginId: "text",
                plugin: textPlugin
            }
        ];
        // TODO: remove `config`
        // https://github.com/textlint/textlint/issues/296
        this.kernel = new TextlintKernel(config);
        this.textlintKernelDescriptor = new TextlintKernelDescriptor({
            rules: [],
            plugins: this.defaultPlugins,
            filterRules: []
        });
    }
github textlint / textlint / packages / textlint / src / textlint-core.ts View on Github external
resetRules() {
        this.textlintKernelDescriptor = new TextlintKernelDescriptor({
            rules: [],
            plugins: this.defaultPlugins,
            filterRules: []
        });
    }

@textlint/kernel

textlint kernel is core logic by pure JavaScript.

MIT
Latest version published 21 days ago

Package Health Score

89 / 100
Full package analysis