File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ module.exports = {
4646 require ( 'tslint-sonarts/tslint-sonarts.json' ) . rules ,
4747 {
4848 'no-use-before-declare' : true ,
49+ 'strict-boolean-expressions' : false ,
50+ 'no-implicit-dependencies' : false ,
51+ 'export-name' : false ,
4952 'member-access' : false ,
5053 'ordered-imports' : false ,
5154 'quotemark' : false ,
Original file line number Diff line number Diff line change @@ -17,17 +17,15 @@ function create(context: Rule.RuleContext): Rule.RuleListener {
1717 return { } ;
1818}
1919
20- function match ( comment : ESTree . Comment ) : any {
21- const match = disableRegex . exec ( comment . value ) ;
22- if ( match ) {
23- const [ matched ] = match ;
20+ function match ( comment : ESTree . Comment ) : Rule . ReportDescriptor | undefined {
21+ if ( disableRegex . test ( comment . value ) ) {
2422 return {
2523 messageId : 'message' ,
24+ data : < any > comment . loc . start , // eslint-disable-line tslint/config
2625 loc : {
2726 line : 0 ,
2827 column : 0 ,
2928 } ,
30- data : comment . loc . start ,
3129 } ;
3230 }
3331}
You can’t perform that action at this time.
0 commit comments