Skip to content

Commit

Permalink
Jim/wall 4983/update packages to resolve security issues (deriv-com#1…
Browse files Browse the repository at this point in the history
…7076)

* build: update packages in p2p

* chore: remove unnecessary rule from p2p eslintrc

* build: update packages in cashier

* chore: move div element creation to beforeall

* build: update packages in core

* chore: update packages in appstore

* build: update packages inside of indicators

* build: update packages inside api

* build: update packages in api-v2

* build: update packages inside hooks

* build: update packages in shared

* chore: set import sort to warn instead of error

* build: update packages inside reports

* build: update packages inside trader

* build: update packages in cfd

* build: update packages in components

* build: update packages in wallets

* build: add babel config to stores

* build: update packages inside bot-skeleton

* build: update package inside stores

* build: update packages inside of account

* build: update root config and packages

* build: update packages inside dbot

* chore: resolve eslint error

* build: resolve eslint failures on wallets build

* build: add package-lock

* ci: fix failing tests

* chore: remove redundant workflow

* chore: undo preferred style formats and resolve issues in test cases

* chore: undo unintended preferred style formats

* build: update packages in wallets

* build: update packages in trader

* build: update packages in stores

* build: update packages in shared

* build: update packages in reports

* build: update packages in p2p

* build: update packages in indicators

* chore: update packages in hooks

* chore: update packages in core

* build: update packages in components

* build: update packages in wallets

* build: update packages in trader

* build: update packages in p2p

* build: update packages in cfd

* build: update packages in cashier

* build: update packages in bot-web-ui

* build: update packages in api

* build: update packages in api-v2

* build: update packages in account

* build: update packages in appstore

* build: update packages in the root

* chore: update translate command

* build: add missing hoisted packages

* build: build trader before core

* chore: ignore any

* style: resolve eof

* build: list only packages that should be built

* ci: fix failing test case

* build: update jest and ts-jest and specify all packages in the workspace attribute

* build: replace proposal with transform in reports

* build: resolve jest ts-jest and esm issues

* chore: use specific versions of react-dom and eslint

* ci: fix failing bot test cases

* chore: add more mocks
  • Loading branch information
jim-deriv authored Nov 12, 2024
1 parent 51a50a4 commit 2e16ac0
Show file tree
Hide file tree
Showing 222 changed files with 37,720 additions and 43,405 deletions.
48 changes: 46 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
module.exports = {
extends: ['@deriv/eslint-config-deriv'],
extends: ['@deriv-com/eslint-config-deriv'],
rules: {
'global-require': 'off',
indent: 'off',
'default-param-last': 'warn',
'no-confusing-arrow': 'warn',
'no-unsafe-optional-chaining': 'warn',
'class-methods-use-this': 'warn',
'prefer-regex-literals': 'warn',
'prefer-exponentiation-operator': 'warn',
'no-restricted-exports': 'warn',
'no-promise-executor-return': 'warn',
'import/no-relative-packages': 'warn',
'import/no-mutable-exports': 'warn',
},
overrides: [
{
Expand All @@ -13,6 +24,18 @@ module.exports = {
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
rules: {
'testing-library/await-async-events': 'warn',
'testing-library/no-wait-for-multiple-assertions': 'warn',
'testing-library/no-wait-for-side-effects': 'warn',
'testing-library/no-unnecessary-act': 'warn',
'testing-library/prefer-presence-queries': 'warn',
'testing-library/prefer-query-by-disappearance': 'warn',
'testing-library/no-render-in-lifecycle': 'warn',
'testing-library/no-manual-cleanup': 'warn',
'jest-dom/prefer-checked': 'warn',
'jest-dom/prefer-to-have-value': 'warn',
},
},
{
files: ['*.{ts,tsx}'],
Expand All @@ -21,11 +44,26 @@ module.exports = {
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime', // Enables the new JSX transform runtime
],
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
},
parserOptions: {
ecmaversion: 2018,
sourceType: 'module',
Expand Down Expand Up @@ -62,5 +100,11 @@ module.exports = {
},
},
},
{
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
},
},
],
};
19 changes: 0 additions & 19 deletions .github/workflows/dependency_review.yml

This file was deleted.

Loading

0 comments on commit 2e16ac0

Please sign in to comment.