Skip to content

Commit 0378671

Browse files
committed
refactor: wip
1 parent 70f79f2 commit 0378671

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

e2e/plugin-knip-e2e/tests/__snapshots__/collect.e2e.test.ts.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exports[`PLUGIN collect report with knip-plugin NPM package > should run plugin
5757
{
5858
"description": "Namespace with export is referenced, but not export itself",
5959
"docsUrl": "https://knip.dev/guides/handling-issues#nsExports",
60-
"slug": "nsexports",
60+
"slug": "ns-exports",
6161
"title": "Exports in used namespace",
6262
},
6363
{
@@ -69,19 +69,19 @@ exports[`PLUGIN collect report with knip-plugin NPM package > should run plugin
6969
{
7070
"description": "Namespace with type is referenced, but not type itself",
7171
"docsUrl": "https://knip.dev/guides/handling-issues#nsTypes",
72-
"slug": "nstypes",
72+
"slug": "ns-types",
7373
"title": "Exported types in used namespace",
7474
},
7575
{
7676
"description": "Unable to find a reference to this enum member",
7777
"docsUrl": "https://knip.dev/guides/handling-issues#enumMembers",
78-
"slug": "enummembers",
78+
"slug": "enum-members",
7979
"title": "Unused exported enum members",
8080
},
8181
{
8282
"description": "Unable to find a reference to this class member",
8383
"docsUrl": "https://knip.dev/guides/handling-issues#classMembers",
84-
"slug": "classmembers",
84+
"slug": "class-members",
8585
"title": "Unused exported class members",
8686
},
8787
{
@@ -120,19 +120,19 @@ exports[`PLUGIN collect report with knip-plugin NPM package > should run plugin
120120
"weight": 10,
121121
},
122122
{
123-
"slug": "nsexports",
123+
"slug": "ns-exports",
124124
"weight": 10,
125125
},
126126
{
127-
"slug": "nstypes",
127+
"slug": "ns-types",
128128
"weight": 10,
129129
},
130130
{
131-
"slug": "enummembers",
131+
"slug": "enum-members",
132132
"weight": 10,
133133
},
134134
{
135-
"slug": "classmembers",
135+
"slug": "class-members",
136136
"weight": 10,
137137
},
138138
{
@@ -190,19 +190,19 @@ exports[`PLUGIN collect report with knip-plugin NPM package > should run plugin
190190
"weight": 10,
191191
},
192192
{
193-
"slug": "nsexports",
193+
"slug": "ns-exports",
194194
"weight": 10,
195195
},
196196
{
197-
"slug": "nstypes",
197+
"slug": "ns-types",
198198
"weight": 10,
199199
},
200200
{
201-
"slug": "enummembers",
201+
"slug": "enum-members",
202202
"weight": 10,
203203
},
204204
{
205-
"slug": "classmembers",
205+
"slug": "class-members",
206206
"weight": 10,
207207
},
208208
{

packages/plugin-knip/src/lib/constants.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,25 @@ const audits = [
6161
docsUrl: 'https://knip.dev/guides/handling-issues#types',
6262
},
6363
{
64-
slug: 'nsexports',
64+
slug: 'ns-exports',
6565
title: 'Exports in used namespace',
6666
description: 'Namespace with export is referenced, but not export itself',
6767
docsUrl: 'https://knip.dev/guides/handling-issues#nsExports',
6868
},
6969
{
70-
slug: 'nstypes',
70+
slug: 'ns-types',
7171
title: 'Exported types in used namespace',
7272
description: 'Namespace with type is referenced, but not type itself',
7373
docsUrl: 'https://knip.dev/guides/handling-issues#nsTypes',
7474
},
7575
{
76-
slug: 'enummembers',
76+
slug: 'enum-members',
7777
title: 'Unused exported enum members',
7878
description: 'Unable to find a reference to this enum member',
7979
docsUrl: 'https://knip.dev/guides/handling-issues#enumMembers',
8080
},
8181
{
82-
slug: 'classmembers',
82+
slug: 'class-members',
8383
title: 'Unused exported class members',
8484
description: 'Unable to find a reference to this class member',
8585
docsUrl: 'https://knip.dev/guides/handling-issues#classMembers',
@@ -124,10 +124,10 @@ export const KNIP_GROUP_EXPORTS = {
124124
{ slug: 'unresolved', weight: 10 },
125125
{ slug: 'exports', weight: 10 },
126126
{ slug: 'types', weight: 10 },
127-
{ slug: 'nsexports', weight: 10 },
128-
{ slug: 'nstypes', weight: 10 },
129-
{ slug: 'enummembers', weight: 10 },
130-
{ slug: 'classmembers', weight: 10 },
127+
{ slug: 'ns-exports', weight: 10 },
128+
{ slug: 'ns-types', weight: 10 },
129+
{ slug: 'enum-members', weight: 10 },
130+
{ slug: 'class-members', weight: 10 },
131131
{ slug: 'duplicates', weight: 2 },
132132
],
133133
};
@@ -141,10 +141,10 @@ export const KNIP_GROUP_ALL = {
141141
{ slug: 'unresolved', weight: 10 },
142142
{ slug: 'exports', weight: 10 },
143143
{ slug: 'types', weight: 10 },
144-
{ slug: 'nsexports', weight: 10 },
145-
{ slug: 'nstypes', weight: 10 },
146-
{ slug: 'enummembers', weight: 10 },
147-
{ slug: 'classmembers', weight: 10 },
144+
{ slug: 'ns-exports', weight: 10 },
145+
{ slug: 'ns-types', weight: 10 },
146+
{ slug: 'enum-members', weight: 10 },
147+
{ slug: 'class-members', weight: 10 },
148148
{ slug: 'duplicates', weight: 2 },
149149
{ slug: 'dependencies', weight: 1 },
150150
{ slug: 'dev-dependencies', weight: 1 },

0 commit comments

Comments
 (0)