diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2025-03-03 20:15:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 20:15:14 +0100 |
commit | 1da395de2e6759dfe9a7a199b03a39365e30f16c (patch) | |
tree | b597281911de6cde1682932ca9c242c0f8b5841d /ui/widgets/datepicker.js | |
parent | 302b488b9214e14830496578f7cf0aebcc33c132 (diff) | |
download | jquery-ui-1da395de2e6759dfe9a7a199b03a39365e30f16c.tar.gz jquery-ui-1da395de2e6759dfe9a7a199b03a39365e30f16c.zip |
Build: Update ESLint to v9, migrate to flat config, lint dist files
Dist files linting is limited to checking if they're proper ES5.
Closes gh-2336
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r-- | ui/widgets/datepicker.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 323723b89..029f255e8 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -1,4 +1,4 @@ -/* eslint-disable max-len, camelcase */ +/* eslint-disable max-len */ /*! * jQuery UI Datepicker @VERSION * https://jqueryui.com @@ -535,7 +535,7 @@ $.extend( Datepicker.prototype, { _getInst: function( target ) { try { return $.data( target, "datepicker" ); - } catch ( err ) { + } catch ( _err ) { throw "Missing instance data for this datepicker"; } }, @@ -768,7 +768,7 @@ $.extend( Datepicker.prototype, { $.datepicker._updateAlternate( inst ); $.datepicker._updateDatepicker( inst ); } - } catch ( err ) { + } catch ( _err ) { } } return true; @@ -1540,7 +1540,7 @@ $.extend( Datepicker.prototype, { try { date = this.parseDate( dateFormat, dates, settings ) || defaultDate; - } catch ( event ) { + } catch ( _err ) { dates = ( noDefault ? "" : dates ); } inst.selectedDay = date.getDate(); @@ -1569,7 +1569,7 @@ $.extend( Datepicker.prototype, { try { return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ), offset, $.datepicker._getFormatConfig( inst ) ); - } catch ( e ) { + } catch ( _e ) { // Ignore } |