Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler): support to inline prh.yml #47

Merged
merged 1 commit into from
May 15, 2021
Merged

feat(compiler): support to inline prh.yml #47

merged 1 commit into from
May 15, 2021

Conversation

azu
Copy link
Member

@azu azu commented May 15, 2021

Add @textlint/config-inliner for inlining prh configration.

For example, @textlint/config-inliner convert prh's options like following:

        const prhOptions = await prh({
            rulePaths: [path.join(__dirname, "fixtures/prh/prh.yml")]
        });
        assert.deepStrictEqual(prhOptions, {
            rulePaths: [],
            ruleContents: [fs.readFileSync(path.join(__dirname, "fixtures/prh/prh.yml"), "utf-8")]
        });

fix #29

@azu azu added the Type: Feature New Feature label May 15, 2021
@azu azu merged commit b06e3b2 into master May 15, 2021
@azu azu deleted the feature/29 branch May 15, 2021 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiler: support prh inlining
1 participant