Skip to content

Commit 1a40f87

Browse files
fitsallundblandin
authored andcommitted
Add support for eslint-plugin-jest (#252)
* adds eslint-plugin-jest dependency * add jest category mappings * add missing rule mapping
1 parent ac6d622 commit 1a40f87

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lib/check_category_mapping.json

+5
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@
235235
"wrap-regex": "Clarity",
236236
"yoda": "Clarity",
237237

238+
"jest/no-disabled-tests": "Bug Risk",
239+
"jest/no-focused-tests": "Clarity",
240+
"jest/no-identical-title": "Clarity",
241+
"jest/valid-expect": "Bug Risk",
242+
238243
"jsdoc/check-param-names": "Clarity",
239244
"jsdoc/check-tag-names": "Clarity",
240245
"jsdoc/check-types": "Clarity",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"eslint-plugin-import-order": "^2.1.4",
4141
"eslint-plugin-inferno": "^6.10.4",
4242
"eslint-plugin-jasmine": "^2.2.0",
43+
"eslint-plugin-jest": "^19.0.1",
4344
"eslint-plugin-jquery": "^1.1.1",
4445
"eslint-plugin-jsdoc": "^3.0.0",
4546
"eslint-plugin-jsx-a11y": "^4.0.0",

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,10 @@ eslint-plugin-jasmine@^2.2.0:
785785
version "2.2.0"
786786
resolved "https://registry.yarnpkg.com/eslint-plugin-jasmine/-/eslint-plugin-jasmine-2.2.0.tgz#7135879383c39a667c721d302b9f20f0389543de"
787787

788+
eslint-plugin-jest@^19.0.1:
789+
version "19.0.1"
790+
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-19.0.1.tgz#42a420e90e81aa74e162c16166e43a31b890eece"
791+
788792
eslint-plugin-jquery@^1.1.1:
789793
version "1.1.1"
790794
resolved "https://registry.yarnpkg.com/eslint-plugin-jquery/-/eslint-plugin-jquery-1.1.1.tgz#b8f3d7a80c8cc8f93c40eca10adf7a54bbbb4bd6"

0 commit comments

Comments
 (0)