Skip to content

Commit 99ed1c9

Browse files
committed
feat: enhance no-aliased-imports rule with TypeScript typings and configuration options
changed package.json name to @matrixai/eslint-plugin
1 parent 94494d9 commit 99ed1c9

13 files changed

+2150
-5814
lines changed

lib/index.d.ts

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1-
import { noAliasedImportsRule } from './rules/no-aliased-imports.js';
2-
export { noAliasedImportsRule, };
1+
export declare const rules: {
2+
'no-aliased-imports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAlias" | "noAliasNoAutofix", [{
3+
aliases: {
4+
prefix: string;
5+
target: string;
6+
}[];
7+
includeFolders: string[];
8+
autoFix: boolean;
9+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
10+
};
11+
export declare const configs: {
12+
recommended: {
13+
plugins: string[];
14+
rules: {
15+
'custom/no-aliased-imports': (string | {
16+
aliases: {
17+
prefix: string;
18+
target: string;
19+
}[];
20+
includeFolders: string[];
21+
autoFix: boolean;
22+
})[];
23+
};
24+
};
25+
};
326
//# sourceMappingURL=index.d.ts.map

lib/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

lib/index.js

+15-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rules/no-aliased-imports.d.ts

+6-51
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,13 @@
1-
export declare const noAliasedImportsRule: {
2-
meta: {
3-
type: string;
4-
fixable: string;
5-
hasSuggestions: boolean;
6-
schema: {
7-
type: string;
8-
properties: {
9-
aliases: {
10-
type: string;
11-
items: {
12-
type: string;
13-
properties: {
14-
prefix: {
15-
type: string;
16-
};
17-
target: {
18-
type: string;
19-
};
20-
};
21-
required: string[];
22-
};
23-
default: {
24-
prefix: string;
25-
target: string;
26-
}[];
27-
};
28-
includeFolders: {
29-
type: string;
30-
items: {
31-
type: string;
32-
};
33-
default: string[];
34-
};
35-
autoFix: {
36-
type: string;
37-
};
38-
};
39-
additionalProperties: boolean;
40-
}[];
41-
messages: {
42-
noAlias: string;
43-
noAliasNoAutofix: string;
44-
};
45-
};
46-
defaultOptions: {
1+
import type { RuleModule } from '@typescript-eslint/utils/ts-eslint';
2+
export declare const noAliasedImportsRule: RuleModule<'noAlias' | 'noAliasNoAutofix', [
3+
{
474
aliases: {
485
prefix: string;
496
target: string;
507
}[];
518
includeFolders: string[];
529
autoFix: boolean;
53-
}[];
54-
create(context: any): {
55-
ImportDeclaration(node: any): void;
56-
};
57-
};
10+
}
11+
]>;
12+
export default noAliasedImportsRule;
5813
//# sourceMappingURL=no-aliased-imports.d.ts.map

lib/rules/no-aliased-imports.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

lib/rules/no-aliased-imports.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/rules/no-aliased-imports.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tsbuildinfo

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)