From 9bbda3a49bb4da00c9642531475fc22c9e3650c1 Mon Sep 17 00:00:00 2001 From: QuietNatu Date: Thu, 28 Nov 2024 20:37:55 +0000 Subject: [PATCH] chore: remove eslint turbo compat --- packages/eslint-config/index.js | 6 ++---- packages/eslint-config/package.json | 1 - pnpm-lock.yaml | 4 ---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index a6c53e0c..a0b3f267 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -1,7 +1,7 @@ import globals from 'globals'; import eslint from '@eslint/js'; -import { FlatCompat } from '@eslint/eslintrc'; import tseslint from 'typescript-eslint'; +import turboConfig from 'eslint-config-turbo/flat'; import functional from 'eslint-plugin-functional'; import unusedImports from 'eslint-plugin-unused-imports'; import playwright from 'eslint-plugin-playwright'; @@ -24,13 +24,11 @@ import angular from 'angular-eslint'; eslint-plugin-import */ -const compat = new FlatCompat(); - const baseConfig = tseslint.config( eslint.configs.recommended, ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, - ...compat.extends('turbo'), + ...turboConfig, functional.configs.recommended, functional.configs.stylistic, jsdoc.configs['flat/recommended-typescript'], diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 883fceff..fb8e5cd3 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -11,7 +11,6 @@ } }, "dependencies": { - "@eslint/eslintrc": "3.2.0", "@vitest/eslint-plugin": "1.1.10", "angular-eslint": "18.4.2", "eslint": "9.13.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 16b0ae62..7dfd11ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -527,9 +527,6 @@ importers: packages/eslint-config: dependencies: - '@eslint/eslintrc': - specifier: 3.2.0 - version: 3.2.0 '@vitest/eslint-plugin': specifier: 1.1.10 version: 1.1.10(@typescript-eslint/utils@8.16.0(eslint@9.13.0(jiti@1.21.6))(typescript@5.5.4))(eslint@9.13.0(jiti@1.21.6))(typescript@5.5.4)(vitest@2.1.5(@types/node@22.9.3)(jsdom@25.0.1)(less@4.2.0)(msw@2.4.9(typescript@5.5.4))(sass@1.81.0)(terser@5.36.0)) @@ -3105,7 +3102,6 @@ packages: '@ls-lint/ls-lint@2.2.3': resolution: {integrity: sha512-ekM12jNm/7O2I/hsRv9HvYkRdfrHpiV1epVuI2NP+eTIcEgdIdKkKCs9KgQydu/8R5YXTov9aHdOgplmCHLupw==} - cpu: [x64, arm64, s390x] os: [darwin, linux, win32] hasBin: true