unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.
MIT License
56 stars 3 forks source link

Don't count plurals and callbacks when linting [UNS-1314] #152

Closed nim442 closed 2 years ago

nim442 commented 2 years ago

https://linear.app/unsplash/issue/UNS-1314/intlc-adjust-lint-rule-for-nested-functions

linear[bot] commented 2 years ago
UNS-1314 `intlc`: adjust lint rule for nested functions

* Make an exception for `plural` ([we can't avoid nested functions that have ](https://paper.dropbox.com/doc/Problems-with-ICU-Message-syntax--BkC14qwsrB62inUH2g622jCQAg-iSD40grKWxwC3FrxMRPPG#:uid=651908368539454491334192&h2=Nested-functions-with-plural)`plural`[ types](https://paper.dropbox.com/doc/Problems-with-ICU-Message-syntax--BkC14qwsrB62inUH2g622jCQAg-iSD40grKWxwC3FrxMRPPG#:uid=651908368539454491334192&h2=Nested-functions-with-plural)) * Wait until we've confirmed there are no issues with the vendor's parser * [https://github.com/unsplash/intlc/issues/137](https://github.com/unsplash/intlc/issues/137)