Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit a9af0a3

Browse files
committed
Update import rules
1 parent 2b9923a commit a9af0a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+134
-138
lines changed

src/rules/import/consistent-type-specifier-style.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ export type ConsistentTypeSpecifierStyleOptions = [
1717
/**
1818
* Enforce or ban the use of inline type-only markers for named imports.
1919
*
20-
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/consistent-type-specifier-style.md)
20+
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/consistent-type-specifier-style.md)
2121
*/
2222
export type ConsistentTypeSpecifierStyleRuleConfig =
2323
RuleConfig<ConsistentTypeSpecifierStyleOptions>;
2424

2525
/**
2626
* Enforce or ban the use of inline type-only markers for named imports.
2727
*
28-
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/consistent-type-specifier-style.md)
28+
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/consistent-type-specifier-style.md)
2929
*/
3030
export interface ConsistentTypeSpecifierStyleRule {
3131
/**
3232
* Enforce or ban the use of inline type-only markers for named imports.
3333
*
34-
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/consistent-type-specifier-style.md)
34+
* @see [consistent-type-specifier-style](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/consistent-type-specifier-style.md)
3535
*/
3636
'import/consistent-type-specifier-style': ConsistentTypeSpecifierStyleRuleConfig;
3737
}

src/rules/import/default.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Ensure a default export is present, given a default import.
55
*
6-
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/default.md)
6+
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/default.md)
77
*/
88
export type DefaultRuleConfig = RuleConfig<[]>;
99

1010
/**
1111
* Ensure a default export is present, given a default import.
1212
*
13-
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/default.md)
13+
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/default.md)
1414
*/
1515
export interface DefaultRule {
1616
/**
1717
* Ensure a default export is present, given a default import.
1818
*
19-
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/default.md)
19+
* @see [default](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/default.md)
2020
*/
2121
'import/default': DefaultRuleConfig;
2222
}

src/rules/import/dynamic-import-chunkname.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ export type DynamicImportChunknameOptions = [DynamicImportChunknameOption?];
1717
/**
1818
* Enforce a leading comment with the webpackChunkName for dynamic imports.
1919
*
20-
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/dynamic-import-chunkname.md)
20+
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/dynamic-import-chunkname.md)
2121
*/
2222
export type DynamicImportChunknameRuleConfig =
2323
RuleConfig<DynamicImportChunknameOptions>;
2424

2525
/**
2626
* Enforce a leading comment with the webpackChunkName for dynamic imports.
2727
*
28-
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/dynamic-import-chunkname.md)
28+
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/dynamic-import-chunkname.md)
2929
*/
3030
export interface DynamicImportChunknameRule {
3131
/**
3232
* Enforce a leading comment with the webpackChunkName for dynamic imports.
3333
*
34-
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/dynamic-import-chunkname.md)
34+
* @see [dynamic-import-chunkname](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/dynamic-import-chunkname.md)
3535
*/
3636
'import/dynamic-import-chunkname': DynamicImportChunknameRuleConfig;
3737
}

src/rules/import/export.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Forbid any invalid exports, i.e. re-export of the same name.
55
*
6-
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/export.md)
6+
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/export.md)
77
*/
88
export type ExportRuleConfig = RuleConfig<[]>;
99

1010
/**
1111
* Forbid any invalid exports, i.e. re-export of the same name.
1212
*
13-
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/export.md)
13+
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/export.md)
1414
*/
1515
export interface ExportRule {
1616
/**
1717
* Forbid any invalid exports, i.e. re-export of the same name.
1818
*
19-
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/export.md)
19+
* @see [export](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/export.md)
2020
*/
2121
'import/export': ExportRuleConfig;
2222
}

src/rules/import/exports-last.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Ensure all exports appear after other statements.
55
*
6-
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/exports-last.md)
6+
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/exports-last.md)
77
*/
88
export type ExportsLastRuleConfig = RuleConfig<[]>;
99

1010
/**
1111
* Ensure all exports appear after other statements.
1212
*
13-
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/exports-last.md)
13+
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/exports-last.md)
1414
*/
1515
export interface ExportsLastRule {
1616
/**
1717
* Ensure all exports appear after other statements.
1818
*
19-
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/exports-last.md)
19+
* @see [exports-last](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/exports-last.md)
2020
*/
2121
'import/exports-last': ExportsLastRuleConfig;
2222
}

