Skip to content

Commit 8b3fec2

Browse files
committed
ci: catch mistaken logger imports with eslint
1 parent f71a73c commit 8b3fec2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,21 @@ export default tseslint.config(
146146
'**/*.md',
147147
],
148148
},
149+
{
150+
files: ['packages/**/*.ts'],
151+
rules: {
152+
'no-restricted-imports': [
153+
'error',
154+
{
155+
paths: [
156+
{
157+
name: '@nx/devkit',
158+
importNames: ['logger'],
159+
message: 'Please use logger from @code-pushup/utils instead.',
160+
},
161+
],
162+
},
163+
],
164+
},
165+
},
149166
);

0 commit comments

Comments
 (0)