Skip to content

Commit 8c44d52

Browse files
committed
fix: update order of rules and remove react-native specific settings
1 parent e5a70f2 commit 8c44d52

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,14 @@ import { reactRules } from './configs/react.js'
1818

1919
export const reactConfig: Linter.Config = {
2020
rules: {
21+
...eslintPluginReactHooks.configs.recommended.rules,
2122
...jsxA11yRules,
2223
...reactRules,
23-
...eslintPluginReactHooks.configs.recommended.rules,
2424
},
2525
plugins: {
2626
'jsx-a11y': eslintPluginJsxA11y,
2727
'react-hooks': eslintPluginReactHooks,
2828
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- TODO: remove type assertion after types are fixed in eslint-plugin-react - https://github.com/jsx-eslint/eslint-plugin-react/pull/3840
2929
'react': eslintPluginReact as ESLint.Plugin,
3030
},
31-
settings: {
32-
'import/ignore': [
33-
'react-native',
34-
'react-native-keychain',
35-
],
36-
},
3731
}

0 commit comments

Comments
 (0)