build: fix eslint configuration with type checking
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 10:14:44 +0000 (12:14 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 10:14:44 +0000 (12:14 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js

index 8666f4c4a02ac7287b1a85bf448d62f9848d8cda..e0fa23c6d758dd007f652bd2d29891d8425bfc61 100644 (file)
@@ -17,7 +17,6 @@ export default defineFlatConfig([
   js.configs.recommended,
   ...nodePlugin.configs['flat/mixed-esm-and-cjs'],
   jsdoc.configs['flat/recommended-typescript'],
-  // ...tseslint.config(...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked),
   ...tseslint.config(...tseslint.configs.strict, ...tseslint.configs.stylistic),
   ...neostandard({
     ts: true,
@@ -26,6 +25,18 @@ export default defineFlatConfig([
       ...globals.mocha,
     },
   }),
+  // ...tseslint.config(
+  //   ...tseslint.configs.strictTypeChecked,
+  //   ...tseslint.configs.stylisticTypeChecked,
+  //   {
+  //     languageOptions: {
+  //       parserOptions: {
+  //         project: true,
+  //         tsconfigRootDir: import.meta.dirname,
+  //       },
+  //     },
+  //   }
+  // ),
   {
     plugins: {
       'simple-import-sort': simpleImportSort,