@gitlab/eslint-plugin 13.1.0 → 16.0.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,43 @@
1
+ # [16.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v15.0.0...v16.0.0) (2022-08-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **deps:** update vue plugins ([712c0ca](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/712c0cafee95be4ec00a5ed6a4a5c231cbfc3edb))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **deps:** New rules in vue/essential. See
12
+ https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0.
13
+
14
+ # [15.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v14.0.0...v15.0.0) (2022-07-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * Prefer $scopedSlots by default ([c6a5be9](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/c6a5be943f63871784aef5df0ae98c776466bec0))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * The `@gitlab/vue-prefer-dollar-scopedslots` rule is now
25
+ enabled by default.
26
+
27
+ # [14.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v13.1.0...v14.0.0) (2022-07-12)
28
+
29
+
30
+ ### Features
31
+
32
+ * update eslint to 8 ([09a0b36](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/09a0b363082124809825cb3b11c6c803710b86a5))
33
+
34
+
35
+ ### BREAKING CHANGES
36
+
37
+ * Check the ESLint 8 release notes
38
+ for more information.
39
+ https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0
40
+
1
41
  # [13.1.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v13.0.0...v13.1.0) (2022-07-08)
2
42
 
3
43
 
@@ -43,7 +43,7 @@ export default {
43
43
  export default {
44
44
  render(h) {
45
45
  return this.$scopedSlots.foo
46
- ? this.$slots.foo() // Note the function call!
46
+ ? this.$scopedSlots.foo() // Note the function call!
47
47
  : null;
48
48
  },
49
49
  };
@@ -108,6 +108,7 @@ module.exports = {
108
108
  },
109
109
  ],
110
110
  '@gitlab/vue-no-data-toggle': 'error',
111
+ '@gitlab/vue-prefer-dollar-scopedslots': 'error',
111
112
  '@gitlab/vue-slot-name-casing': 'error',
112
113
  '@gitlab/no-runtime-template-compiler': 'error',
113
114
  'import/order': [
@@ -65,7 +65,7 @@ module.exports = {
65
65
 
66
66
  return utils.executeOnVue(context, (obj) => {
67
67
  const props = utils
68
- .getComponentProps(obj)
68
+ .getComponentPropsFromOptions(obj)
69
69
  .filter(({ node }) => node.key && node.value && !node.shorthand);
70
70
 
71
71
  const propsWithoutRequiredKey = findPropsWithoutRequiredKey(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/eslint-plugin",
3
- "version": "13.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -40,19 +40,19 @@
40
40
  "eslint-plugin-jest": "^23.8.2",
41
41
  "eslint-plugin-promise": "^4.2.1",
42
42
  "eslint-plugin-unicorn": "^40.1.0",
43
- "eslint-plugin-vue": "^8.5.0",
43
+ "eslint-plugin-vue": "^9.3.0",
44
44
  "lodash": "^4.17.21"
45
45
  },
46
46
  "peerDependencies": {
47
- "eslint": "^7.27.0 || ^8.0.0"
47
+ "eslint": "^8.19.0"
48
48
  },
49
49
  "devDependencies": {
50
- "eslint": "^7.27.0",
50
+ "eslint": "^8.19.0",
51
51
  "glob": "^7.2.0",
52
52
  "jest": "^27.5.1",
53
53
  "prettier": "^2.6.1",
54
54
  "pretty-quick": "^3.1.3",
55
- "vue-eslint-parser": "^8.0.1"
55
+ "vue-eslint-parser": "^9.0.3"
56
56
  },
57
57
  "release": {
58
58
  "branches": [