Skip to content

Commit b1e46cf

Browse files
committed
Config ESLint for Jest
1 parent 9bd9dfa commit b1e46cf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.eslintrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"root": true,
33
"env": {
44
"browser": true,
5-
"node": true
5+
"node": true,
6+
"jest/globals": true
67
},
78
"parserOptions": {
89
"project": [
@@ -12,14 +13,17 @@
1213
},
1314
"plugins": [
1415
"@typescript-eslint",
16+
"jest",
1517
"import"
1618
],
1719
"extends": [
1820
"airbnb",
1921
"airbnb/hooks",
2022
"airbnb-typescript",
2123
"plugin:@typescript-eslint/recommended",
22-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
24+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
25+
"plugin:jest/recommended",
26+
"plugin:jest/style"
2327
],
2428
"rules": {
2529
"max-len": [
@@ -48,4 +52,4 @@
4852
],
4953
"@typescript-eslint/lines-between-class-members": "off"
5054
}
51-
}
55+
}

0 commit comments

Comments
 (0)