Skip to content

Commit

Permalink
Avoid expo-status-bar false positive w. style=auto
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 29, 2023
1 parent 87c6575 commit 56197ca
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,17 @@ const eslintConfigReactAppRules = {
'react/no-is-mounted': 'warn',
'react/no-typos': 'error',
'react/require-render-return': 'error',
'react/style-prop-object': 'warn',
'react/style-prop-object': [
'warn',
{
allow: [
// Allow expo-status-bar style prop, which is a string, eg:
// <StatusBar style="auto" />
// https://github.com/expo/expo/blob/999572cd1036529ffa3a28a0490dd7c0f6f0d731/packages/expo-status-bar/src/StatusBar.types.ts#L2
'StatusBar',
],
},
],

// https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules
'jsx-a11y/alt-text': 'warn',
Expand Down

0 comments on commit 56197ca

Please sign in to comment.