Skip to content

Commit 4dfdacc

Browse files
authored
chore: scope jest, lint, prettier, and tsc to ignore .worktrees directory (#7131)
1 parent e3bb5e8 commit 4dfdacc

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ coverage
44
e2e/docker
55
android
66
ios
7+
8+
.worktrees/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ios/
99
patches/
1010
scripts/
1111

12+
.worktrees/
13+
1214
.bettercodehub.yml
1315
.buckconfig
1416
.gitattributes

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
testPathIgnorePatterns: ['e2e', 'node_modules'],
2+
testPathIgnorePatterns: ['e2e', 'node_modules', '.worktrees/'],
33
transformIgnorePatterns: [
44
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|@rocket.chat/ui-kit)'
55
],

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@
7070
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
7171
"resolveJsonModule": true
7272
},
73-
"exclude": ["node_modules", "__mocks__"]
73+
"exclude": ["node_modules", "__mocks__", "**/.worktrees/**"]
7474
}

0 commit comments

Comments
 (0)