From be4574312f9e5d36330d4f07593776745d0f7fd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 12 Mar 2025 14:43:35 +0100 Subject: [PATCH] chore: switch to eslint defineConfig MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- eslint.config.js | 4 ++-- package.json | 1 - pnpm-lock.yaml | 21 ++------------------- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index ba26a3f6c..35a8cfeaf 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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/**'], }, diff --git a/package.json b/package.json index 31517f2d6..76be27ba9 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,6 @@ "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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ad3ee7f6b..336e2a421 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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 -- 2.43.0