Skip to content

Commit b1baf62

Browse files
committed
Merge branch 'main' into 2887-pf-text-input-autocomplete
2 parents 22f4e9a + 98a36a3 commit b1baf62

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

eslint.config.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ import { States } from '@patternfly/eslint-config-elements';
33
import tseslint from 'typescript-eslint';
44
import pfe from '@patternfly/eslint-config-elements';
55
import pfePlugin from '@patternfly/eslint-plugin-elements';
6+
import { fileURLToPath } from 'node:url';
67

78
import { includeIgnoreFile } from '@eslint/compat';
89

9-
import { fileURLToPath } from 'url';
10-
import path from 'path';
11-
12-
const __filename = fileURLToPath(import.meta.url);
13-
const __dirname = path.dirname(__filename);
14-
const gitignorePath = path.resolve(__dirname, '.gitignore');
15-
16-
1710
export default tseslint.config(
1811
...pfe,
19-
includeIgnoreFile(gitignorePath),
12+
includeIgnoreFile(fileURLToPath(new URL('.gitignore', import.meta.url))),
2013
{
2114
name: 'local/ignores',
2215
ignores: [

0 commit comments

Comments
 (0)