build: refine eslint configuration
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Oct 2023 15:15:03 +0000 (17:15 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 5 Oct 2023 15:15:03 +0000 (17:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.eslintrc.js

index a95cf1ae1ee0e2696294e2d3516acac166b298de..7f96f5872143cbf5807a809f45630f64a8a6fbce 100644 (file)
@@ -132,7 +132,7 @@ module.exports = defineConfig({
     {
       files: ['examples/typescript/**/*.ts'],
       rules: {
-        'import/no-unresolved': 'off',
+        'import/no-unresolved': ['error', { ignore: ['^poolifier$'] }],
         '@typescript-eslint/no-unsafe-argument': 'off',
         '@typescript-eslint/no-unsafe-call': 'off',
         '@typescript-eslint/no-unsafe-return': 'off',
@@ -164,7 +164,6 @@ module.exports = defineConfig({
     {
       files: ['examples/javascript/**/*.js'],
       rules: {
-        'n/no-missing-require': 'off',
         'jsdoc/require-jsdoc': 'off'
       }
     }