File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ exporting files can be ignored with a second configuration parameter.
43
43
44
44
With these configuration options, ` camelCase.js ` will be reported as an error while ` snake_case.js ` will pass.
45
45
Additionally the files that have a named default export (according to the logic in the ` match-exported ` rule) will be
46
- ignored. They could be linted with the ` match-exported ` rule.
46
+ ignored. They could be linted with the ` match-exported ` rule. Please note that exported function calls are not
47
+ respected in this case.
47
48
48
49
### Matching Exported Values (match-exported)
49
50
@@ -124,6 +125,10 @@ opening files by name. When enabling this rule. `index.js` files will always be
124
125
125
126
## Changelog
126
127
128
+ #### 1.3.2
129
+
130
+ - Fix issue with `match-regex` and `getExportedName`
131
+
127
132
#### 1.3.1
128
133
129
134
- Put breaking change from `1.3.0` behind a flag
Original file line number Diff line number Diff line change 1
1
function getNodeName ( node , options ) {
2
+ var op = options || [ ] ;
3
+
2
4
if ( node . type === "Identifier" ) {
3
5
return node . name ;
4
6
}
@@ -7,7 +9,7 @@ function getNodeName(node, options) {
7
9
return node . id . name ;
8
10
}
9
11
10
- if ( options [ 2 ] && node . type === "CallExpression" && node . callee . type === "Identifier" ) {
12
+ if ( op [ 2 ] && node . type === "CallExpression" && node . callee . type === "Identifier" ) {
11
13
return node . callee . name ;
12
14
}
13
15
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-plugin-filenames" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.3.2 " ,
4
4
"description" : " Eslint rule for consistent filenames." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments