fix(ci): silence linter, take 2
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 May 2024 20:36:42 +0000 (22:36 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 May 2024 20:36:42 +0000 (22:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js

index 0f1bd02ecf18c283f5e7ba53cac1b3ffcaf96699..88be9a702a785dd526601325f3920ebad77572c8 100644 (file)
@@ -47,7 +47,12 @@ export default defineFlatConfig([
     files: ['examples/**/*.js', 'examples/**/*.cjs'],
     rules: {
       'no-undef': 'off',
-      'n/no-missing-import': 'off',
+      'n/no-missing-import': [
+        'error',
+        {
+          allowModules: ['ws'],
+        },
+      ],
       '@typescript-eslint/no-require-imports': 'off',
     },
   },