refactor: Phase out TSLint in editor-ui (no-changelog) (#4935)

* 🔥 Remove `tslint.json`

* 🔥 Remove TSLint commands

* 🔥 Remove exceptions in `editor-ui`

* 🔥 Remove from `.npmignore`

* 🔥 Remove from `eslint-config`

* 🔥 Remove exception from `design-system`

* 🎨 Prettify

* 📦 Update pnpm-lock

* 🔥 Remove duplicate import

* 🔥 Remove exemption for `no-explicit-any`

* 👕 Inline `no-explicit-any` exemptions
This commit is contained in:
Iván Ovejero
2022-12-15 14:06:00 +01:00
committed by GitHub
parent efa4c56757
commit 0e4cda5763
32 changed files with 69 additions and 165 deletions

View File

@@ -444,14 +444,16 @@ export default mixins(
shortcuts: [
{
text: 'Today', // TODO
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onClick(picker: any) {
picker.$emit('pick', new Date());
},
},
{
text: 'Yesterday', // TODO
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onClick(picker: any) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24);
@@ -460,7 +462,8 @@ export default mixins(
},
{
text: 'A week ago', // TODO
// tslint:disable-next-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
onClick(picker: any) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);