@@ -19,14 +19,14 @@ var ESLintTester = require('eslint-tester');
1919var eslintTester = new ESLintTester ( eslint ) ;
2020eslintTester . addRuleTest ( 'lib/rules/react-in-jsx-scope' , {
2121 valid : [
22- { code : 'var React, App; <App />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { jsx : true } } ,
23- { code : 'var React; <img />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { jsx : true } } ,
24- { code : 'var React; <x-gif />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { jsx : true } } ,
22+ { code : 'var React, App; <App />;' , ecmaFeatures : { jsx : true } } ,
23+ { code : 'var React; <img />;' , ecmaFeatures : { jsx : true } } ,
24+ { code : 'var React; <x-gif />;' , ecmaFeatures : { jsx : true } } ,
2525 { code : 'var React, App, a=1; <App attr={a} />;' , ecmaFeatures : { jsx : true } } ,
2626 { code : 'var React, App, a=1; function elem() { return <App attr={a} />; }' , ecmaFeatures : { jsx : true } } ,
27- { code : 'var React, App; <App />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { globalReturn : true , jsx : true } } ,
28- { code : '/** @jsx Foo */ var Foo, App; <App />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { jsx : true } } ,
29- { code : '/** @jsx Foo.Bar */ var Foo, App; <App />;' , args : [ 1 , { vars : 'all' } ] , ecmaFeatures : { jsx : true } } ,
27+ { code : 'var React, App; <App />;' , ecmaFeatures : { globalReturn : true , jsx : true } } ,
28+ { code : '/** @jsx Foo */ var Foo, App; <App />;' , ecmaFeatures : { jsx : true } } ,
29+ { code : '/** @jsx Foo.Bar */ var Foo, App; <App />;' , ecmaFeatures : { jsx : true } } ,
3030 { code : [
3131 'import React from \'react/addons\';' ,
3232 'const Button = React.createClass({' ,
0 commit comments