Skip to content

Better lint links #197

@samhh

Description

@samhh

Current output:

translations.json:3:29:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                             ^^^^^^^^
redundant-select: Select named `mySelect` is redundant as it only contains a wildcard.

Learn more: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#redundant-select

translations.json:3:84:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                                                                                    ^^
duplicate-plural-case: Plural named `myCardinal` contains a duplicate `=1` case.

Learn more: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#duplicate-plural-case

Suggested:

translations.json:3:29:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                             ^^^^^^^^
redundant-select: Select named `mySelect` is redundant as it only contains a wildcard.

translations.json:3:84:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                                                                                    ^^
duplicate-plural-case: Plural named `myCardinal` contains a duplicate `=1` case.

Learn more:
  redundant-select: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#redundant-select
  duplicate-plural-case: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#duplicate-plural-case

Inspired by Shellcheck's output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions