Skip to content

Commit

Permalink
Merge branch 'master' into shaheer/WALL-1229
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheer-deriv committed Aug 4, 2023
2 parents 335e29e + abffbe4 commit 85c695e
Show file tree
Hide file tree
Showing 258 changed files with 7,570 additions and 5,925 deletions.
139 changes: 1 addition & 138 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,142 +1,5 @@
module.exports = {
root: true,
parser: '@babel/eslint-parser',
plugins: ['prettier', 'testing-library', '@typescript-eslint'],
env: {
es6: true,
browser: true,
amd: true,
jest: true,
jquery: true,
jasmine: true,
},
globals: {
dataLayer: true,
texts_json: false,
},
ignorePatterns: ['**/dist/**/*.js', '**/lib/**/*.js'],
rules: {
camelcase: 0,
// semi : ['error', 'always'],
'array-callback-return': 0,
'arrow-body-style': 0,
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
curly: 0,
// 'comma-dangle' : ['error', 'always-multiline'],
'eol-last': ['error', 'always'],
'func-names': ['error', 'never'],
'key-spacing': 0,
'max-classes-per-file': ['warn', 2],
// 'keyword-spacing' : ['error', { after: true }],
'lines-between-class-members': 0,
indent: 0,
// 'max-len' : ['error', { code: 120, 'ignoreComments': true }],
// 'no-extra-semi' : 'error',
'no-console': 'error',
'no-else-return': ['error', { allowElseIf: true }],
'no-multi-assign': 0,
// 'no-multi-spaces' : [2, { exceptions: { 'BinaryExpression': true, 'VariableDeclarator': true, 'ImportDeclaration': true } }],
'no-param-reassign': ['error', { props: false }],
'no-restricted-globals': 0,
'no-script-url': 0,
// 'no-trailing-spaces' : ['error', { skipBlankLines: true }],
// 'object-curly-spacing' : ['error', 'always', { arraysInObjects: true, objectsInObjects: true }],
'one-var': ['error', { initialized: 'never', uninitialized: 'always' }],
'prefer-destructuring': 0,
quotes: 0,
// 'space-in-parens' : ['error', 'never'],
'space-infix-ops': 'error',
// 'space-unary-ops' : 'error',
// 'no-multiple-empty-lines' : ['error', { 'max': 1, 'maxEOF': 1 }],
'global-require': 'warn',

// import rules
'import/no-extraneous-dependencies': [
'warn',
{
devDependencies: [
'**/__tests__/**/*.js',
'**/test*.js',
'**/*.test.js*',
'**/*.spec.js',
'**/*.spec.jsx',
'**/*.spec.ts',
'**/*.test.ts',
'**/*.spec.tsx',
'**/*.test.tsx',
],
},
],

'import/no-useless-path-segments': 'error',
'import/order': [
0, // TODO: we should turn this to error after we sorted our import orders.
{
groups: [['builtin', 'external'], 'internal', 'sibling', 'parent'],
'newlines-between': 'ignore',
},
],
'spaced-comment': 'off',
'import/prefer-default-export': 0,
'import/extensions': [0, { jsx: 'always', json: 'always' }],
'no-sequences': ['warn'],
'import/no-unresolved': [2, { ignore: ['@deriv/components', '@deriv/shared'] }],

// react rules
// 'jsx-quotes' : ['error', 'prefer-single'],
// 'react/jsx-closing-bracket-location': ['error', { selfClosing: 'line-aligned', nonEmpty: 'line-aligned' }],
// 'react/jsx-closing-tag-location' : 'error',
// 'react/jsx-first-prop-new-line' : ['error', 'multiline-multiprop'],
// 'react/jsx-indent' : ['error', 4],
// 'react/jsx-indent-props' : ['error', 4],
// 'react/jsx-max-props-per-line' : ['error', { when: 'multiline' }],
// 'react/jsx-tag-spacing' : ['error', { closingSlash: 'never', beforeSelfClosing: 'always' }],
'react/prop-types': [
1,
{
skipUndeclared: true,
},
],
'react/self-closing-comp': 'error',
// 'react/sort-prop-types' : ['error', { ignoreCase: true, sortShapeProp: true }],
},
extends: [
'prettier',
'prettier/react',
'airbnb-base',
'binary',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jest-dom/recommended',
],
parserOptions: {
requireConfigFile: false,
ecmaVersion: 8,
babelOptions: {
presets: ['@babel/preset-react', '@babel/preset-typescript'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
},
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: '16',
},
'import/resolver': {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
extends: ['@deriv/eslint-config-deriv'],
overrides: [
{
files: ['*.ts', '*.tsx'],
Expand Down
83 changes: 51 additions & 32 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@
# (just to make this file easier to understand)
# ================================================

# akmal-binary
# bahar-fs
# balakrishna-binary
# carol-binary
# matin-binary
# mehrzad-fs
# nijil-binary
# njazuli-deriv
# ali-hosseini-deriv
# amina-deriv
# balakrishna-deriv
# farrah-deriv
# hirad-deriv
# mahdiyeh-deriv
# maryia-deriv
# matin-deriv
# nijil-deriv
# prince-deriv
# sandeep-deriv
# yashim-deriv

######################################################################################################
Expand All @@ -63,76 +66,92 @@
# (in case no pattern matches a path in a PR - this should be treated as a bug and result in adding the path to CODEOWNERS)
# ==============================================================

* @matin-binary @nijil-binary @mehrzad-fs @balakrishna-binary

* @balakrishna-deriv @yashim-deriv


# ==============================================================
# deriv-app/account
# ==============================================================

/packages/account/**/* @yashim-deriv

/packages/account/**/* @matin-deriv @amina-deriv


# ==============================================================
# deriv-app/bot
# deriv-app/analytics
# ==============================================================

/packages/bot-skeleton/**/* @mehrzad-fs
/packages/bot-web-ui/**/* @mehrzad-fs
/packages/indicators/**/* @mehrzad-fs
/packages/analytics/**/* @ali-hosseini-deriv


# ==============================================================
# deriv-app/core
# deriv-app/appstore
# ==============================================================

/packages/core/**/* @balakrishna-binary @matin-binary
/packages/shared/**/* @balakrishna-binary @matin-binary
/packages/components/**/* @balakrishna-binary @matin-binary
/packages/translations/**/* @balakrishna-binary @matin-binary
/packages/appstore/**/* @matin-deriv @mahdiyeh-deriv @nijil-deriv


# ==============================================================
# deriv-app/p2p
# deriv-app/bot
# ==============================================================

/packages/p2p/**/* @carol-binary @nijil-binary
/packages/bot-skeleton/**/* @prince-deriv @sandeep-deriv
/packages/bot-web-ui/**/* @prince-deriv @sandeep-deriv
/packages/indicators/**/* @prince-deriv @sandeep-deriv


# ==============================================================
# deriv-app/cashier
# ==============================================================

/packages/cashier/**/* @bahar-fs @nijil-binary
/packages/cashier/**/* @farrah-deriv @nijil-deriv


# ==============================================================
# deriv-app/cfd
# ==============================================================

/packages/cfd/**/* @balakrishna-binary @matin-binary @yashim-deriv
/packages/cfd/**/* @hirad-deriv @matin-deriv


# ==============================================================
# deriv-app/trader
# deriv-app/core
# ==============================================================

/packages/trader/**/* @matin-binary @balakrishna-binary @akmal-binary
/packages/api/**/* @ali-hosseini-deriv @matin-deriv
/packages/core/**/* @ali-hosseini-deriv @matin-deriv
/packages/shared/**/* @ali-hosseini-deriv @matin-deriv
/packages/components/**/* @ali-hosseini-deriv @matin-deriv
/packages/translations/**/* @ali-hosseini-deriv @matin-deriv
/packages/utils/**/* @ali-hosseini-deriv @matin-deriv
/packages/hooks/**/* @ali-hosseini-deriv @matin-deriv
/packages/stores/**/* @ali-hosseini-deriv @matin-deriv


# ==============================================================
# deriv-app/reports
# deriv-app/p2p
# ==============================================================

/packages/reports/**/* @matin-binary @balakrishna-binary
/packages/p2p/**/* @farrah-deriv @nijil-deriv


# ==============================================================
# deriv-app/publisher
# ==============================================================

/packages/publisher/**/* @nijil-binary
/packages/publisher/**/* @nijil-deriv


# ==============================================================
# deriv-app/appstore
# deriv-app/reports
# ==============================================================

/packages/appstore/**/* @matin-binary @balakrishna-binary @njazuli-deriv @bahar-fs
/packages/reports/**/* @mahdiyeh-deriv @matin-deriv @maryia-deriv


# ==============================================================
# deriv-app/trader
# ==============================================================

/packages/trader/**/* @matin-deriv @maryia-deriv


Loading

0 comments on commit 85c695e

Please sign in to comment.