@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 +6 -0
- package/dist/cjs/rules/utils/is-node.js +3 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/rules/utils/is-node.js +3 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/rules/utils/is-node.js +3 -2
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
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
|
-
|
|
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);
|
package/dist/cjs/version.json
CHANGED
|
@@ -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
|
-
|
|
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
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -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
|
-
|
|
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);
|
package/dist/esm/version.json
CHANGED