@gitlab/eslint-plugin 14.0.0 → 17.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
|
+
# [17.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v16.0.0...v17.0.0) (2022-08-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Enforce component name casing ([a0fb136](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/a0fb1363a1a1089b93d76bfb96e6f30bc578585f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Component names in templates are now required to be
|
|
12
|
+
kebab-case, while component names in `components` options are now
|
|
13
|
+
required to be PascalCase.
|
|
14
|
+
|
|
15
|
+
# [16.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v15.0.0...v16.0.0) (2022-08-12)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **deps:** update vue plugins ([712c0ca](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/712c0cafee95be4ec00a5ed6a4a5c231cbfc3edb))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* **deps:** New rules in vue/essential. See
|
|
26
|
+
https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0.
|
|
27
|
+
|
|
28
|
+
# [15.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v14.0.0...v15.0.0) (2022-07-29)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* Prefer $scopedSlots by default ([c6a5be9](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/c6a5be943f63871784aef5df0ae98c776466bec0))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### BREAKING CHANGES
|
|
37
|
+
|
|
38
|
+
* The `@gitlab/vue-prefer-dollar-scopedslots` rule is now
|
|
39
|
+
enabled by default.
|
|
40
|
+
|
|
1
41
|
# [14.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v13.1.0...v14.0.0) (2022-07-12)
|
|
2
42
|
|
|
3
43
|
|
package/lib/configs/default.js
CHANGED
|
@@ -85,7 +85,8 @@ module.exports = {
|
|
|
85
85
|
order: ['script', 'template', 'style'],
|
|
86
86
|
},
|
|
87
87
|
],
|
|
88
|
-
'vue/component-name-
|
|
88
|
+
'vue/component-options-name-casing': ['error', 'PascalCase'],
|
|
89
|
+
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
|
|
89
90
|
'@gitlab/vue-require-required-key': 'error',
|
|
90
91
|
'no-restricted-globals': [
|
|
91
92
|
'error',
|
|
@@ -108,6 +109,7 @@ module.exports = {
|
|
|
108
109
|
},
|
|
109
110
|
],
|
|
110
111
|
'@gitlab/vue-no-data-toggle': 'error',
|
|
112
|
+
'@gitlab/vue-prefer-dollar-scopedslots': 'error',
|
|
111
113
|
'@gitlab/vue-slot-name-casing': 'error',
|
|
112
114
|
'@gitlab/no-runtime-template-compiler': 'error',
|
|
113
115
|
'import/order': [
|
|
@@ -65,7 +65,7 @@ module.exports = {
|
|
|
65
65
|
|
|
66
66
|
return utils.executeOnVue(context, (obj) => {
|
|
67
67
|
const props = utils
|
|
68
|
-
.
|
|
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": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "GitLab package for our custom eslint rules",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,7 +40,7 @@
|
|
|
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": "^
|
|
43
|
+
"eslint-plugin-vue": "^9.3.0",
|
|
44
44
|
"lodash": "^4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"jest": "^27.5.1",
|
|
53
53
|
"prettier": "^2.6.1",
|
|
54
54
|
"pretty-quick": "^3.1.3",
|
|
55
|
-
"vue-eslint-parser": "^
|
|
55
|
+
"vue-eslint-parser": "^9.0.3"
|
|
56
56
|
},
|
|
57
57
|
"release": {
|
|
58
58
|
"branches": [
|