chore: refine eslint configuration
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Nov 2024 12:48:13 +0000 (13:48 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 18 Nov 2024 12:48:13 +0000 (13:48 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js

index 0cde6984759325bbb193cdf715ff44e06ec9f9e6..3ee0cc3403ac95c169c4fa9dfd2b1b78569762ba 100644 (file)
@@ -11,6 +11,27 @@ export default defineFlatConfig([
     ignores: ['docs/**', '**/dist/**', 'lib/**', 'outputs/**'],
   },
   cspellConfigs.recommended,
+  {
+    rules: {
+      '@cspell/spellchecker': [
+        'warn',
+        {
+          autoFix: true,
+          cspell: {
+            words: [
+              'Alessandro',
+              'Ardizio',
+              'Benoit',
+              'IWRR',
+              'Quadflieg',
+              'neostandard',
+              'poolifier',
+            ],
+          },
+        },
+      ],
+    },
+  },
   js.configs.recommended,
   plugins.promise.configs['flat/recommended'],
   ...plugins.n.configs['flat/mixed-esm-and-cjs'],
@@ -44,27 +65,6 @@ export default defineFlatConfig([
       ...plugins['typescript-eslint'].configs.disableTypeChecked,
     }
   ),
-  {
-    rules: {
-      '@cspell/spellchecker': [
-        'warn',
-        {
-          autoFix: true,
-          cspell: {
-            words: [
-              'Alessandro',
-              'Ardizio',
-              'Benoit',
-              'IWRR',
-              'Quadflieg',
-              'neostandard',
-              'poolifier',
-            ],
-          },
-        },
-      ],
-    },
-  },
   perfectionist.configs['recommended-natural'],
   ...neostandard({
     globals: {