src/rules/import/extensions.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ export type ExtensionsOptions = ExtensionsOption;
5959
/**
6060
* Ensure consistent use of file extension within the import path.
6161
*
62-
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/extensions.md)
62+
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/extensions.md)
6363
*/
6464
export type ExtensionsRuleConfig = RuleConfig<ExtensionsOptions>;
6565

6666
/**
6767
* Ensure consistent use of file extension within the import path.
6868
*
69-
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/extensions.md)
69+
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/extensions.md)
7070
*/
7171
export interface ExtensionsRule {
7272
/**
7373
* Ensure consistent use of file extension within the import path.
7474
*
75-
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/extensions.md)
75+
* @see [extensions](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/extensions.md)
7676
*/
7777
'import/extensions': ExtensionsRuleConfig;
7878
}

src/rules/import/first.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ export type FirstOptions = [FirstOption?];
1313
/**
1414
* Ensure all imports appear before other statements.
1515
*
16-
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/first.md)
16+
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/first.md)
1717
*/
1818
export type FirstRuleConfig = RuleConfig<FirstOptions>;
1919

2020
/**
2121
* Ensure all imports appear before other statements.
2222
*
23-
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/first.md)
23+
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/first.md)
2424
*/
2525
export interface FirstRule {
2626
/**
2727
* Ensure all imports appear before other statements.
2828
*
29-
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/first.md)
29+
* @see [first](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/first.md)
3030
*/
3131
'import/first': FirstRuleConfig;
3232
}

src/rules/import/group-exports.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ import type { RuleConfig } from '../rule-config';
33
/**
44
* Prefer named exports to be grouped together in a single export declaration.
55
*
6-
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/group-exports.md)
6+
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/group-exports.md)
77
*/
88
export type GroupExportsRuleConfig = RuleConfig<[]>;
99

1010
/**
1111
* Prefer named exports to be grouped together in a single export declaration.
1212
*
13-
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/group-exports.md)
13+
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/group-exports.md)
1414
*/
1515
export interface GroupExportsRule {
1616
/**
1717
* Prefer named exports to be grouped together in a single export declaration.
1818
*
19-
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/group-exports.md)
19+
* @see [group-exports](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/group-exports.md)
2020
*/
2121
'import/group-exports': GroupExportsRuleConfig;
2222
}

src/rules/import/max-dependencies.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ export type MaxDependenciesOptions = [MaxDependenciesOption?];
1616
/**
1717
* Enforce the maximum number of dependencies a module can have.
1818
*
19-
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/max-dependencies.md)
19+
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/max-dependencies.md)
2020
*/
2121
export type MaxDependenciesRuleConfig = RuleConfig<MaxDependenciesOptions>;
2222

2323
/**
2424
* Enforce the maximum number of dependencies a module can have.
2525
*
26-
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/max-dependencies.md)
26+
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/max-dependencies.md)
2727
*/
2828
export interface MaxDependenciesRule {
2929
/**
3030
* Enforce the maximum number of dependencies a module can have.
3131
*
32-
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/max-dependencies.md)
32+
* @see [max-dependencies](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/max-dependencies.md)
3333
*/
3434
'import/max-dependencies': MaxDependenciesRuleConfig;
3535
}

src/rules/import/named.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ export type NamedOptions = [NamedOption?];
1515
/**
1616
* Ensure named imports correspond to a named export in the remote file.
1717
*
18-
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/named.md)
18+
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/named.md)
1919
*/
2020
export type NamedRuleConfig = RuleConfig<NamedOptions>;
2121

2222
/**
2323
* Ensure named imports correspond to a named export in the remote file.
2424
*
25-
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/named.md)
25+
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/named.md)
2626
*/
2727
export interface NamedRule {
2828
/**
2929
* Ensure named imports correspond to a named export in the remote file.
3030
*
31-
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/named.md)
31+
* @see [named](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/named.md)
3232
*/
3333
'import/named': NamedRuleConfig;
3434
}

0 commit comments

Comments
 (0)