Skip to content

Commit 572ca40

Browse files
committed
MDL-74301 eslint: Enable 'reportUnusedDisableDirectives' eslint setting
This will warn on unused /* eslint-disable */ statements.
1 parent 58d8a12 commit 572ca40

File tree

7 files changed

+5
-7
lines changed

7 files changed

+5
-7
lines changed

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
'M': true,
2121
'Y': true
2222
},
23+
// Warn about unused eslint-disable statements.
24+
'reportUnusedDisableDirectives': true,
2325
'rules': {
2426
// See http://eslint.org/docs/rules/ for all rules and explanations of all
2527
// rules.

admin/tool/lp/amd/build/competency_rule.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/tool/lp/amd/src/competency_rule.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,12 @@ define(['jquery'], function($) {
7171
return null;
7272
};
7373

74-
// eslint-disable-line valid-jsdoc
7574
/**
7675
* Return the type of the module.
7776
*
7877
* @return {String}
7978
* @method getType
8079
*/
81-
// eslint-enable-line valid-jsdoc
8280
Rule.prototype.getType = function() {
8381
throw new Error('Not implemented');
8482
};

0 commit comments

Comments
 (0)