We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
prevent-abbreviations
1 parent 5c08932 commit 9a91a3dCopy full SHA for 9a91a3d
rules/prevent-abbreviations.js
@@ -431,6 +431,13 @@ const isExportedIdentifier = identifier => {
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
+
441
return false;
442
};
443
test/prevent-abbreviations.js
@@ -1880,7 +1880,7 @@ runTest.babelLegacy({
1880
export type PreloadProps<TExtraProps = null> = {};
1881
`,
1882
output: outdent`
1883
- export type PreloadProperties<TExtraProperties = null> = {};
+ export type PreloadProps<TExtraProperties = null> = {};
1884
1885
errors: [...createErrors(), ...createErrors()]
1886
0 commit comments