chore: clean up tsconfig and eslint rules (#123)

This commit is contained in:
Bartosz Kaszubowski authored and GitHub committed 2021-11-16 05:34:16 -08:00
1 parent a9b9cfef50
commit c20146f3b7
5 files changed
+5 -10

No files matched your search

-5
View File
@@ -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',
},
};
+2 -2
View File
@@ -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;
}
@@ -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;
}
+1 -1
View File
@@ -50,7 +50,7 @@ async function installCli(name: tools.PackageName): Promise<string | void> {
);
addPath(path);
} catch (error: any) {
} catch (error) {
tools.handleError(name, error);
}
+1 -1
View File
@@ -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() };
+1 -1
View File
@@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "./build",
"rootDir": "./src",
"noImplicitAny": false
"useUnknownInCatchVariables": false
},
"exclude": [
"build",