How to use the @textlint/utils.TextlintPackageNamePrefix.filterRule function in @textlint/utils

To help you get started, we’ve selected a few @textlint/utils 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 / config / config-initializer.ts View on Github external
return pkgNames.filter(pkgName => {
                const ruleOrFilter =
                    pkgName.indexOf(TextlintPackageNamePrefix.filterRule) !== -1 ||
                    pkgName.indexOf(TextlintPackageNamePrefix.rule) !== -1;
                if (pkgName === "textlint-rule-helper") {
                    return false;
                }
                return ruleOrFilter;
            });
        })
github textlint / textlint / packages / textlint / src / config / config-initializer.ts View on Github external
.filter(pkgName => {
                return pkgName.indexOf(TextlintPackageNamePrefix.filterRule) !== -1;
            })
            .map(filterName => {