私はReactアプリを持っています。私はxo-reactを私のlinter構成に使用しています。
モジュールマネージャーとしてwebpack
またはsystemjs
を使用した場合はすべて問題ありませんが、私がバワーを使用すると、react/jsx-no-undef
またはreact-in-jsx-scope
のような問題がJSXテンプレートから発生します。bowerとxo-reactを使用したときの糸くずれのエラー
例:
return (
<Title/>
);
はWebPACKのを使用しているときにimport Title from './title.js';
やvar Title = require('./title.js');
をやる、通常'Title' is not defined
(react/jsx-no-undef
)