From 85c3fc0431e7e75a41894d4669f6a46bbda5440b Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 24 Oct 2023 03:41:47 +0700 Subject: all: fix all linter warnings from tsc and eslint In this changes we introduce eslint as our linter for TypeScript and update our tsconfig to be more strict. The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website repository [1]. [1]: https://cs.opensource.google/go/x/website --- input/checkboxes.d.ts | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'input/checkboxes.d.ts') diff --git a/input/checkboxes.d.ts b/input/checkboxes.d.ts index dde0476..e0cced0 100644 --- a/input/checkboxes.d.ts +++ b/input/checkboxes.d.ts @@ -1,33 +1,33 @@ import { WuiInputOption } from "./option.js"; export interface WuiKeyValue { - [key: string]: string; + [key: string]: string; } export interface WuiKeySelectOption { - [key: string]: WuiInputOption; + [key: string]: WuiInputOption; } export interface WuiInputCheckboxesOpts { - label: string; - name: string; - options: WuiKeySelectOption; - id?: string; - hint?: string; - is_disabled?: boolean; - is_hint_toggled?: boolean; - onChangeHandler?: (values: string[]) => void; + label: string; + name: string; + options: WuiKeySelectOption; + id?: string; + hint?: string; + is_disabled?: boolean; + is_hint_toggled?: boolean; + onChangeHandler?: (values: string[]) => void; } export declare class WuiInputCheckboxes { - opts: WuiInputCheckboxesOpts; - el: HTMLElement; - private el_label; - private el_fieldset; - private el_hint; - private el_hint_toggler; - private values; - constructor(opts: WuiInputCheckboxesOpts); - private generateLabel; - private generateInput; - private generateHintToggler; - private generateHint; - private onClickHintToggler; - private onClickCheckbox; + opts: WuiInputCheckboxesOpts; + el: HTMLElement; + private el_label; + private el_fieldset; + private el_hint; + private el_hint_toggler; + private values; + constructor(opts: WuiInputCheckboxesOpts); + private generateLabel; + private generateInput; + private generateHintToggler; + private generateHint; + private onClickHintToggler; + private onClickCheckbox; } -- cgit v1.3