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(rule): add allow option #2

Merged
merged 1 commit into from
Jul 10, 2016
Merged

feat(rule): add allow option #2

merged 1 commit into from
Jul 10, 2016

Conversation

azu
Copy link
Member

@azu azu commented Jul 10, 2016

無視する単語を設定できる allow オプションを追加

{
    "rules": {
        "max-kanji-continuous-len": {
            // 連続できる漢字の文字数
            // Allow max continuous length of kanji
            // If {current} > max(5), report Error.
            max: 5,
            // "倍精度浮動小数点数"という単語は例外として無視します
            allow: ["倍精度浮動小数点数"]
        }
    }
}

無視する単語を設定できる `allow` オプションを追加

```js
{
    "rules": {
        "max-kanji-continuous-len": {
            // 連続できる漢字の文字数
            // Allow max continuous length of kanji
            // If {current} > max(5), report Error.
            max: 5,
            // "倍精度浮動小数点数"という単語は例外として無視します
            allow: ["倍精度浮動小数点数"]
        }
    }
}
```
@azu azu merged commit 69f21f7 into master Jul 10, 2016
@azu azu deleted the allow-option branch July 10, 2016 01:47
@azu azu restored the allow-option branch July 10, 2016 01:47
@azu azu deleted the allow-option branch July 10, 2016 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant