diff --git a/.prettierrc.json b/.prettierrc.json index bbf4311..32f87e5 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,11 +1,12 @@ { - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "semi": false, - "singleQuote": true, - "trailingComma": "none", - "bracketSpacing": false, - "arrowParens": "avoid", - "parser": "typescript" - } \ No newline at end of file + "printWidth": 80, + "tabWidth": 2, + "useTabs": false, + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "bracketSpacing": false, + "arrowParens": "avoid", + "parser": "typescript", + "endOfLine": "auto" +} diff --git a/src/checksums.ts b/src/checksums.ts index 5cd51eb..fcb19ea 100644 --- a/src/checksums.ts +++ b/src/checksums.ts @@ -5,9 +5,7 @@ const httpc = new httpm.HttpClient('gradle/wrapper-validation-action') export async function fetchValidChecksums( allowSnapshots: boolean ): Promise { - const all: object[] = await httpGetJsonArray( - 'https://services.gradle.org/versions/all' - ) + const all = await httpGetJsonArray('https://services.gradle.org/versions/all') const withChecksum = all.filter(entry => entry.hasOwnProperty('wrapperChecksumUrl') ) @@ -15,7 +13,7 @@ export async function fetchValidChecksums( // eslint-disable-next-line @typescript-eslint/no-explicit-any (entry: any) => allowSnapshots || !entry.snapshot ) - const checksumUrls: string[] = allowed.map( + const checksumUrls = allowed.map( // eslint-disable-next-line @typescript-eslint/no-explicit-any (entry: any) => entry.wrapperChecksumUrl as string )