Skip to content

Commit cb1d400

Browse files
authored
Merge pull request #4 from atlp-rwanda/ft-login-#187419120
#187419120 Users should be able to Login with Email and Password
2 parents a8a0113 + 7cea969 commit cb1d400

30 files changed

+682
-452
lines changed

Diff for: .env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_BASE_URL = https://eagles-ec-be-development.onrender.com/api/v1

Diff for: .eslintignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# jest
2-
jest.config.*
2+
jest.config.*
3+
type.d.*
4+
coverage
5+
**/*.css

Diff for: .eslintrc.cjs

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,25 @@ module.exports = {
1616
parser: "@typescript-eslint/parser",
1717
parserOptions: {
1818
project: "./tsconfig.eslint.json",
19-
tsconfigRootDir: __dirname,
19+
tsconfigRootDir: __dirname
2020
},
2121
plugins: ["react-refresh"],
2222
rules: {
2323
"react/react-in-jsx-scope": "off",
24+
"react/jsx-props-no-spreading": "off",
25+
"react/require-default-props": "off",
26+
"no-param-reassign": "off",
2427
"react/function-component-definition": [
2528
"warn",
2629
{
2730
namedComponents: "arrow-function",
2831
unnamedComponents: "arrow-function",
2932
},
3033
],
34+
"no-console": "off",
3135
"no-undef": "off",
36+
"@typescript-eslint/ban-ts-comment": "off",
37+
"react/no-unescaped-entities": "off",
3238
"react-refresh/only-export-components": [
3339
"warn",
3440
{ allowConstantExport: true },

Diff for: .husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
3-
3+
npx lint-staged
44
npm run test

Diff for: jest.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default {
55
"^.+\\.tsx?$": "ts-jest",
66
},
77
moduleNameMapper: {
8-
"\\.(gif|ttf|eot|svg|png)$": "<rootDir>/test/__ mocks __/fileMock.js",
8+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)$': '<rootDir>/src/__test__/__mock__/fileMock.ts',
9+
'\\.(css|less)$': 'identity-obj-proxy',
910
},
1011
};

0 commit comments

Comments
 (0)