unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group linting "learn more" links to the end

samhh opened this issue · comments

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.