Skip to content

Commit

Permalink
add eslint-plugin-jest and others adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 14, 2024
1 parent d6d4c6c commit 6a49af1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ updates:
open-pull-requests-limit: 30
versioning-strategy: increase
groups:
typescript-eslint:
patterns:
- '@typescript-eslint/*'
redux:
patterns:
- '@reduxjs/*'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
<&_ } -&>
Expand All @@ -38,6 +39,7 @@ import reactHooks from 'eslint-plugin-react-hooks';
},
{
files: ['test/**/*.js', 'e2e/**/*.js'],
...jest.configs['flat/recommended'],
languageOptions: {
globals: {
...globals.jest,
Expand All @@ -46,6 +48,7 @@ import reactHooks from 'eslint-plugin-react-hooks';
},
},
{
// Detox globals
files: ['e2e/**/*.js'],
languageOptions: {
globals: {
Expand Down
4 changes: 3 additions & 1 deletion generators/react-native/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
4 changes: 3 additions & 1 deletion generators/react-native/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -123,7 +124,8 @@
"rimraf": null,
"tapable": null,
"ts-jest": null,
"typescript": null
"typescript": null,
"typescript-eslint": null
},
<%_ if (!skipCommitHook) { _%>
"lint-staged": {
Expand Down

0 comments on commit 6a49af1

Please sign in to comment.