-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathindex.ts
41 lines (38 loc) · 939 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import type { RuleModule } from './types';
import { rules as ruleList } from './utils/rules';
import base from './configs/base';
import recommended from './configs/recommended';
import prettier from './configs/prettier';
import all from './configs/all';
import flatBase from './configs/flat/base';
import flatRecommended from './configs/flat/recommended';
import flatPrettier from './configs/flat/prettier';
import flatAll from './configs/flat/all';
import * as processor from './processor';
import * as meta from './meta';
const configs = {
base,
recommended,
prettier,
all,
'flat/base': flatBase,
'flat/recommended': flatRecommended,
'flat/prettier': flatPrettier,
'flat/all': flatAll
};
const rules = ruleList.reduce(
(obj, r) => {
obj[r.meta.docs.ruleName] = r;
return obj;
},
{} as { [key: string]: RuleModule }
);
export = {
meta,
configs,
rules,
processors: {
'.svelte': processor,
svelte: processor
}
};