]> Piment Noir Git Repositories - poolifier.git/commitdiff
chore: switch to eslint defineConfig
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 12 Mar 2025 13:43:35 +0000 (14:43 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 12 Mar 2025 13:43:35 +0000 (14:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js
package.json
pnpm-lock.yaml

index ba26a3f6c9314039574018ae17c4820533b06eae..35a8cfeaf774b1b9439ba7aef7a1747219d47df1 100644 (file)
@@ -1,12 +1,12 @@
 import cspellConfigs from '@cspell/eslint-plugin/configs'
 import js from '@eslint/js'
-import { defineFlatConfig } from 'eslint-define-config'
 import jsdoc from 'eslint-plugin-jsdoc'
 import perfectionist from 'eslint-plugin-perfectionist'
+import { defineConfig } from 'eslint/config'
 import globals from 'globals'
 import neostandard, { plugins } from 'neostandard'
 
-export default defineFlatConfig([
+export default defineConfig([
   {
     ignores: ['docs/**', '**/dist/**', 'lib/**', 'outputs/**'],
   },
index 31517f2d65f4dfbee15a7d677f71a036eda036ec..76be27ba98e61ecc38dab8582c9db01335c7189e 100644 (file)
     "clean-publish": "^5.1.0",
     "cross-env": "^7.0.3",
     "eslint": "^9.22.0",
-    "eslint-define-config": "^2.1.0",
     "eslint-plugin-jsdoc": "^50.6.6",
     "eslint-plugin-perfectionist": "^4.10.1",
     "globals": "^16.0.0",
index ad3ee7f6bb3a8d1ad99ac9ec146606defb177979..336e2a421c2ba2851c26b0479fb825db6ba6321b 100644 (file)
@@ -50,9 +50,6 @@ importers:
       eslint:
         specifier: ^9.22.0
         version: 9.22.0(jiti@2.4.2)
-      eslint-define-config:
-        specifier: ^2.1.0
-        version: 2.1.0
       eslint-plugin-jsdoc:
         specifier: ^50.6.6
         version: 50.6.6(eslint@9.22.0(jiti@2.4.2))
@@ -858,11 +855,6 @@ packages:
     peerDependencies:
       acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
 
-  acorn@8.14.0:
-    resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==}
-    engines: {node: '>=0.4.0'}
-    hasBin: true
-
   acorn@8.14.1:
     resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==}
     engines: {node: '>=0.4.0'}
@@ -1308,11 +1300,6 @@ packages:
     peerDependencies:
       eslint: '>=6.0.0'
 
-  eslint-define-config@2.1.0:
-    resolution: {integrity: sha512-QUp6pM9pjKEVannNAbSJNeRuYwW3LshejfyBBpjeMGaJjaDUpVps4C6KVR8R7dWZnD3i0synmrE36znjTkJvdQ==}
-    engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'}
-    deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
-
   eslint-import-resolver-node@0.3.9:
     resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
 
@@ -3504,8 +3491,6 @@ snapshots:
     dependencies:
       acorn: 8.14.1
 
-  acorn@8.14.0: {}
-
   acorn@8.14.1: {}
 
   ajv@6.12.6:
@@ -4064,8 +4049,6 @@ snapshots:
       eslint: 9.22.0(jiti@2.4.2)
       semver: 7.7.1
 
-  eslint-define-config@2.1.0: {}
-
   eslint-import-resolver-node@0.3.9:
     dependencies:
       debug: 3.2.7
@@ -4099,7 +4082,7 @@ snapshots:
   eslint-plugin-import-x@4.6.1(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2):
     dependencies:
       '@types/doctrine': 0.0.9
-      '@typescript-eslint/scope-manager': 8.24.1
+      '@typescript-eslint/scope-manager': 8.26.1
       '@typescript-eslint/utils': 8.26.1(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2)
       debug: 4.4.0(supports-color@8.1.1)
       doctrine: 3.0.0
@@ -5442,7 +5425,7 @@ snapshots:
   terser@5.39.0:
     dependencies:
       '@jridgewell/source-map': 0.3.6
-      acorn: 8.14.0
+      acorn: 8.14.1
       commander: 2.20.3
       source-map-support: 0.5.21