chore: fix compilation errors
This commit is contained in:
parent
d9c17a4065
commit
2f42a6df8b
|
@ -11,6 +11,8 @@ module.exports = {
|
|||
experimentalDecorators: true,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/camelcase": 0
|
||||
}
|
||||
'@typescript-eslint/camelcase': 0,
|
||||
'@typescript-eslint/no-explicit-any': 0,
|
||||
'@typescript-eslint/no-unsafe-declaration-merging': 0,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
"@semantic-release/git": "^9.0.0",
|
||||
"@semantic-release/npm": "^7.0.10",
|
||||
"@semantic-release/release-notes-generator": "^9.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.6.1",
|
||||
"@typescript-eslint/parser": "^4.6.1",
|
||||
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
||||
"@typescript-eslint/parser": "^6.1.0",
|
||||
"conventional-changelog-conventionalcommits": "^4.5.0",
|
||||
"eslint": "7.12.1",
|
||||
"eslint-config-airbnb-base": "^14.1.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PropertyPart, noChange } from 'lit-html';
|
||||
import { noChange } from 'lit-html';
|
||||
// import '@material/mwc-ripple';
|
||||
// tslint:disable-next-line
|
||||
import { Ripple } from '@material/mwc-ripple';
|
||||
|
@ -271,7 +271,7 @@ export const actionHandler = directive(
|
|||
return noChange;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
|
||||
render(_options?: ActionHandlerOptions) {}
|
||||
},
|
||||
);
|
||||
|
|
|
@ -83,6 +83,7 @@ console.info(
|
|||
});
|
||||
|
||||
@customElement('button-card')
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
class ButtonCard extends LitElement {
|
||||
@property() private _hass?: HomeAssistant;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { HassConfig, HassEntity } from 'home-assistant-js-websocket';
|
||||
import { LocalizeFunc } from 'custom-card-helpers';
|
||||
import { computeDomain, isNumericFromAttributes } from './helpers';
|
||||
import { atLeastVersion } from './at_least_version';
|
||||
import { formatNumber, getNumberFormatOptions, blankBeforePercent } from './common/format_number';
|
||||
import { EntityRegistryDisplayEntry, FrontendLocaleData, HomeAssistant, TimeZone } from './types/homeassistant';
|
||||
import { UNIT_TO_MILLISECOND_CONVERT, formatDuration } from './common/duration';
|
||||
|
|
|
@ -66,6 +66,7 @@ export const myFireEvent = <HassEvent extends ValidHassDomEvent>(
|
|||
},
|
||||
) => {
|
||||
options = options || {};
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
detail = detail === null || detail === undefined ? {} : detail;
|
||||
const event = new Event(type, {
|
||||
|
|
Loading…
Reference in New Issue