$ cnpm install react-intl-messages-linter
yarn add --dev react-intl-messages-linter
lint-react-intl-messages [options] path
-q, --quiet [true] Report errors only
-i, --ignore Pattern of files to ignore
--webpack Path to webpack config
Note that this tool was made to help you spotting missing messages. It does not aim to replace proper unit/integrations tests you should have in most (if not all) cases. There are a couple of caveats and it may be unable to detect missing messages under unsupported circumstances or report a false positive.
Copyright 2014 - 2017 © taobao.org |