Skip to content

Commit 5e5f39b

Browse files
authored
fix: add missing types for no-restricted-exports rule (#18914)
1 parent e4e5709 commit 5e5f39b

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

lib/types/rules/ecmascript-6.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,52 @@ export interface ECMAScript6 extends Linter.RulesRecord {
231231
*/
232232
"no-new-symbol": Linter.RuleEntry<[]>;
233233

234+
/**
235+
* Rule to disallow specified names in exports.
236+
*
237+
* @since 7.0.0-alpha.0
238+
* @see https://eslint.org/docs/rules/no-restricted-exports
239+
*/
240+
"no-restricted-exports": Linter.RuleEntry<
241+
[
242+
Partial<{
243+
/**
244+
* @default []
245+
*/
246+
restrictedNamedExports: string[];
247+
/**
248+
* @since 9.3.0
249+
*/
250+
restrictedNamedExportsPattern: string;
251+
/**
252+
* @since 8.33.0
253+
*/
254+
restrictDefaultExports: Partial<{
255+
/**
256+
* @default false
257+
*/
258+
direct: boolean;
259+
/**
260+
* @default false
261+
*/
262+
named: boolean;
263+
/**
264+
* @default false
265+
*/
266+
defaultFrom: boolean;
267+
/**
268+
* @default false
269+
*/
270+
namedFrom: boolean;
271+
/**
272+
* @default false
273+
*/
274+
namespaceFrom: boolean;
275+
}>;
276+
}>,
277+
]
278+
>;
279+
234280
/**
235281
* Rule to disallow specified modules when loaded by `import`.
236282
*

0 commit comments

Comments
 (0)