diff --git a/types/jquery-match-height/index.d.ts b/types/jquery-match-height/index.d.ts index e17cb841c0..0d25344e65 100644 --- a/types/jquery-match-height/index.d.ts +++ b/types/jquery-match-height/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jquery-match-height v0.7.2 +// Type definitions for jquery-match-height 0.7 // Project: https://github.com/liabru/jquery-match-height // Definitions by: Andrea Briganti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -11,10 +11,10 @@ declare namespace JQueryMatchHeight { interface Options { - byRow?: boolean, - property?: string, - target?: string, - remove?: boolean + byRow?: boolean; + property?: string; + target?: string; + remove?: boolean; } } diff --git a/types/jquery-match-height/jquery-match-height-tests.ts b/types/jquery-match-height/jquery-match-height-tests.ts index 3adc5936a7..ad0eedcdc3 100644 --- a/types/jquery-match-height/jquery-match-height-tests.ts +++ b/types/jquery-match-height/jquery-match-height-tests.ts @@ -16,11 +16,13 @@ $.fn.matchHeight._rows($('.containers')); $('.containers').matchHeight({ remove: true }); -$.fn.matchHeight._beforeUpdate = function(event: any, groups: any) { +// tslint:disable-next-line no-used-variable +$.fn.matchHeight._beforeUpdate = (event: any, groups: any) => { // do something before any updates are applied }; -$.fn.matchHeight._afterUpdate = function(event: any, groups: any) { +// tslint:disable-next-line no-used-variable +$.fn.matchHeight._afterUpdate = (event: any, groups: any) => { // do something after all updates are applied }; @@ -33,4 +35,4 @@ $.fn.matchHeight._throttle = 80; $.fn.matchHeight._maintainScroll = true; -$.fn.matchHeight._groups +$.fn.matchHeight._groups; diff --git a/types/jquery-match-height/tslint.json b/types/jquery-match-height/tslint.json new file mode 100644 index 0000000000..c9a409bbed --- /dev/null +++ b/types/jquery-match-height/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // This package uses the Function type, and it will take effort to fix. + "ban-types": false + } +}