mirror of
https://github.com/appium/appium.git
synced 2026-05-20 10:49:45 -05:00
chore(eslint-config-appium-ts): Use .gitingore from the current workdir rather than same shared config dir (#20888)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import path from 'node:path';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import fs from 'node:fs';
|
||||
|
||||
import js from '@eslint/js';
|
||||
@@ -11,9 +10,7 @@ import importPlugin from 'eslint-plugin-import';
|
||||
import mochaPlugin from 'eslint-plugin-mocha';
|
||||
import {includeIgnoreFile} from '@eslint/compat';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const gitignorePath = path.resolve(__dirname, '.gitignore');
|
||||
const gitignorePath = path.resolve(process.cwd(), '.gitignore');
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
|
||||
Reference in New Issue
Block a user