File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/eslint/src/generators/convert-to-flat-config/converters Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
12
12
} from '../../utils/flat-config/ast-utils' ;
13
13
import { getPluginImport } from '../../utils/eslint-file' ;
14
14
import { mapFilePath } from '../../utils/flat-config/path-utils' ;
15
- import { EOL } from 'node:os' ;
16
15
17
16
/**
18
17
* Converts an ESLint JSON config to a flat config.
@@ -186,7 +185,7 @@ export function convertEslintJsonToFlatConfig(
186
185
if ( tree . exists ( ignorePath ) ) {
187
186
const patterns = tree
188
187
. read ( ignorePath , 'utf-8' )
189
- . split ( EOL )
188
+ . split ( / \r \n | \r | \n / )
190
189
. filter ( ( line ) => line . length > 0 && line !== 'node_modules' )
191
190
. map ( ( path ) => mapFilePath ( path ) ) ;
192
191
if ( patterns . length > 0 ) {
You can’t perform that action at this time.
0 commit comments