File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,13 @@ import { States } from '@patternfly/eslint-config-elements';
33import tseslint from 'typescript-eslint' ;
44import pfe from '@patternfly/eslint-config-elements' ;
55import pfePlugin from '@patternfly/eslint-plugin-elements' ;
6+ import { fileURLToPath } from 'node:url' ;
67
78import { 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-
1710export default tseslint . config (
1811 ...pfe ,
19- includeIgnoreFile ( gitignorePath ) ,
12+ includeIgnoreFile ( fileURLToPath ( new URL ( '.gitignore' , import . meta . url ) ) ) ,
2013 {
2114 name : 'local/ignores' ,
2215 ignores : [
You can’t perform that action at this time.
0 commit comments