File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @blitz/eslint-plugin" ,
3
- "version" : " 0.1.2 " ,
3
+ "version" : " 0.1.3 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " An ESLint config to enforce a consistent code styles across StackBlitz projects" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export interface TSRuleExtensions {
6
6
variable ?: {
7
7
exceptions ?: string [ ] ;
8
8
} ;
9
+ parameter ?: {
10
+ exceptions ?: string [ ] ;
11
+ } ;
9
12
} ;
10
13
}
11
14
@@ -32,6 +35,12 @@ export function getNamingConventionRule(
32
35
selector : 'parameter' ,
33
36
format : [ 'camelCase' ] ,
34
37
leadingUnderscore : 'allow' ,
38
+ ...( extensions ?. parameter ?. exceptions ?. length && {
39
+ filter : {
40
+ regex : generateNamingConventionRegex ( [ ] , extensions ?. parameter ?. exceptions ) ,
41
+ match : false ,
42
+ } ,
43
+ } ) ,
35
44
} ,
36
45
{
37
46
selector : 'typeLike' ,
You can’t perform that action at this time.
0 commit comments