Skip to content

Commit 05484c2

Browse files
FIX: CVE-2025-50537 vulnerability found in package eslint in project once-ui-react - ONCEHUB-111733
1 parent 594534d commit 05484c2

File tree

7 files changed

+3147
-2412
lines changed

7 files changed

+3147
-2412
lines changed

.eslintrc.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

eslint.config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import tseslint from '@typescript-eslint/eslint-plugin';
5+
import tsParser from '@typescript-eslint/parser';
6+
import react from 'eslint-plugin-react';
7+
import jsxA11y from 'eslint-plugin-jsx-a11y';
8+
9+
export default [
10+
{ ignores: ['dist/', 'node_modules/', 'storybook-static/'] },
11+
{
12+
files: ['**/*.{js,jsx,ts,tsx}'],
13+
languageOptions: {
14+
ecmaVersion: 2020,
15+
sourceType: 'module',
16+
parser: tsParser,
17+
parserOptions: {
18+
ecmaFeatures: {
19+
jsx: true,
20+
},
21+
},
22+
globals: {
23+
...globals.browser,
24+
...globals.node,
25+
NodeJS: 'readonly',
26+
},
27+
},
28+
plugins: {
29+
react: react,
30+
'react-hooks': reactHooks,
31+
'@typescript-eslint': tseslint,
32+
'jsx-a11y': jsxA11y,
33+
},
34+
rules: {
35+
...js.configs.recommended.rules,
36+
'react/jsx-key': 'off',
37+
'react/react-in-jsx-scope': 'off',
38+
'no-unused-vars': 'off',
39+
'@typescript-eslint/no-unused-vars': 'warn',
40+
'no-console': 'warn',
41+
'react/prop-types': 'off',
42+
'@typescript-eslint/no-explicit-any': 'off',
43+
'jsx-a11y/role-supports-aria-props': 'warn',
44+
},
45+
settings: {
46+
react: {
47+
version: 'detect',
48+
},
49+
},
50+
},
51+
];

0 commit comments

Comments
 (0)