@gitlab/eslint-plugin 12.2.0 → 13.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,34 @@
1
+ # [13.0.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v12.3.0...v13.0.0) (2022-07-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * Disallow Composition API ([9fe6ffa](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/9fe6ffac9e1ae59c48aed619997e380d1f5b9115))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * This disallows the Composition API. Since we're still
12
+ using Vue 2.6 which doesn't support it anyway, this should have no
13
+ effect. Once we upgrade to Vue 2.7, we can consider relaxing this rule
14
+ as we develop guidelines around its usage.
15
+
16
+ See https://gitlab.com/gitlab-org/frontend/eslint-plugin/-/issues/52.
17
+
18
+ # [12.3.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v12.2.1...v12.3.0) (2022-05-20)
19
+
20
+
21
+ ### Features
22
+
23
+ * Enable no-dynamic-require rule to prevent import expressions ([c260068](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/c260068542710f5a7417603d4ea0eddefdbb88a4))
24
+
25
+ ## [12.2.1](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v12.2.0...v12.2.1) (2022-05-20)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * Loosen new inherited rules ([08cacf8](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/08cacf812534b830f9aa90b9f7c6b90ea2698a56)), closes [/github.com/airbnb/javascript/blob/366bfa66380c08304101c6add46355696e90b348/packages/eslint-config-airbnb-base/rules/es6.js#L67-L68](https://gitlab.com//github.com/airbnb/javascript/blob/366bfa66380c08304101c6add46355696e90b348/packages/eslint-config-airbnb-base/rules/es6.js/issues/L67-L68)
31
+
1
32
  # [12.2.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v12.1.0...v12.2.0) (2022-04-21)
2
33
 
3
34
 
@@ -26,10 +26,12 @@ module.exports = {
26
26
  ignoreDestructuring: true,
27
27
  },
28
28
  ],
29
+ 'default-param-last': 'off',
29
30
  'unicorn/filename-case': ['error', { case: 'snakeCase' }],
30
31
  'import/prefer-default-export': 'off',
31
32
  'import/no-default-export': 'error',
32
33
  'import/no-deprecated': 'error',
34
+ 'import/no-dynamic-require': ['error', { esmodule: true }],
33
35
  'no-implicit-coercion': [
34
36
  'error',
35
37
  {
@@ -45,6 +47,14 @@ module.exports = {
45
47
  ignorePropertyModificationsFor: ['acc', 'accumulator', 'el', 'element', 'state'],
46
48
  },
47
49
  ],
50
+ 'no-restricted-exports': [
51
+ 'error',
52
+ {
53
+ restrictedNamedExports: [
54
+ 'then', // avoid confusion when used with dynamic `import()` promise
55
+ ],
56
+ },
57
+ ],
48
58
  'no-sequences': [
49
59
  'error',
50
60
  {
@@ -106,6 +116,8 @@ module.exports = {
106
116
  groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
107
117
  },
108
118
  ],
119
+ // See https://gitlab.com/gitlab-org/frontend/eslint-plugin/-/issues/52.
120
+ 'vue/component-api-style': ['error', ['options']],
109
121
  // BEGIN rules to aid migration from Vue 2.x to 3.x.
110
122
  // See https://gitlab.com/groups/gitlab-org/-/epics/3174 for more details.
111
123
  '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": "12.2.0",
3
+ "version": "13.0.0",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -36,7 +36,7 @@
36
36
  "eslint-config-airbnb-base": "^15.0.0",
37
37
  "eslint-config-prettier": "^6.10.0",
38
38
  "eslint-plugin-babel": "^5.3.0",
39
- "eslint-plugin-import": "^2.25.2",
39
+ "eslint-plugin-import": "^2.26.0",
40
40
  "eslint-plugin-jest": "^23.8.2",
41
41
  "eslint-plugin-promise": "^4.2.1",
42
42
  "eslint-plugin-unicorn": "^40.1.0",