@@ -19,14 +19,14 @@ var ESLintTester = require('eslint-tester');
19
19
var eslintTester = new ESLintTester ( eslint ) ;
20
20
eslintTester . addRuleTest ( 'lib/rules/react-in-jsx-scope' , {
21
21
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 } } ,
25
25
{ code : 'var React, App, a=1; <App attr={a} />;' , ecmaFeatures : { jsx : true } } ,
26
26
{ 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 } } ,
30
30
{ code : [
31
31
'import React from \'react/addons\';' ,
32
32
'const Button = React.createClass({' ,
0 commit comments