diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 21:02:36 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 22:17:13 +0100 |
commit | 602bce34c8f7c2f8c68dd18f29243e467ed0fb08 (patch) | |
tree | 6ac9dab6b892faef42c8d2bb760e4b556756dc39 /.eslintrc.cjs | |
parent | build: Add prettier (diff) | |
download | sophie-602bce34c8f7c2f8c68dd18f29243e467ed0fb08.tar.gz sophie-602bce34c8f7c2f8c68dd18f29243e467ed0fb08.tar.zst sophie-602bce34c8f7c2f8c68dd18f29243e467ed0fb08.zip |
build: Add eslint-plugin-jest
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r-- | .eslintrc.cjs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 1301de4..5bb3c21 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs | |||
@@ -9,6 +9,8 @@ module.exports = { | |||
9 | 'airbnb/hooks', | 9 | 'airbnb/hooks', |
10 | 'plugin:@typescript-eslint/recommended', | 10 | 'plugin:@typescript-eslint/recommended', |
11 | 'plugin:@typescript-eslint/recommended-requiring-type-checking', | 11 | 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
12 | 'plugin:jest/recommended', | ||
13 | 'plugin:jest/style', | ||
12 | 'plugin:prettier/recommended', | 14 | 'plugin:prettier/recommended', |
13 | ], | 15 | ], |
14 | env: { | 16 | env: { |
@@ -67,6 +69,8 @@ module.exports = { | |||
67 | '@typescript-eslint/no-non-null-assertion': 'off', | 69 | '@typescript-eslint/no-non-null-assertion': 'off', |
68 | // Jest mocks use unbound method references. | 70 | // Jest mocks use unbound method references. |
69 | '@typescript-eslint/unbound-method': 'off', | 71 | '@typescript-eslint/unbound-method': 'off', |
72 | // We can't turn this on yet, because it doesn't understand `mocked` from `jest-mock`. | ||
73 | // 'jest/unbound-method': 'error', | ||
70 | }, | 74 | }, |
71 | }, | 75 | }, |
72 | { | 76 | { |