build(deps-dev): apply updates
[poolifier.git] / eslint.config.js
index 8a100a1a51fce7e7377972a62362ed32f6a6e5fc..a736889210e5a3de77eae0564d0bdf1fb7c8cd85 100644 (file)
@@ -17,6 +17,17 @@ export default defineFlatConfig([
   js.configs.recommended,
   ...nodePlugin.configs['flat/mixed-esm-and-cjs'],
   jsdoc.configs['flat/recommended-typescript'],
+  {
+    rules: {
+      'jsdoc/check-tag-names': [
+        'warn',
+        {
+          typed: true,
+          definedTags: ['defaultValue', 'experimental', 'typeParam'],
+        },
+      ],
+    },
+  },
   ...tseslint.config(
     ...tseslint.configs.strictTypeChecked,
     ...tseslint.configs.stylisticTypeChecked
@@ -76,12 +87,18 @@ export default defineFlatConfig([
     ...tseslint.configs.disableTypeChecked,
   },
   // examples specific configuration
-  // {
-  //   files: ['examples/**/*.ts'],
-  //   rules: {
-  //     'no-undef': 'off',
-  //   },
-  // },
+  {
+    files: ['examples/**/*.ts'],
+    rules: {
+      '@typescript-eslint/no-unsafe-argument': 'off',
+      '@typescript-eslint/no-unsafe-call': 'off',
+      '@typescript-eslint/no-unsafe-return': 'off',
+      '@typescript-eslint/no-unsafe-assignment': 'off',
+      '@typescript-eslint/no-unsafe-member-access': 'off',
+      '@typescript-eslint/no-unnecessary-type-assertion': 'off',
+      '@typescript-eslint/no-redundant-type-constituents': 'off',
+    },
+  },
   {
     files: ['examples/**/*.js', 'examples/**/*.cjs'],
     rules: {