mirror of
https://github.com/expo/expo-github-action.git
synced 2026-11-15 17:32:45 -10:00
chore: clean up tsconfig and eslint rules (#123)
This commit is contained in:
1 parent
a9b9cfef50
commit
c20146f3b7
5 files changed
+5
-10
No files matched your search
@@ -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
@@ -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
@@ -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
@@ -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
@@ -3,7 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"noImplicitAny": false
|
||||
"useUnknownInCatchVariables": false
|
||||
},
|
||||
"exclude": [
|
||||
"build",
|
||||
|
||||
Reference in new issue
Block a user