Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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: []
});
}
resetRules() {
this.textlintKernelDescriptor = new TextlintKernelDescriptor({
rules: [],
plugins: this.defaultPlugins,
filterRules: []
});
}