* refactor: replace @edx/paragon and @edx/frontend-build * refactor: updated edx packages * fix: fixed failing test cases by remmoving paragon mock * fix: updated lock file to fix build issues --------- Co-authored-by: mashal-m <mashal.malik@arbisoft.com> Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Co-authored-by: Muhammad Abdullah Waheed <abdullah.waheed@arbisoft.com>
29 lines
907 B
JavaScript
29 lines
907 B
JavaScript
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
const { createConfig } = require('@openedx/frontend-build');
|
|
|
|
const config = createConfig('eslint', {
|
|
rules: {
|
|
'import/no-named-as-default': 'off',
|
|
'import/no-named-as-default-member': 'off',
|
|
'import/no-import-module-exports': 'off',
|
|
'import/no-self-import': 'off',
|
|
'spaced-comment': ['error', 'always', { 'block': { 'exceptions': ['*'] } }],
|
|
'react-hooks/rules-of-hooks': 'off',
|
|
"react/forbid-prop-types": ["error", { "forbid": ["any", "array"] }], // arguable object proptype is use when I do not care about the shape of the object
|
|
'no-import-assign': 'off',
|
|
'no-promise-executor-return': 'off',
|
|
'import/no-cycle': 'off',
|
|
},
|
|
});
|
|
|
|
config.settings = {
|
|
"import/resolver": {
|
|
node: {
|
|
paths: ["src", "node_modules"],
|
|
extensions: [".js", ".jsx"],
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|