@atlaskit/eslint-plugin-design-system 4.2.0 → 4.2.1

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,5 +1,11 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`63a22b17621`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63a22b17621) - Fixes a bug where use of qualified type annotations would throw an error.
8
+
3
9
  ## 4.2.0
4
10
 
5
11
  ### Minor Changes
@@ -70,8 +70,9 @@ var isDecendantOfStyleBlock = function isDecendantOfStyleBlock(node) {
70
70
 
71
71
  if ( // @ts-ignore typeAnnotation is not defined by types
72
72
  node.id.typeAnnotation && // @ts-ignore typeAnnotation is not defined by types
73
- node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation') {
74
- // @ts-ignore Name is not defined by types
73
+ node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation' && // @ts-ignore typeAnnotation is not defined by types
74
+ node.id.typeAnnotation.typeAnnotation.id.type === 'Identifier') {
75
+ // @ts-ignore typeAnnotation is not defined by types
75
76
  var typeName = node.id.typeAnnotation.typeAnnotation.id.name;
76
77
  var hasCSSType = ['CSSProperties', 'CSSObject'].some(function (el) {
77
78
  return typeName.includes(el);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -42,8 +42,9 @@ export const isDecendantOfStyleBlock = node => {
42
42
 
43
43
  if ( // @ts-ignore typeAnnotation is not defined by types
44
44
  node.id.typeAnnotation && // @ts-ignore typeAnnotation is not defined by types
45
- node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation') {
46
- // @ts-ignore Name is not defined by types
45
+ node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation' && // @ts-ignore typeAnnotation is not defined by types
46
+ node.id.typeAnnotation.typeAnnotation.id.type === 'Identifier') {
47
+ // @ts-ignore typeAnnotation is not defined by types
47
48
  const typeName = node.id.typeAnnotation.typeAnnotation.id.name;
48
49
  const hasCSSType = ['CSSProperties', 'CSSObject'].some(el => typeName.includes(el));
49
50
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -48,8 +48,9 @@ export var isDecendantOfStyleBlock = function isDecendantOfStyleBlock(node) {
48
48
 
49
49
  if ( // @ts-ignore typeAnnotation is not defined by types
50
50
  node.id.typeAnnotation && // @ts-ignore typeAnnotation is not defined by types
51
- node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation') {
52
- // @ts-ignore Name is not defined by types
51
+ node.id.typeAnnotation.typeAnnotation.type === 'GenericTypeAnnotation' && // @ts-ignore typeAnnotation is not defined by types
52
+ node.id.typeAnnotation.typeAnnotation.id.type === 'Identifier') {
53
+ // @ts-ignore typeAnnotation is not defined by types
53
54
  var typeName = node.id.typeAnnotation.typeAnnotation.id.name;
54
55
  var hasCSSType = ['CSSProperties', 'CSSObject'].some(function (el) {
55
56
  return typeName.includes(el);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"