@@ -5,7 +5,6 @@ import { CSSVariables, GenerateStyleSheetsCallback, ThemeName } from '../types'
55
66const SYSTEM_THEME = 'system' as const
77// Platform.constants is not defined in RNW
8- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
98const RN_VERSION = Platform . constants ?. reactNativeVersion ?. minor ?? 0
109const UNSPECIFIED_THEME = RN_VERSION >= 82 ? 'unspecified' : undefined
1110
@@ -18,7 +17,6 @@ export class UniwindConfigBuilder {
1817 Appearance . addChangeListener ( event => {
1918 const colorScheme = event . colorScheme === 'unspecified'
2019 ? ColorScheme . Light
21- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2220 : event . colorScheme ?? ColorScheme . Light
2321 const prevTheme = this . #currentTheme
2422
@@ -52,7 +50,7 @@ export class UniwindConfigBuilder {
5250 return colorScheme ?? ColorScheme . Light
5351 }
5452
55- // eslint -disable-next-line @ typescript-eslint /no-redundant-type-constituents
53+ // oxlint -disable-next-line typescript/no-redundant-type-constituents
5654 setTheme ( theme : ThemeName | typeof SYSTEM_THEME ) {
5755 const prevTheme = this . #currentTheme
5856 const prevHasAdaptiveThemes = this . #hasAdaptiveThemes
@@ -98,15 +96,12 @@ export class UniwindConfigBuilder {
9896 }
9997 }
10098
101- updateCSSVariables ( theme : ThemeName , variables : CSSVariables ) {
99+ updateCSSVariables ( _ : ThemeName , __ : CSSVariables ) {
102100 // noop
103- theme
104- variables
105101 }
106102
107- updateInsets ( insets : Insets ) {
103+ updateInsets ( _ : Insets ) {
108104 // noop
109- insets
110105 }
111106
112107 protected __reinit ( _ : GenerateStyleSheetsCallback , themes : Array < string > ) {
0 commit comments