Skip to content

Commit b87b4ca

Browse files
committed
chore: fix types
1 parent 44e5025 commit b87b4ca

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

packages/compat-tslint/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import type * as TSSLint from '@tsslint/types';
22
import type { IOptions, IRule, IRuleMetadata, ITypedRule } from 'tslint';
33
import type * as ts from 'typescript';
44

5+
export type * from 'tslint';
6+
57
export function convertRule(
68
Rule: {
79
metadata?: IRuleMetadata;

packages/config/lib/eslint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Severity = boolean | 'error' | 'warn';
5252
* If the type definitions become outdated, please run `npx tsslint-config-update` to update them.
5353
*/
5454
export async function importESLintRules(
55-
config: { [K in keyof ESLintRulesConfig]: Severity | [Severity, ESLintRulesConfig[K]] },
55+
config: { [K in keyof ESLintRulesConfig]: Severity | [Severity, ...ESLintRulesConfig[K]] },
5656
context: Partial<ESLint.Rule.RuleContext> = {},
5757
) {
5858
let convertRule: typeof import('@tsslint/compat-eslint').convertRule;

packages/config/lib/tslint-gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
3-
import type { IRuleMetadata, RuleConstructor } from 'tslint';
3+
import type { IRuleMetadata, RuleConstructor } from '@tsslint/compat-tslint';
44
import { getTSLintRulesDirectories } from './tslint';
55

66
const variableNameRegex = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;

packages/config/lib/tslint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type Severity = boolean | 'error' | 'warn';
2828
* If the type definitions become outdated, please run `npx tsslint-config-update` to update them.
2929
*/
3030
export async function importTSLintRules(
31-
config: { [K in keyof TSLintRulesConfig]: Severity | [Severity, TSLintRulesConfig[K]] },
31+
config: { [K in keyof TSLintRulesConfig]: Severity | [Severity, ...TSLintRulesConfig[K]] },
3232
) {
3333
let convertRule: typeof import('@tsslint/compat-tslint').convertRule;
3434
try {

tsslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig, importESLintRules } from '@tsslint/config';
22

33
export default defineConfig({
44
rules: await importESLintRules({
5-
'@typescript-eslint/consistent-type-imports': [{
5+
'@typescript-eslint/consistent-type-imports': [true, {
66
disallowTypeAnnotations: false,
77
fixStyle: 'inline-type-imports',
88
}],

0 commit comments

Comments
 (0)