diff --git a/.eslintrc.js b/.eslintrc.js index d176ef604..7a9556120 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,14 +14,9 @@ module.exports = { 'plugin:@typescript-eslint/recommended', ], rules: { - '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-member-accessibility': [ 'error', { 'accessibility': 'no-public' }, ], - '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/indent': ['error', 'tab'], - '@typescript-eslint/no-non-null-assertion': 'off', - '@typescript-eslint/no-use-before-define': 'off', - '@typescript-eslint/no-explicit-any': 'off', }, }; diff --git a/src/cache.ts b/src/cache.ts index d15e2a5a8..0b12d2ff1 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -43,7 +43,7 @@ export async function fromRemoteCache(config: CacheConfig): Promise { ); addPath(path); - } catch (error: any) { + } catch (error) { tools.handleError(name, error); } diff --git a/tests/run.test.ts b/tests/run.test.ts index 414706ef8..60b7a58fb 100644 --- a/tests/run.test.ts +++ b/tests/run.test.ts @@ -1,7 +1,7 @@ const core = { addPath: jest.fn(), getInput: jest.fn(), - group: (message: string, action: () => Promise) => action(), + group: (message: string, action: () => Promise): Promise => action(), info: jest.fn(), }; const exec = { exec: jest.fn() }; diff --git a/tsconfig.json b/tsconfig.json index 828b3b2b8..0ab0216b0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "./build", "rootDir": "./src", - "noImplicitAny": false + "useUnknownInCatchVariables": false }, "exclude": [ "build",