mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Add eslint rules for React Query (#319)
* Use eslint rules to clean up useQuery code * Code cleanup for useAuthenticatedMutation * Add realm deletion and clear mock before each test in DeleteObservationDialog
This commit is contained in:
committed by
GitHub
parent
d51685b488
commit
310d2e743d
@@ -7,12 +7,17 @@ module.exports = {
|
||||
presets: ["@babel/preset-react"]
|
||||
}
|
||||
},
|
||||
extends: ["airbnb", "plugin:i18next/recommended"],
|
||||
extends: [
|
||||
"airbnb",
|
||||
"plugin:i18next/recommended",
|
||||
"plugin:@tanstack/eslint-plugin-query/recommended"
|
||||
],
|
||||
plugins: [
|
||||
"module-resolver",
|
||||
"react-hooks",
|
||||
"react-native",
|
||||
"simple-import-sort"
|
||||
"simple-import-sort",
|
||||
"@tanstack/query"
|
||||
],
|
||||
globals: {
|
||||
FormData: true
|
||||
|
||||
Reference in New Issue
Block a user