-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-pushup.config.ts
More file actions
28 lines (25 loc) · 831 Bytes
/
code-pushup.config.ts
File metadata and controls
28 lines (25 loc) · 831 Bytes
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
/**DEPENDENCIES*/
import type { CoreConfig } from '@code-pushup/models';
import eslintPlugin, { eslintConfigFromAllNxProjects } from '@code-pushup/eslint-plugin';
export const eslintCategories: any[] = [
{
slug: 'bug-prevention',
title: 'Bug prevention',
description: 'Lint rules that find **potential bugs** in your code.',
refs: [{ type: 'group', plugin: 'eslint', slug: 'problems', weight: 1 }],
},
{
slug: 'code-style',
title: 'Code style',
description:
'Lint rules that promote **good practices** and consistency in your code.',
refs: [{ type: 'group', plugin: 'eslint', slug: 'suggestions', weight: 1 }],
},
];
const config: CoreConfig = {
plugins: [
await eslintPlugin(await eslintConfigFromAllNxProjects())
],
categories:eslintCategories
};
export default config;