mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
remove/fix radix rule
This commit is contained in:
parent
0ec0d4a725
commit
c7e4be28c7
@ -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,
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user