Skip to content

Commit 7426197

Browse files
authored
ignorer knip warnings på to kodeverk (#3831)
* ignorer knip warnings på to kodeverk * igonrer eslint default export i knip
1 parent 8ab374c commit 7426197

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

knip.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { KnipConfig } from 'knip';
2+
3+
const config: KnipConfig = {
4+
ignore: [
5+
'packages/prosess-beregningsgrunnlag/src/kodeverk/vilkarType.ts',
6+
'packages/fakta-beregning/src/kodeverk/organisasjonstype.ts',
7+
],
8+
};
9+
10+
export default config;

packages/internal/config-eslint/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default [
9696
},
9797
},
9898
{
99-
ignores: ['**/*.stories.tsx', 'eslint.config.mjs', '.storybook/**/*'],
99+
ignores: ['**/*.stories.tsx', 'eslint.config.mjs', '.storybook/**/*', 'knip.ts'],
100100
rules: {
101101
'import/no-default-export': ERROR,
102102
},

0 commit comments

Comments
 (0)