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

Commit 4492acf

Browse files
committed
Organize file structure
1 parent e9af962 commit 4492acf

File tree

7 files changed

+52
-50
lines changed

7 files changed

+52
-50
lines changed

src/env.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
*
3+
*/
4+
export interface Env {
5+
es6?: boolean;
6+
node?: boolean;
7+
}

src/index.ts

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,8 @@
1-
import { EslintRules } from './rules/eslint';
2-
import { RuleConfig } from './rules/rule-config';
3-
4-
/**
5-
*
6-
*/
7-
export interface Env {
8-
es6?: boolean;
9-
node?: boolean;
10-
}
11-
12-
/**
13-
*
14-
*/
15-
export interface ParserOptions {
16-
sourceType?: 'module' | '...';
17-
ecmaVersion?: 2020;
18-
project?: any;
19-
warnOnUnsupportedTypeScriptVersion?: boolean;
20-
}
21-
22-
/**
23-
*
24-
*/
25-
export type Rules = Partial<EslintRules> & Partial<Record<string, RuleConfig>>;
26-
27-
/**
28-
*
29-
*/
30-
export interface Override {
31-
files: string[];
32-
rules: Rules;
33-
}
34-
35-
/**
36-
*
37-
*/
38-
export type Overrides = Array<Override>;
39-
40-
/**
41-
*
42-
*/
43-
export interface Settings {
44-
jsdoc?: {
45-
mode: string;
46-
};
47-
}
1+
import type { Env } from './env';
2+
import type { Overrides } from './overrides';
3+
import type { ParserOptions } from './parser-options';
4+
import type { Rules } from './rules';
5+
import type { Settings } from './settings';
486

497
/**
508
*

src/overrides.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Rules } from './rules';
2+
3+
/**
4+
*
5+
*/
6+
export interface Override {
7+
files: string[];
8+
rules: Rules;
9+
}
10+
11+
/**
12+
*
13+
*/
14+
export type Overrides = Array<Override>;

src/parser-options.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
*
3+
*/
4+
export interface ParserOptions {
5+
sourceType?: 'module' | '...';
6+
ecmaVersion?: 2020;
7+
project?: any;
8+
warnOnUnsupportedTypeScriptVersion?: boolean;
9+
}

src/rules/eslint/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { NoDebuggerRule } from './no-debugger';
2-
import { QuotesRule } from './quotes';
3-
import { SemiRule } from './semi';
1+
import type { NoDebuggerRule } from './no-debugger';
2+
import type { QuotesRule } from './quotes';
3+
import type { SemiRule } from './semi';
44

55
/**
66
*

src/rules/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { EslintRules } from './eslint';
2+
import type { RuleConfig } from './rule-config';
3+
4+
/**
5+
*
6+
*/
7+
export type Rules = Partial<EslintRules> & Partial<Record<string, RuleConfig>>;

src/settings.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
*
3+
*/
4+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
5+
export interface Settings extends Partial<Record<string, unknown>> {
6+
//
7+
}

0 commit comments

Comments
 (0)