diff --git a/.env b/.env index 1feaf21df..d0949e2d4 100644 --- a/.env +++ b/.env @@ -25,7 +25,7 @@ LOGO_TRADEMARK_URL='' LOGO_WHITE_URL='' FAVICON_URL='' COLLECT_YEAR_OF_BIRTH=true -APP_ID='' +APP_ID='profile' MFE_CONFIG_API_URL='' SEARCH_CATALOG_URL='' ENABLE_SKILLS_BUILDER_PROFILE='' diff --git a/.env.development b/.env.development index 5694a28d8..a4d5c05b0 100644 --- a/.env.development +++ b/.env.development @@ -26,7 +26,7 @@ LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico COLLECT_YEAR_OF_BIRTH=true -APP_ID='' +APP_ID='profile' MFE_CONFIG_API_URL='' SEARCH_CATALOG_URL='http://localhost:18000/courses' ENABLE_SKILLS_BUILDER_PROFILE='' diff --git a/.env.test b/.env.test index 716cae188..e47078e46 100644 --- a/.env.test +++ b/.env.test @@ -23,5 +23,5 @@ ENABLE_LEARNER_RECORD_MFE='' ENABLE_SKILLS_BUILDER_PROFILE='' LEARNER_RECORD_MFE_BASE_URL='http://localhost:1990' COLLECT_YEAR_OF_BIRTH=true -APP_ID='' +APP_ID='profile' MFE_CONFIG_API_URL='' diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 000000000..d6c953795 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, +} diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index b4e44031f..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,4 +0,0 @@ -// eslint-disable-next-line import/no-extraneous-dependencies -const { createConfig } = require('@openedx/frontend-build'); - -module.exports = createConfig('eslint'); diff --git a/env.config.tsx b/env.config.tsx new file mode 100644 index 000000000..ff8b4c563 --- /dev/null +++ b/env.config.tsx @@ -0,0 +1 @@ +export default {}; diff --git a/public/index.html b/index.html old mode 100755 new mode 100644 similarity index 51% rename from public/index.html rename to index.html index e54972ec7..6c68b79c6 --- a/public/index.html +++ b/index.html @@ -1,12 +1,13 @@
-