Skip to content

Commit

Permalink
chore: clean up tsconfig and eslint rules (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simek authored Nov 16, 2021
1 parent a9b9cfe commit c20146f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
4 changes: 2 additions & 2 deletions src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function fromRemoteCache(config: CacheConfig): Promise<string | und
if (hit) {
return target;
}
} catch (error: any) {
} catch (error) {
if (!handleRemoteCacheError(error)) {
throw error;
}
Expand All @@ -59,7 +59,7 @@ export async function toRemoteCache(source: string, config: CacheConfig): Promis

try {
await saveCache([source], cacheKey);
} catch (error: any) {
} catch (error) {
if (!handleRemoteCacheError(error)) {
throw error;
}
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function installCli(name: tools.PackageName): Promise<string | void> {
);

addPath(path);
} catch (error: any) {
} catch (error) {
tools.handleError(name, error);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/run.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const core = {
addPath: jest.fn(),
getInput: jest.fn(),
group: (message: string, action: () => Promise<any>) => action(),
group: <T>(message: string, action: () => Promise<T>): Promise<T> => action(),
info: jest.fn(),
};
const exec = { exec: jest.fn() };
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./build",
"rootDir": "./src",
"noImplicitAny": false
"useUnknownInCatchVariables": false
},
"exclude": [
"build",
Expand Down

0 comments on commit c20146f

Please sign in to comment.