From 4cdb799c2d88fad88d0b76c0de3da08aad03df77 Mon Sep 17 00:00:00 2001 From: Edgars Eglitis Date: Sun, 12 Jan 2025 12:46:22 +0200 Subject: [PATCH] chore: tidy up ESLint config --- eslint.config.mjs | 10 +--------- package-lock.json | 2 +- package.json | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index e7f448735..945b5e1af 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,16 +1,8 @@ -import path from 'node:path'; -import {fileURLToPath} from 'node:url'; - import appiumConfig from '@appium/eslint-config-appium-ts'; -import {includeIgnoreFile} from '@eslint/compat'; import reactPlugin from 'eslint-plugin-react'; import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort'; import globals from 'globals'; -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); -const gitignorePath = path.resolve(__dirname, '.gitignore'); - export default [ ...appiumConfig, { @@ -45,6 +37,6 @@ export default [ }, { name: 'Ignores', - ignores: [...includeIgnoreFile(gitignorePath).ignores, '**/*.xml', '**/*.html'], + ignores: ['**/*.xml', '**/*.html'], }, ]; diff --git a/package-lock.json b/package-lock.json index 7fa4a021c..f1f045bd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,6 @@ "@appium/eslint-config-appium-ts": "1.0.2", "@appium/fake-driver": "5.7.0", "@appium/support": "6.0.3", - "@eslint/compat": "1.2.5", "@types/react": "18.3.18", "@vitejs/plugin-react": "4.3.4", "asyncbox": "3.0.0", @@ -1679,6 +1678,7 @@ "integrity": "sha512-5iuG/StT+7OfvhoBHPlmxkPA9om6aDUFgmD4+mWKAGsYt4vCe8rypneG03AuseyRHBmcCLXQtIH5S26tIoggLg==", "dev": true, "license": "Apache-2.0", + "peer": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, diff --git a/package.json b/package.json index 2a2f9e6c1..a2295f721 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "@appium/eslint-config-appium-ts": "1.0.2", "@appium/fake-driver": "5.7.0", "@appium/support": "6.0.3", - "@eslint/compat": "1.2.5", "@types/react": "18.3.18", "@vitejs/plugin-react": "4.3.4", "asyncbox": "3.0.0",