remove/fix radix rule

This commit is contained in:
austinried 2021-08-23 13:32:43 +09:00
parent 0ec0d4a725
commit c7e4be28c7
3 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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 {

View File

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