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 11{
22 "name" : " @blitz/eslint-plugin" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "license" : " MIT" ,
55 "description" : " An ESLint config to enforce a consistent code styles across StackBlitz projects" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export interface TSRuleExtensions {
66 variable ?: {
77 exceptions ?: string [ ] ;
88 } ;
9+ parameter ?: {
10+ exceptions ?: string [ ] ;
11+ } ;
912 } ;
1013}
1114
@@ -32,6 +35,12 @@ export function getNamingConventionRule(
3235 selector : 'parameter' ,
3336 format : [ 'camelCase' ] ,
3437 leadingUnderscore : 'allow' ,
38+ ...( extensions ?. parameter ?. exceptions ?. length && {
39+ filter : {
40+ regex : generateNamingConventionRegex ( [ ] , extensions ?. parameter ?. exceptions ) ,
41+ match : false ,
42+ } ,
43+ } ) ,
3544 } ,
3645 {
3746 selector : 'typeLike' ,
You can’t perform that action at this time.
0 commit comments