eslint-plugin-unicorn 28.0.1 → 28.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-unicorn",
3
- "version": "28.0.1",
3
+ "version": "28.0.2",
4
4
  "description": "Various awesome ESLint rules",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/eslint-plugin-unicorn",
@@ -63,7 +63,7 @@
63
63
  "eslint": "^7.15.0",
64
64
  "eslint-ava-rule-tester": "^4.0.0",
65
65
  "eslint-plugin-eslint-plugin": "^2.3.0",
66
- "eslint-remote-tester": "^0.4.0",
66
+ "eslint-remote-tester": "^1.1.0",
67
67
  "execa": "^5.0.0",
68
68
  "listr": "^0.14.3",
69
69
  "mem": "8.0.0",
@@ -424,6 +424,20 @@ const isExportedIdentifier = identifier => {
424
424
  return identifier.parent.parent.type === 'ExportNamedDeclaration';
425
425
  }
426
426
 
427
+ if (
428
+ identifier.parent.type === 'TSTypeAliasDeclaration' &&
429
+ identifier.parent.id === identifier
430
+ ) {
431
+ return identifier.parent.parent.type === 'ExportNamedDeclaration';
432
+ }
433
+
434
+ if (
435
+ identifier.parent.type === 'TypeAlias' &&
436
+ identifier.parent.id === identifier
437
+ ) {
438
+ return identifier.parent.parent.type === 'ExportNamedDeclaration';
439
+ }
440
+
427
441
  return false;
428
442
  };
429
443