From c7e4be28c7f7f5548f7eafd3df457e20b08fa844 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Mon, 23 Aug 2021 13:32:43 +0900 Subject: [PATCH] remove/fix radix rule --- .eslintrc.js | 2 -- app/subsonic/elements.ts | 2 +- app/subsonic/responses.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a48861b..1088093 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,8 +2,6 @@ module.exports = { root: true, extends: '@react-native-community', rules: { - // 'react-native/no-inline-styles': 0, - radix: 0, '@typescript-eslint/no-unused-vars': ['warn'], semi: 0, 'no-spaced-func': 0, diff --git a/app/subsonic/elements.ts b/app/subsonic/elements.ts index 50574b6..88715be 100644 --- a/app/subsonic/elements.ts +++ b/app/subsonic/elements.ts @@ -15,7 +15,7 @@ function optionalBoolean(e: Element, name: string): boolean | undefined { } function requiredInt(e: Element, name: string): number { - return parseInt(e.getAttribute(name) as string) + return parseInt(e.getAttribute(name) as string, 10) } function optionalInt(e: Element, name: string): number | undefined { diff --git a/app/subsonic/responses.ts b/app/subsonic/responses.ts index 4c29d76..0614ec7 100644 --- a/app/subsonic/responses.ts +++ b/app/subsonic/responses.ts @@ -65,7 +65,7 @@ export class GetIndexesResponse { const indexesElement = xml.getElementsByTagName('indexes')[0] this.ignoredArticles = indexesElement.getAttribute('ignoredArticles') as string - this.lastModified = parseInt(indexesElement.getAttribute('lastModified') as string) + this.lastModified = parseInt(indexesElement.getAttribute('lastModified') as string, 10) const artistElements = xml.getElementsByTagName('artist') for (let i = 0; i < artistElements.length; i++) {