eslint-plugin-jest 27.0.2 → 27.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/index.js +6 -9
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -257,7 +257,7 @@ that are powered by type-checking information provided by TypeScript.
|
|
|
257
257
|
|
|
258
258
|
In order to use these rules, you must be using `@typescript-eslint/parser` &
|
|
259
259
|
adjust your eslint config as outlined
|
|
260
|
-
[here](https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
260
|
+
[here](https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TYPED_LINTING.md).
|
|
261
261
|
|
|
262
262
|
Note that unlike the type-checking rules in `@typescript-eslint/eslint-plugin`,
|
|
263
263
|
the rules here will fallback to doing nothing if type information is not
|
package/lib/index.js
CHANGED
|
@@ -48,15 +48,12 @@ module.exports = {
|
|
|
48
48
|
configs: {
|
|
49
49
|
all: createConfig(allRules),
|
|
50
50
|
recommended: createConfig(recommendedRules),
|
|
51
|
-
style: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'jest/prefer-to-have-length': 'error'
|
|
58
|
-
}
|
|
59
|
-
}
|
|
51
|
+
style: createConfig({
|
|
52
|
+
'jest/no-alias-methods': 'warn',
|
|
53
|
+
'jest/prefer-to-be': 'error',
|
|
54
|
+
'jest/prefer-to-contain': 'error',
|
|
55
|
+
'jest/prefer-to-have-length': 'error'
|
|
56
|
+
})
|
|
60
57
|
},
|
|
61
58
|
environments: {
|
|
62
59
|
globals: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-jest",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.3",
|
|
4
4
|
"description": "ESLint rules for Jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -131,6 +131,7 @@
|
|
|
131
131
|
"jest": "^29.0.0",
|
|
132
132
|
"jest-runner-eslint": "^1.1.0",
|
|
133
133
|
"lint-staged": "^13.0.3",
|
|
134
|
+
"markdown-link-check": "^3.10.2",
|
|
134
135
|
"pinst": "^3.0.0",
|
|
135
136
|
"prettier": "^2.0.5",
|
|
136
137
|
"rimraf": "^3.0.0",
|