@gitlab/eslint-plugin 17.0.0 → 18.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [18.1.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v18.0.0...v18.1.0) (2022-09-26)
2
+
3
+
4
+ ### Features
5
+
6
+ * **jest:** restrict usage of toBeTruthy or toBeFalsy ([43fa628](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/43fa6283a94b1ba2f04408f60dc3b7bcc800a3a5))
7
+
8
+ # [18.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v17.0.0...v18.0.0) (2022-09-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **jest:** disable no-conditional-export rule ([89014fb](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/89014fb2cd84b0e4083070aa85424ed7c7a4761f))
14
+ * **jest:** do not check type of describe name in titles ([3be8823](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/3be8823baddf8a8b90e3003afbeddc552c537654))
15
+ * update jest plugin from 23.8.2 to 27.0.4 ([3817754](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/3817754e260e8f4e86a1419274f444e05a33e928)), closes [/github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md#2400-2020-09-04](https://gitlab.com//github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md/issues/2400-2020-09-04)
16
+
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * See eslint-plugin-jest for full
21
+ list of breaking changes:
22
+
1
23
  # [17.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v16.0.0...v17.0.0) (2022-08-24)
2
24
 
3
25
 
@@ -2,5 +2,16 @@ module.exports = {
2
2
  extends: ['plugin:jest/recommended'],
3
3
  rules: {
4
4
  'jest/consistent-test-it': ['error', { fn: 'it', withinDescribe: 'it' }],
5
+ 'jest/no-conditional-expect': 'off',
6
+ 'jest/valid-title': [
7
+ 'error',
8
+ {
9
+ ignoreTypeOfDescribeName: true,
10
+ },
11
+ ],
12
+ 'jest/no-restricted-matchers': ['error', {
13
+ toBeFalsy: 'Prefer a stronger matcher like `toBe(false)`',
14
+ toBeTruthy: 'Prefer a stronger matcher like `toBe(true)`'
15
+ }]
5
16
  },
6
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/eslint-plugin",
3
- "version": "17.0.0",
3
+ "version": "18.1.0",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -37,8 +37,8 @@
37
37
  "eslint-config-prettier": "^6.10.0",
38
38
  "eslint-plugin-babel": "^5.3.0",
39
39
  "eslint-plugin-import": "^2.26.0",
40
- "eslint-plugin-jest": "^23.8.2",
41
- "eslint-plugin-promise": "^4.2.1",
40
+ "eslint-plugin-jest": "^27.0.4",
41
+ "eslint-plugin-promise": "^6.0.1",
42
42
  "eslint-plugin-unicorn": "^40.1.0",
43
43
  "eslint-plugin-vue": "^9.3.0",
44
44
  "lodash": "^4.17.21"