File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ const noUndefRule = context => {
78
78
if ( name . type == 'JSXNamespacedName' ) name = name . namespace
79
79
const variables = variablesInScope ( context )
80
80
node . attributes . forEach ( attr => {
81
+ if ( attr . type == 'JSXSpreadAttribute' ) return
81
82
if ( attr . value == null ) checkDefined ( context , variables , attr . name )
82
83
} )
83
84
if ( ! standardTags . has ( name . name ) ) checkDefined ( context , variables , name )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-plugin-jsx" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " JSX specific linting rules for ESLint" ,
5
5
"main" : " built.js" ,
6
6
"dependencies" : {
7
7
"eslint-plugin-react" : " 3.4.2" ,
8
8
"html-tags" : " 1" ,
9
9
"svg-tags" : " 1"
10
10
},
11
+ "devDependencies" : {
12
+ "babel-cli" : " 6" ,
13
+ "babel-preset-node" : " 5"
14
+ },
11
15
"files" : [" index.js" , " built.js" ],
12
16
"repository" : " jkroso/eslint-plugin-jsx" ,
13
17
"keywords" : [" eslint" , " plugin" , " jsx" ],
14
18
"scripts" : {
15
- "prepublish" : " babel index.js > built.js"
19
+ "prepublish" : " babel --presets node index.js > built.js"
16
20
},
17
21
"author" : " Jake Rosoman" ,
18
22
"license" : " MIT"
You can’t perform that action at this time.
0 commit comments