@atlaskit/eslint-plugin-design-system 8.10.0 → 8.10.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
|
+
## 8.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41402](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41402) [`25bf22e0ad8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/25bf22e0ad8) - Add better conditional checks in internal util.
|
|
8
|
+
|
|
3
9
|
## 8.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -13,7 +13,7 @@ var getLinkItemImportName = exports.getLinkItemImportName = function getLinkItem
|
|
|
13
13
|
matchedVariable = traversingScope.variables.find(function (variable) {
|
|
14
14
|
var _variable$defs;
|
|
15
15
|
var def = (_variable$defs = variable.defs) === null || _variable$defs === void 0 ? void 0 : _variable$defs[0];
|
|
16
|
-
if (!(0, _eslintCodemodUtils.isNodeOfType)(def.node, 'ImportSpecifier') || !def.parent || !(0, _eslintCodemodUtils.isNodeOfType)(def.parent, 'ImportDeclaration')) {
|
|
16
|
+
if (!def || !(def !== null && def !== void 0 && def.node) || !(0, _eslintCodemodUtils.isNodeOfType)(def.node, 'ImportSpecifier') || !def.parent || !(0, _eslintCodemodUtils.isNodeOfType)(def.parent, 'ImportDeclaration')) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
return def.parent.source.value === '@atlaskit/menu' && def.node.imported.name === 'LinkItem';
|
|
@@ -7,7 +7,7 @@ export const getLinkItemImportName = scope => {
|
|
|
7
7
|
matchedVariable = traversingScope.variables.find(variable => {
|
|
8
8
|
var _variable$defs;
|
|
9
9
|
const def = (_variable$defs = variable.defs) === null || _variable$defs === void 0 ? void 0 : _variable$defs[0];
|
|
10
|
-
if (!isNodeOfType(def.node, 'ImportSpecifier') || !def.parent || !isNodeOfType(def.parent, 'ImportDeclaration')) {
|
|
10
|
+
if (!def || !(def !== null && def !== void 0 && def.node) || !isNodeOfType(def.node, 'ImportSpecifier') || !def.parent || !isNodeOfType(def.parent, 'ImportDeclaration')) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
return def.parent.source.value === '@atlaskit/menu' && def.node.imported.name === 'LinkItem';
|
|
@@ -7,7 +7,7 @@ export var getLinkItemImportName = function getLinkItemImportName(scope) {
|
|
|
7
7
|
matchedVariable = traversingScope.variables.find(function (variable) {
|
|
8
8
|
var _variable$defs;
|
|
9
9
|
var def = (_variable$defs = variable.defs) === null || _variable$defs === void 0 ? void 0 : _variable$defs[0];
|
|
10
|
-
if (!isNodeOfType(def.node, 'ImportSpecifier') || !def.parent || !isNodeOfType(def.parent, 'ImportDeclaration')) {
|
|
10
|
+
if (!def || !(def !== null && def !== void 0 && def.node) || !isNodeOfType(def.node, 'ImportSpecifier') || !def.parent || !isNodeOfType(def.parent, 'ImportDeclaration')) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
return def.parent.source.value === '@atlaskit/menu' && def.node.imported.name === 'LinkItem';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-design-system",
|
|
3
3
|
"description": "The essential plugin for use with the Atlassian Design System.",
|
|
4
|
-
"version": "8.10.
|
|
4
|
+
"version": "8.10.1",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|