Skip to content

Commit 886d43f

Browse files
committed
PR fix
1 parent c9281c4 commit 886d43f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

opencti-platform/opencti-front/packages/eslint-plugin-custom-rules/tests/lib/rules/classes-rule.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { RuleTester } from 'eslint';
33
import parser from '@typescript-eslint/parser';
44

55
const ruleTester = new RuleTester({
6-
parser,
7-
parserOptions: {
6+
languageOptions: {
7+
parser,
88
ecmaVersion: 2020,
99
}
1010
});

opencti-platform/opencti-front/script/sort-translation-files.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)