refactor: reorder eslint flat configuration
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 May 2024 15:10:58 +0000 (17:10 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 May 2024 15:10:58 +0000 (17:10 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js

index 642bf9dbf505a32cdae26c2472928cbcb9e8129d..89a020690f0d9c46096df00c98849dafc59f914f 100644 (file)
@@ -8,14 +8,8 @@ import globals from 'globals'
 import neostandard from 'neostandard'
 
 export default defineFlatConfig([
-  ...neostandard({
-    globals: {
-      ...globals.node,
-    },
-  }),
   js.configs.recommended,
   nodePlugin.configs['flat/recommended'],
-  jsdoc.configs['flat/recommended'],
   {
     plugins: {
       'simple-import-sort': simpleImportSort,
@@ -25,4 +19,10 @@ export default defineFlatConfig([
       'simple-import-sort/exports': 'error',
     },
   },
+  jsdoc.configs['flat/recommended'],
+  ...neostandard({
+    globals: {
+      ...globals.node,
+    },
+  }),
 ])