-
Notifications
You must be signed in to change notification settings - Fork 618
/
Copy pathindex.ts
34 lines (30 loc) · 989 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
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import type { TSESLint } from '@typescript-eslint/utils';
import { mechanics } from './mechanics';
import { circularDeps } from './circular-deps';
import { readme } from './readme';
interface IPlugin {
rules: { [ruleName: string]: TSESLint.RuleModule<string, unknown[]> };
configs: { [ruleName: string]: unknown };
}
const plugin: IPlugin = {
rules: {
// Full name: "@rushstack/packlets/mechanics"
mechanics: mechanics,
// Full name: "@rushstack/packlets/circular-deps"
'circular-deps': circularDeps,
readme: readme
},
configs: {
recommended: {
plugins: ['@rushstack/eslint-plugin-packlets'],
rules: {
'@rushstack/packlets/mechanics': 'warn',
'@rushstack/packlets/circular-deps': 'warn',
'@rushstack/packlets/readme': 'off'
}
}
}
};
export = plugin;