Skip to content

Commit f7fa8fd

Browse files
author
roman.vasilev
committed
fix(lint): Fixed lint warnings
1 parent 3b9e3c9 commit f7fa8fd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

src/no-eslint-disable.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)