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++) {