diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 61f042f82..7b992b127 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,9 +9,6 @@ updates: open-pull-requests-limit: 30 versioning-strategy: increase groups: - typescript-eslint: - patterns: - - '@typescript-eslint/*' redux: patterns: - '@reduxjs/*' diff --git a/generators/react-native/templates/eslint.config.js.jhi.react-native.ejs b/generators/react-native/templates/eslint.config.js.jhi.react-native.ejs index e00b9349f..c7fae6f13 100644 --- a/generators/react-native/templates/eslint.config.js.jhi.react-native.ejs +++ b/generators/react-native/templates/eslint.config.js.jhi.react-native.ejs @@ -18,6 +18,7 @@ -%> <&_ if (fragment.importsSection) { -&> import eslint from '@eslint/js'; +import jest from 'eslint-plugin-jest'; import react from 'eslint-plugin-react'; import reactHooks from 'eslint-plugin-react-hooks'; <&_ } -&> @@ -38,6 +39,7 @@ import reactHooks from 'eslint-plugin-react-hooks'; }, { files: ['test/**/*.js', 'e2e/**/*.js'], + ...jest.configs['flat/recommended'], languageOptions: { globals: { ...globals.jest, @@ -46,6 +48,7 @@ import reactHooks from 'eslint-plugin-react-hooks'; }, }, { + // Detox globals files: ['e2e/**/*.js'], languageOptions: { globals: { diff --git a/generators/react-native/templates/package.json b/generators/react-native/templates/package.json index 5802d5d12..e57714329 100644 --- a/generators/react-native/templates/package.json +++ b/generators/react-native/templates/package.json @@ -50,6 +50,7 @@ "detox": "20.27.6", "eslint": "9.14.0", "eslint-config-prettier": "9.1.0", + "eslint-plugin-jest": "28.9.0", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-react": "7.37.2", "eslint-plugin-react-hooks": "5.0.0", @@ -65,6 +66,7 @@ "resolve": "1.22.8", "rimraf": "5.0.7", "tapable": "2.2.1", - "ts-jest": "29.2.5" + "ts-jest": "29.2.5", + "typescript-eslint": "8.14.0" } } diff --git a/generators/react-native/templates/package.json.ejs b/generators/react-native/templates/package.json.ejs index 571204cda..2429fff4b 100644 --- a/generators/react-native/templates/package.json.ejs +++ b/generators/react-native/templates/package.json.ejs @@ -103,6 +103,7 @@ <%_ } _%> "eslint": null, "eslint-config-prettier": null, + "eslint-plugin-jest": null, "eslint-plugin-prettier": null, "eslint-plugin-react": null, "eslint-plugin-react-hooks": null, @@ -123,7 +124,8 @@ "rimraf": null, "tapable": null, "ts-jest": null, - "typescript": null + "typescript": null, + "typescript-eslint": null }, <%_ if (!skipCommitHook) { _%> "lint-staged": {