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

index 09cd5769ad3d88e9f991e969c40a6dfe564b339a..887ec7a88ac044c28c4311b66702c4d6f166c18d 100644 (file)
@@ -1,11 +1,11 @@
 /* eslint-disable n/no-unpublished-import */
 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 neostandard, { plugins } from 'neostandard'
 
-export default defineFlatConfig([
+export default defineConfig([
   js.configs.recommended,
   plugins.promise.configs['flat/recommended'],
   plugins.n.configs['flat/recommended'],
index 5e261936659f3f4880ad2e679f4fe48c03e200ae..aece8704e169bfe44d0e155c58cd5b9a5a97ca6e 100644 (file)
@@ -79,7 +79,6 @@
     "@commitlint/config-conventional": "^19.8.0",
     "@eslint/js": "^9.22.0",
     "eslint": "^9.22.0",
-    "eslint-define-config": "^2.1.0",
     "eslint-plugin-jsdoc": "^50.6.3",
     "eslint-plugin-perfectionist": "^4.9.0",
     "husky": "^9.1.7",
index f4266d62d9af866c253a4b967f802c731fd7e256..b41d050714bb6d13467dbc8ba48a6baec992a349 100644 (file)
@@ -57,9 +57,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.3
         version: 50.6.3(eslint@9.22.0(jiti@2.4.2))
@@ -698,11 +695,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==}
 
@@ -2558,8 +2550,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