File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
opencti-platform/opencti-front
packages/eslint-plugin-custom-rules/tests/lib/rules Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { RuleTester } from 'eslint';
33import parser from '@typescript-eslint/parser' ;
44
55const ruleTester = new RuleTester ( {
6- parser ,
7- parserOptions : {
6+ languageOptions : {
7+ parser ,
88 ecmaVersion : 2020 ,
99 }
1010} ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const sortAllJSONFiles = async (dirPath) => {
3333 const files = await readdir ( dirPath ) ;
3434
3535 // Iterate through files
36- files . forEach ( ( file ) => {
36+ for await ( const file of files ) {
3737 const filePath = path . join ( dirPath , file ) ;
3838
3939 // Skip if not a JSON file or if it's en.json
@@ -42,8 +42,8 @@ const sortAllJSONFiles = async (dirPath) => {
4242 }
4343
4444 // Sort JSON file
45- sortJSONFile ( filePath ) ;
46- } ) ;
45+ await sortJSONFile ( filePath ) ;
46+ }
4747 } catch ( err ) {
4848 console . error ( 'Error reading directory:' , err ) ;
4949 }
You can’t perform that action at this time.
0 commit comments