@gitlab/eslint-plugin 19.6.0 → 20.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,29 @@
1
+ # [20.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v19.6.1...v20.0.0) (2024-08-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * add max-params rule ([110cb10](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/110cb1018c8f681251f199a00a8cfda58a32bf05))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * The max-params rule is set to error on methods using
12
+ more than 3 parameters.
13
+
14
+ ## [19.6.1](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v19.6.0...v19.6.1) (2024-08-06)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **deps:** update eslint-config-prettier to v9.1.0 ([25abb6c](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/25abb6c30d339f101bea37a4f8a762c5d399b402))
20
+ * **deps:** update eslint-plugin-import to v2.29.1 ([c6aa74d](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/c6aa74d6b137511b18af006e7134b557b9561825))
21
+ * **deps:** update eslint-plugin-jest to v28.6.0 ([3f0dfc8](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/3f0dfc8e43f9874dc661fdde93f8b4825874b6c6))
22
+ * **deps:** update eslint-plugin-promise to v7.0.0 ([be8a1db](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/be8a1db92fa09e2c042675dc5b655d685da1975d))
23
+ * **deps:** update eslint-plugin-unicorn to v55.0.0 ([aaf7b33](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/aaf7b3303f7909683132b94b4d0a804afb1ee07a))
24
+ * **deps:** update eslint-plugin-vue to v9.27.0 ([e8b81ef](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/e8b81efb7bf2b6e0fa5e6a73c3692afba076d596))
25
+ * **deps:** update vue-eslint-parser to v9.4.3 ([af7d91e](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/af7d91e37e939f47ba06f4906a3e3997edc96793))
26
+
1
27
  # [19.6.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v19.5.0...v19.6.0) (2024-07-15)
2
28
 
3
29
 
@@ -26,6 +26,7 @@ module.exports = {
26
26
  },
27
27
  ],
28
28
  'default-param-last': 'off',
29
+ 'arrow-body-style': 'off',
29
30
  'unicorn/filename-case': ['error', { case: 'snakeCase' }],
30
31
  'unicorn/no-array-callback-reference': 'error',
31
32
  'import/prefer-default-export': 'off',
@@ -88,5 +89,6 @@ module.exports = {
88
89
  groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
89
90
  },
90
91
  ],
92
+ 'max-params': ['error', { max: 3 }]
91
93
  },
92
94
  };
@@ -8,7 +8,6 @@ module.exports = {
8
8
  'prettier',
9
9
  'plugin:promise/recommended',
10
10
  'plugin:vue/recommended',
11
- 'prettier/vue',
12
11
  ],
13
12
  rules: {
14
13
  ...baseConfig.rules,
@@ -8,7 +8,7 @@ module.exports = {
8
8
  browser: true,
9
9
  es2020: true,
10
10
  },
11
- extends: ['plugin:vue/recommended', 'prettier/vue'],
11
+ extends: ['plugin:vue/recommended', 'prettier'],
12
12
  parserOptions: {
13
13
  parser: 'espree',
14
14
  ecmaVersion: 'latest',
@@ -33,6 +33,8 @@ module.exports = {
33
33
  order: ['script', 'template', 'style'],
34
34
  },
35
35
  ],
36
+ // Turning this off for now as we violate this rule in many places.
37
+ 'vue/max-attributes-per-line': 'off',
36
38
  'vue/component-options-name-casing': ['error', 'PascalCase'],
37
39
  'vue/component-name-in-template-casing': ['error', 'kebab-case'],
38
40
  '@gitlab/vue-require-required-key': 'error',
@@ -54,6 +56,13 @@ module.exports = {
54
56
  ],
55
57
  // See https://gitlab.com/gitlab-org/frontend/eslint-plugin/-/issues/52.
56
58
  'vue/component-api-style': ['error', ['options']],
59
+ // We might not want to enable vue/singleline-html-element-content-newline and vue/multiline-html-element-content-newline
60
+ // just yet as they might cause regression depending on how the consumers compile Vue templates.
61
+ 'vue/singleline-html-element-content-newline': 'off',
62
+ 'vue/multiline-html-element-content-newline': 'off',
63
+ // Disabling these as they might conflict with prettier.
64
+ 'vue/html-indent': 'off',
65
+ 'vue/html-closing-bracket-newline': 'off',
57
66
  // BEGIN rules to aid migration from Vue 2.x to 3.x.
58
67
  // See https://gitlab.com/groups/gitlab-org/-/epics/3174 for more details.
59
68
  'vue/no-deprecated-data-object-declaration': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/eslint-plugin",
3
- "version": "19.6.0",
3
+ "version": "20.0.0",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -32,20 +32,20 @@
32
32
  "dependencies": {
33
33
  "@typescript-eslint/eslint-plugin": "^7.14.1",
34
34
  "eslint-config-airbnb-base": "^15.0.0",
35
- "eslint-config-prettier": "^6.10.0",
36
- "eslint-plugin-import": "^2.28.0",
37
- "eslint-plugin-jest": "^27.2.1",
38
- "eslint-plugin-promise": "^6.0.1",
39
- "eslint-plugin-unicorn": "^40.1.0",
40
- "eslint-plugin-vue": "^9.17.0",
41
- "vue-eslint-parser": "^9.3.1",
35
+ "eslint-config-prettier": "^9.1.0",
36
+ "eslint-plugin-import": "^2.29.1",
37
+ "eslint-plugin-jest": "^28.6.0",
38
+ "eslint-plugin-promise": "^7.0.0",
39
+ "eslint-plugin-unicorn": "^55.0.0",
40
+ "eslint-plugin-vue": "^9.27.0",
41
+ "vue-eslint-parser": "^9.4.3",
42
42
  "lodash": "^4.17.21"
43
43
  },
44
44
  "peerDependencies": {
45
- "eslint": "^8.19.0"
45
+ "eslint": "^8.57.0"
46
46
  },
47
47
  "devDependencies": {
48
- "eslint": "^8.19.0",
48
+ "eslint": "^8.57.0",
49
49
  "glob": "^7.2.0",
50
50
  "jest": "^27.5.1",
51
51
  "prettier": "^2.6.1",