Skip to content

Commit 2f42a6d

Browse files
committed
chore: fix compilation errors
1 parent d9c17a4 commit 2f42a6d

File tree

7 files changed

+748
-1172
lines changed

7 files changed

+748
-1172
lines changed

.eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ module.exports = {
1111
experimentalDecorators: true,
1212
},
1313
rules: {
14-
"@typescript-eslint/camelcase": 0
15-
}
14+
'@typescript-eslint/camelcase': 0,
15+
'@typescript-eslint/no-explicit-any': 0,
16+
'@typescript-eslint/no-unsafe-declaration-merging': 0,
17+
},
1618
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@semantic-release/git": "^9.0.0",
4444
"@semantic-release/npm": "^7.0.10",
4545
"@semantic-release/release-notes-generator": "^9.0.1",
46-
"@typescript-eslint/eslint-plugin": "^4.6.1",
47-
"@typescript-eslint/parser": "^4.6.1",
46+
"@typescript-eslint/eslint-plugin": "^6.1.0",
47+
"@typescript-eslint/parser": "^6.1.0",
4848
"conventional-changelog-conventionalcommits": "^4.5.0",
4949
"eslint": "7.12.1",
5050
"eslint-config-airbnb-base": "^14.1.0",

src/action-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropertyPart, noChange } from 'lit-html';
1+
import { noChange } from 'lit-html';
22
// import '@material/mwc-ripple';
33
// tslint:disable-next-line
44
import { Ripple } from '@material/mwc-ripple';
@@ -271,7 +271,7 @@ export const actionHandler = directive(
271271
return noChange;
272272
}
273273

274-
// eslint-disable-next-line @typescript-eslint/no-empty-function
274+
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
275275
render(_options?: ActionHandlerOptions) {}
276276
},
277277
);

src/button-card.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ console.info(
8383
});
8484

8585
@customElement('button-card')
86+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8687
class ButtonCard extends LitElement {
8788
@property() private _hass?: HomeAssistant;
8889

src/compute_state_display.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { HassConfig, HassEntity } from 'home-assistant-js-websocket';
22
import { LocalizeFunc } from 'custom-card-helpers';
33
import { computeDomain, isNumericFromAttributes } from './helpers';
4-
import { atLeastVersion } from './at_least_version';
54
import { formatNumber, getNumberFormatOptions, blankBeforePercent } from './common/format_number';
65
import { EntityRegistryDisplayEntry, FrontendLocaleData, HomeAssistant, TimeZone } from './types/homeassistant';
76
import { UNIT_TO_MILLISECOND_CONVERT, formatDuration } from './common/duration';

src/my-fire-event.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const myFireEvent = <HassEvent extends ValidHassDomEvent>(
6666
},
6767
) => {
6868
options = options || {};
69+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
6970
// @ts-ignore
7071
detail = detail === null || detail === undefined ? {} : detail;
7172
const event = new Event(type, {

0 commit comments

Comments
 (0)