test: utilize new flat ESLint configuration (#294)

* test: utilize new flat ESLint configuration

* test: add TypeScript support to new flat ESLint config

* test: fix `@typescript-eslint/consistent-indexed-object-style` lint issue
This commit is contained in:
Alfi Maulana
2024-04-12 21:55:35 +07:00
committed by GitHub
parent 624017b76a
commit f06670a909
6 changed files with 45 additions and 22 deletions

View File

@@ -11,9 +11,9 @@ jest.unstable_mockModule("@actions/core", () => ({
describe("get action inputs", () => {
interface TestCase {
name: string;
booleanInputs?: { [key: string]: boolean };
stringInputs?: { [key: string]: string };
multilineInputs?: { [key: string]: string[] };
booleanInputs?: Record<string, boolean>;
stringInputs?: Record<string, string>;
multilineInputs?: Record<string, string[]>;
expectedInputs?: Partial<Inputs>;
}