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

External file conversion of ignore list #2

Closed
TAKEDA-Takashi opened this issue Nov 30, 2017 · 1 comment · Fixed by #3
Closed

External file conversion of ignore list #2

TAKEDA-Takashi opened this issue Nov 30, 2017 · 1 comment · Fixed by #3
Assignees

Comments

@TAKEDA-Takashi
Copy link

Currently I write an ignore list inline in .textlintrc file.
I want to make an ignore list an external file so that it can be read.

I think it is convenient to write as follows.

{
    "filters": {
        "whitelist": {
            "allow": [
                "ignored-word",
                "/\\d+/",
                "/^===/m"
            ],
            "allowPaths": [
                "./allow-words.yml"
            ]
        }
    }
}
@azu azu self-assigned this Nov 30, 2017
@azu azu closed this as completed in #3 Dec 1, 2017
@azu
Copy link
Member

azu commented Dec 1, 2017

Thanks for suggestion.

I've implemented this feature. #3 and Realse 1.2.0.

{
    "filters": {
        "whitelist": {
            "whitelistConfigPaths": [
                "./allow.json",
                "./allow.yml"
            ]
        }
    }
}

These files should be following formats.

allow.json:

[
  "allow",
  "/yes/i"
]

allow.yml:

- "allow",
- /yes/i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants